2008年12月22日星期一

华为交换机MAC地址表管理

一、配置单播地址表项
mac-address {dynamic permanent static} mac_address interface {interface_type interface_num interface_name} 添加MAC地址表项
undo mac-address {dynamic permanent static} mac-address interface {interface_type interface_num interface_name} 删除地址表项
其中:static是静态表项,不会老化,交换机复位丢失;permanent为永久表项,交换机复位不丢失。mac-address采用H-H-H的形式。在删除动态地址表项时会同时把学到的地址表项删除。

二、设置MAC地址表老化时间
mac-address timer {aging age no-aging}

三、恢复MAC地址表的老化时间为缺省值
undo mac-address timer aging
注:age为MAC地址表的老化时间。取值范围为0到1000000,单位为秒;取0表示不老化。缺省情况下,MAC地址表的老化时间为300秒。

四、配置组播地址表项
multicast id {0 1} multi_mac interface_list 添加/修改组播MAC地址表项
undo multicast id {0 1} multi_mac interface_list 删除组播地址表项
其中:0标识第一个组播地址表项,1表示第二个组播地址表项。本例中只支持两个组播地址表项。

五、地址表管理显示和调试
display mac_address [mac_address] [[static permanent dynamic] {interface {interface_type interface_num interface_name all}}]显示MAC地址表信息
display mac-address aging-time 显示MAC地址表的老化时间

没有评论:

发表评论