銳捷交換機(jī)配置命令總結(jié)上篇 .
管理銳捷交換機(jī)MAC地址表:
1、查看MAC地址表
S2126G#show mac-address-table
2、配置MAC地址表記錄的生存時(shí)間(缺省為300秒)
S2126G(config)#mac-address-table aging-time <10-1000000>
3、查看MAC地址表記錄的生存時(shí)間
S2126G#show mac-address-table aging-time
銳捷交換機(jī)VLAN的配置:
1.添加一個(gè)VLAN
S2126G(config)#vlan <1-4094>
S2126G(config-vlan)#
2.為VLAN命名(可選)
S2126G(config-vlan)#name
將銳捷交換機(jī)端口分配到VLAN
1.配置Port VLAN
Switch(config-if)#switchport access vlan <1-4094>
2.配置Tag VLAN
Switch(config-if)#switchport mode trunk
1).配置本地(native)VLAN
Switch(config-if)#switchport trunk native vlan <1-4094>
2).從主干鏈路中清除VLAN
Switch(config-if)#switchport trunk allowed vlan except
注:VLAN1不可被清除
銳捷交換機(jī)VLAN的驗(yàn)證:
1.顯示全部的VLAN:Switch#show vlan
2.顯示單獨(dú)的VLAN :Switch#show vlan id <1-4094>
將VLAN信息保存到flash中:Switch#write memory
從flash中清除VLAN信息:Switch#delete flash:vlan.dat
銳捷交換機(jī)RSTP的配置:
1.啟用生成樹:S2126G(config)#spanning-tree
2.配置銳捷交換機(jī)優(yōu)先級:S2126G(config)#spanning-tree priority <0-61440>
“0”或“4096”的倍數(shù)(RSTP BPDU該值后12bit全0)
3.配置交換機(jī)端口優(yōu)先級:S2126G(config-if)#spanning-tree port-priority <0-240>
“0”或“16”的倍數(shù)(RSTP BPDU該值后4bit全0)
4、生成樹hello時(shí)間的配置(由Root決定):S2126G(config)#spanning-tree hello-time <1-10>
5、生成樹的驗(yàn)證:Switch#show spanning-tree
Switch#show spanning-tree interface <接口名稱> <接口編號(hào)>