现在的位置: 首页 > 综合 > 正文

交换机端口安全总结(配置实例)

2013年09月02日 ⁄ 综合 ⁄ 共 411字 ⁄ 字号 评论关闭

1.MAC地址与端口绑定,当发现主机的MAC地址与交换机上指定的MAC地址不同时,交换机相应的端口将down掉。当给端口指定MAC地址时,端口模式必须为access或者Trunk状态。
  3550-1#conf t
  3550-1(config)#int f0/1
  3550-1(config-if)#switchport mode access /指定端口模式。
  3550-1(config-if)#switchport port-security mac-address 00-90-F5-10-79-C1 /配置MAC地址。
  3550-1(config-if)#switchport port-security maximum 1 /限制此端口允许通过的MAC地址数为1。
  3550-1(config-if)#switchport port-security violation shutdown /当发现与上述配置不符时,端口down掉。

 

抱歉!评论已关闭.