交换机安全MAC层攻击配置实验之Port-Security
1、Port Security解析触发Port Security的条件:
[*]未授权的MAC地址
[*]端口MAC地址数量超过了限制
触发Port Security后的动作:
[*]protect Security violation protect mode 丢弃数据,不发送SNMP Trap消息
[*]restrictSecurity violation restrict mode 丢弃数据帧,发送SNMP Trap消息
[*]shutdownSecurity violation shutdown mode 关闭接口,发送SNMP Trap消息
2、实验拓扑
3、实验配置
正常情况下的连通性
在S1上启动端口安全,只让端口学习aaaa.bbbb.cccc的MAC地址,采用protect的动作
interface GigabitEthernet0/31
switchport mode access
switchport port-security
switchport port-security violation protect
switchport port-security mac-address aaaa.bbbb.cccc
再次测试连通性
此外还可以设置端口可以学习的最大MAC地址个数以及设置粘性粘贴
S1(config-if)#switchport port-security maximum ?
<1-3072>Maximum addresses
S1(config-if)#switchport port-security mac-address sticky ?
<cr>
页:
[1]