软件开发培训班 >> 网络技术 >> 网络搭建
锐捷交换机配置命令总结上篇 . |
|
本文标签:锐捷交换机 管理锐捷交换机MAC地址表: 1、查看MAC地址表 S2126G#show mac-address-table 2、配置MAC地址表记录的生存时间(缺省为300秒) S2126G(config)#mac-address-table aging-time <10-1000000> 3、查看MAC地址表记录的生存时间 S2126G#show mac-address-table aging-time 锐捷交换机VLAN的配置: 1.添加一个VLAN S2126G(config)#vlan <1-4094> S2126G(config-vlan)# 2.为VLAN命名(可选) S2126G(config-vlan)#name 将锐捷交换机端口分配到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不可被清除 锐捷交换机VLAN的验证: 1.显示全部的VLAN:Switch#show vlan 2.显示单独的VLAN :Switch#show vlan id <1-4094> 将VLAN信息保存到flash中:Switch#write memory 从flash中清除VLAN信息:Switch#delete flash:vlan.dat 锐捷交换机RSTP的配置: 1.启用生成树:S2126G(config)#spanning-tree 2.配置锐捷交换机优先级:S2126G(config)#spanning-tree priority <0-61440> “0”或“4096”的倍数(RSTP BPDU该值后12bit全0) 3.配置交换机端口优先级:S2126G(config-if)#spanning-tree port-priority <0-240> “0”或“16”的倍数(RSTP BPDU该值后4bit全0) 4、生成树hello时间的配置(由Root决定):S2126G(config)#spanning-tree hello-time <1-10> 5、生成树的验证:Switch#show spanning-tree Switch#show spanning-tree interface <接口名称> <接口编号> 锐捷交换机配置命令的其他篇章请阅读:中篇和下篇 |