vlamstp的配置_第1张图片

[sw1]vlan batch 10 20
[sw1]int e0/0/3
[sw1-Ethernet0/0/3]port link-type access

[sw1-Ethernet0/0/3]port default vlan 10

[sw1]int e0/0/4

[sw1-Ethernet0/0/4]port link-type access

[sw1-Ethernet0/0/4]port default vlan 20
[sw2-thernet0/0/1]port link-type trunk
[sw2Ethernet0/0/1]port trunk allow-pass vlan all

[sw2]vlan batch 10 20
[sw2]int e0/0/3
[sw2-Ethernet0/0/3port link-type access
[sw2-Ethernet0/0/3]rt default vlan 10
[sw2]int e0/0/4
[sw2-Ethernet0/0/4]port link-type access
[sw2-Ethernet0/0/4]port default vlan 20
[sw2-thernet0/0/1]port link-type trunk
[sw2Ethernet0/0/1]port trunk allow-pass vlan all

[sw3]vlan batch 10 20
[sw3]interface e0/0/3
[sw3-Ethernet0/0/3]port link-type access
[sw3-Ethernet0/0/3]port default vlan 10

[sw3]interface e0/0/4
[sw3-Ethernet0/0/4] port link-type access
[sw3-Ethernet0/0/4] port default vlan 20
[sw3-Ethernet0/0/1]port link-type trunk
[sw3-Ethernet0/0/1]port trunk allow-pass vlan all
[sw3-Ethernet0/0/2]port link-type trunk
[sw3-Ethernet0/0/2]port trunk allow-pass vlan all
[sw1stp region-configuration
[sw1mst-region]region-name 1808
[sw1- mst-region]]instance 1 vlan 10
[sw1- mst-region] instance 2 vlan 20

[sw1mst-region]active region-configuration

[sw2]stp region-configuration
[sw2-mst-region]region-name 1808
[sw2-mst-region]instance 1 vlan 10
[sw2-mst-region]instance 2 vlan 20
[sw2-mst-region]active region-configuration

[sw3]stp region-configuration
[sw3-mst-region]region-name 1808
[sw3-mst-region]instance 1 vlan 10
[sw3-mst-region]instance 2 vlan 20
[sw3-mst-region]active region-con
[sw3-mst-region]active region-configuration

[sw2]stp instance 1 root secondary
//实例1作为备根
[sw2]stp instance 2 priority 0
//实例2作为主根

[sw3]stp instance 1 root primary
实例1作为主根
[sw3]stp instance 2 priority 4096
实例2作为备根