问题描述:
二层端口安全配置
# 2.1、全局开启, 使能端口安全。
[Device] port-security enable
# 2.2、进入需要配置安全的端口,设置端口安全允许的最大安全MAC地址数为1
[Device] interface gigabitethernet 1/0/1(除聚合口外)
[Device-GigabitEthernet1/0/1]port-security max-mac-count 1(如果二层下挂傻瓜,可以将MAC地址数量调整)
2.3、设置端口安全模式为autoLearn(开启自动学习)
[Device-GigabitEthernet1/0/1]port-security port-mode autolearn //当端口工作于autoLearn模式时,无法更改端口安全允许的最大MAC地址数
2.4、涉及换位置,需在全局下配置
[Device] undo port-security mac-address security(多次会影响所有人掉线)
问题1,请问配置是否正确
问题2,如果换位置,在全局
[Device] undo port-security mac-address security后,交换机是不是会自动从新学习并绑定mac,不需要在输入什么命令了吧?
组网及组网描述:
暂无评论