刚开始以为,交换机的端口和MAC地址用mac-address-table static ***vlan **interface**绑定在一起能够防止其他PC使用这个端口。如 2960(config)#mac-address-table static 000A.F387.2973 vlan 1 interface fa0/2
但是通过拔了端口插在另外的PC上发现这个PC还是能通信的。如
PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=125ms TTL=128
Reply from 192.168.1.2: bytes=32 time=62ms TTL=128
Reply from 192.168.1.2: bytes=32 time=63ms TTL=128
Reply from 192.168.1.2: bytes=32 time=63ms TTL=128
Ping statistics for 192.168.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 62ms, Maximum = 125ms, Average = 78ms
想了想,这个命令其实就是把一个MAC静态的加入到了交换机的CAM表中其他的并未改变什么如下的MAC表
2960(config)#do show mac-address-table
          Mac Address Table
-------------------------------------------
Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
   1    0001.c753.279a    DYNAMIC     Fa0/2
   1    0006.2aa6.2dc1    DYNAMIC     Fa0/1
   1    000a.f387.2973    STATIC       Fa0/2
 
上面的是我把原来绑定的端口线插到了其他的PC上,上面多了一条静态MAC