1、启用交换机端口安全 #interface gigabitEthernet 0/1 #switchport mode access #switchport port-security #switchport port-security mac-address 1111.1111.1111 //以后就只有这个mac地址能接这个端口 #switchport port-security violation shutdown //发生非指定mac地址接入会shutdown端口,需要手动no shutdown...
1、启用交换机端口安全 #interface gigabitEthernet 0/1 #switchport mode access #switchport port-security #switchport port-security mac-address 1111.1111.1111 //以后就只有这个mac地址能接这个端口 #switchport port-security violation shutdown //发生非指定mac地址接入会shutdown端口,需要手动no shutdown...
We are testing out Port Security on one of our spare switches. We have it enabled and all the ports locked (secure permanent). We configured Computer A to Port 2. We configured Computer B to Port 10. When Computer A and B are in their respective Ports, they can communicate with each ...
(config-if)# switchport port-security maximun {最大MAC地址数} 设定允许访问的MAC地址。也可配为自动学习MAC地址 (config-if)# switchport port-security mac-address {mac-address ...} //设置允许访问本端口的MAC地址 (config-if)#switchport security aging time {time} //设置端口自动学习MAC地址所持续的...
Switch(config-if)#switchport port-security maximum 1 Switch(config-if)#switchport port-security mac-address 0060.70e5.cdd1 Switch(config-if)#switchport port-security violation shutdown Switch(config-if)#exit Switch(config)# Switch(config)#int fast0/2 ...
# switchport port-security mac-address sticky X.X.X # switchport port-security mac-address sticky Y.Y.Y # switchport port-security mac-address sticky Z.Z.Z When I do this on the first interface, I have no problems. Doing in the second, I get a message saying that the MAC address is...
Switch(config-if)#swtichport port-security mac-address [该端口所接主机的MAC地址] /*配置 fa0/1端口要绑定的主机的MAC地址,只有该MAC地址可连接该端口*/ Switch(config-if)#exit Switch(config)#swtichport port-security violation shutdown /*该端口违规,有其他MAC地址接入则强制关闭 */ ...
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/index.htm. This chapter consists of these sections: •Overview of Port Security •Default Port Security Configuration •Port Security Guidelines and Restrictions
Most Cisco switches have a port in the notconnect state. This means it is currently not connected to anything, but it can connect if it has a good connection to another operational device. If you connect a good cable to two switch ports in the notconnect state, the link light must becom...
(config-if)# switchport port-security //开启该端口的安全功能 (1)配置最大连接数限制 (config-if)# switchport port-secruity maxmum 1 //配置端口的最大连接数为1,最大连接数为128 (config-if)# switchport port-secruity violation shutdown //配置安全违例的处理方式为shutdown,可选为protect (当安全地址...