1.创建VLAN
[sw1]vlan batch 11 to 30
[sw2]vlan batch 11 to 30
[sw3]vlan batch 11 to 30
2.配置trunk
[sw1]interface GigabitEthernet 0/0/1
[sw1-GigabitEthernet0/0/1]port link-type trunk
[sw1-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[sw1]interface GigabitEthernet 0/0/2
[sw1-GigabitEthernet0/0/2]port link-type trunk
[sw1-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[sw2]interface GigabitEthernet 0/0/1
[sw2-GigabitEthernet0/0/1]port link-type trunk
[sw2-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[sw2]interface GigabitEthernet 0/0/3
[sw2-GigabitEthernet0/0/3]port link-type trunk
[sw2-GigabitEthernet0/0/3]port trunk allow-pass vlan all
[SW3]interface GigabitEthernet 0/0/2
[SW3-GigabitEthernet0/0/2]port link-type trunk
[SW3-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[SW3]interface GigabitEthernet 0/0/3
[SW3-GigabitEthernet0/0/3]port link-type trunk
[SW3-GigabitEthernet0/0/3]port trunk allow-pass vlan all
3.配置模式为MSTP
[sw1]stp mode mstp
[sw2]stp mode mstp
[sw3]stp mode mstp
4.配置MST
[sw1]stp region-configuration
[sw1-mst-region]region-name dsrw.com
[sw1-mst-region]instance 1 vlan 11 to 20
[sw1-mst-region]instance 2 vlan 21 to 30
[sw1-mst-region]active region-configuration
[sw2]stp region-configuration
[sw2-mst-region]region-name dsrw.com
[sw2-mst-region]instance 1 vlan 11 to 20
[sw2-mst-region]instance 2 vlan 21 to 30
[SW2-mst-region]active region-configuration
[SW3]stp region-configuration
[SW3-mst-region]region-name dsrw.com
[SW3-mst-region]instance 1 vlan 11 to 20
[SW3-mst-region]instance 2 vlan 21 to 30
[SW3-mst-region]active region-configuration
5.查看MSTP
[sw1]display stp region-configuration
Oper configuration
Format selector :0
Region name :dsrw.com
Revision level :0
Instance VLANs Mapped
0 1 to 9, 31 to 4094
1 10 to 20
2 21 to 30
6.配置实例1的根为SW1,备份根SW2,实例2根为SW2,备份根为SW1
[sw1]stp instance 1 priority 4096
[sw1]stp instance 2 priority 8192
[sw2]stp instance 1 priority 8192
[sw2]stp instance 2 priority 4096
7.查看mstp信息
[SW3]display stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/2 ALTE DISCARDING NONE
0 GigabitEthernet0/0/3 ROOT FORWARDING NONE
1 GigabitEthernet0/0/2 ALTE DISCARDING NONE
1 GigabitEthernet0/0/3 ROOT FORWARDING NONE
2 GigabitEthernet0/0/2 ALTE DISCARDING NONE
2 GigabitEthernet0/0/3 ROOT FORWARDING NONE
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容