环境

  • Cisco Packet Tracer 5.3
  • Windows 10

操作

操作:按照如图所示连接拓扑图

image.png

1、进入相应的接口
(以端口1设置Mac地址绑定,PC0接1端口举例)
Switch>enable
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#
Switch(config)#interface fastEthernet 0/1

2、接口设为access模式

Switch(config-if)#switchport mode access