实验需求
本实验模拟企业接入ISP的二层网络架构,并采用MSTP实现冗余和防环。
sys
sys SWX
vlan batch 10 20
int g0/0/1
port link trunk
port trunk all vlan 10 20
int g0/0/2
port link trunk
port trunk all vlan 10 20
int g0/0/3
port link trunk
port trunk all vlan 10 20
q
stp mode mstp
stp region-configuration
region-name ISP
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
SW1:
stp instance 0 priority 0
stp instance 1 root primary
stp instance 2 root secondary
#
SW2:
stp instance 1 root secondary
stp instance 2 root primary
上述配置与ISP网络配置相似,省略
SW5:
stp instance 1 priority 8192
stp instance 2 priority 12288
#
SW6:
stp instance 1 priority 12288
stp instance 2 priority 8192