有一专业接入办公网,但此部门内部也有一套内网,办公网的同一VLAN的几条链路接入内网后,引起了广播风暴。利用思科的端口安全可以解决此问题。
具体配置如下:(在接入口下配置)
description to trans_w
switchport access vlan 41
switchport mode access
switchport port-security maximum 2
switchport port-security
switchport port-security violation restrict (protect)
switchport port-security mac-address ace0.866b.2d69
switchport port-security mac-address ace0.866b.2d6c
进行端口限制后,交换的日志如下:(成功限制了发广播播的ace0.0000.0000)
.Nov 29 10:09:27: %PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address ace0.0000.0000
on port FastEthernet0/9.
而且在端口下CAM
中没有动态的mac地址了。
(config-if)#do show mac add dyn int fa0/9
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
----