|
这是我的笔记:(未知是否正确,有错误请指出)
以下为动静态学习到的mac的老化时间的设置命令
动态mac:
1.不开port security:
全局:mac address-table aging-time 10 vlan 10(为秒)
2.开port security:
switchport port-security aging time 1(只动态学习到的在接口的mac的存活时间)(为分钟)
静态mac:
1.不开port security 全局指定mac在哪个接口:
永远不消失
2.开port security后开sticky静态粘连的mac:
switchport port-security aging static(动态学习和手动指定在接口的mac的存活时间)(为分钟)
注意:
默认都为相对时间inactivity,即无流量通信即刻对应mac被丢弃
可修改为绝对时间absolute,即即使有流量对应的mac时间过后也被丢弃
switchport port-security aging type absolute/inactivity
问题:
1.既然switchport port-security有自己的绝对时间和相对时间设置,那么没有开启port-security的接口动态学习到,和静态手动指定的mac的老化时间,也应该一样有同样的设置吧???如何设置
2.是否switchport port-security aging type absolute/inactivity该命令4种的老化时间都通用?
3.还有就是全局静态指定mac命令是mac address-table static aaaa.aaaa.aaaa vlan 10 interface f0/1这样指定么,我不确定。
该贴已经同步到 璃箜-博的微博 |
|