H3C MSTP简单实验
实验需求
所有交换机创建 Vlan10,Vlan20,Vlan30 和 Vlan40,可以在所有链路上传输
实验解法
SW1
<H3C>SYS
System View: return to User View with Ctrl+Z.
[H3C]sysn sw1
[sw1]vlan 10
[sw1-vlan10]vlan 20
[sw1-vlan20]vlan 30
[sw1-vlan30]vlan 40
SW2
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysn sw2
[sw2]vlan 10
[sw2-vlan10]vlan 20
[sw2-vlan20]vlan 30
[sw2-vlan30]vlan 40
SW3
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysn sw3
[sw3]vlan 10
[sw3-vlan10]vlan 20
[sw3-vlan20]vlan 30
[sw3-vlan30]vlan 40
2,配置所有交换机互联口为trunk,并设置必须的vlan通过
SW1
[sw1-vlan40]int ran g1/0/1 to g1/0/2
[sw1-if-range]port link-ty tr
[sw1-if-range]port tr pe vlan 10 20 30 40
SW2
[sw2-vlan40]int ran g1/0/1 to g1/0/2
[sw2-if-range]port link-ty tr
[sw2-if-range]port tr pe vlan 10 20 30 40
SW3
[sw3-vlan40]int ran g1/0/1 to g1/0/2
[sw3-if-range]port link-ty tr
[sw3-if-range]port tr pe vlan 10 20 30 40
3,所有交换机配置在一个 MST 域中,域名为 h3c,修订级别为 1,创建 Instance1 映射 Vlan10 和 Vlan20,创建 Instance2 映射 Vlan30 和 Vlan40
SW1
[sw1]stp re
[sw1-mst-region]re h3c
[sw1-mst-region]revis 1
[sw1-mst-region]ins 1 vlan 10 20
[sw1-mst-region]ins 2 vlan 30 40
[sw1-mst-region]ac re
SW2
[sw2-if-range]stp re
[sw2-mst-region]re h3c
sw2-mst-region]revis 1
[sw2-mst-region]ins 1 vlan 10 20
[sw2-mst-region]ins 2 vlan 30 40
[sw2-mst-region]ac re
SW3
[sw3-if-range]stp re
[sw3-mst-region]re h3c
[sw3-mst-region]revis 1
[sw3-mst-region]ins 1 vlan 10 20
[sw3-mst-region]ins 2 vlan 30 40
[sw3-mst-region]ac re
4,SW1 配置为 Instance1 的主根和 Instance2 的备份根,SW2 配置为 Instance2 的主根和 Instance1 的备份根
SW1
[sw1-mst-region]qu
[sw1]stp ins 1 root pr
[sw1]stp ins 2 root se
SW2
[sw2-mst-region]qu
[sw2]stp ins 1 root se
[sw2]stp ins 2 root pr
5,在sw1上使用dis stp br ,查看是否生效
[sw1-mst-region]dis stp br