MSTP多域
实验需求
本实验模拟企业接入ISP的二层网络架构,并采用MSTP实现冗余和防环。
一、ISP网络
1.1 创建vlan在所有设备上,创建vlan10和20
1.2 配置trunk在所有链路上允许vlan10和20
1.3 配置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
1.3.1 域名为ISP
1.3.2 vlan10属于实例1,vlan20属于实例2
stp region-configuration
region-name ISP
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
1.3.3 SW1为CST的总根,配置优先级为0。
1.3.4 配置SW1为实例1的主根,实例2的次根;配置SW2为实例2的主根,实例1的次根。不允许使用优先级priority命令。
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
1.3.5 确认SW3/4的丢弃端口:实例1中,丢弃G0/0/2;实例2中丢弃G0/0/1。
二、企业网络
2.1 创建vlan在所有设备上,创建vlan10和20
2.2 配置trunk在所有链路上允许vlan10和20
2.3 配置MSTP
2.3.1 域名为spoto
2.3.2 vlan10属于实例1,vlan20属于实例2
上述配置与ISP网络配置相似,省略
2.3.3 配置SW5的实例1优先级8192为主根;实例2优先级12288为次根。
2.3.4 配置SW6的实例2优先级8192为主根;实例1优先级12288为次根。
SW5:
stp instance 1 priority 8192
stp instance 2 priority 12288
#
SW6:
stp instance 1 priority 12288
stp instance 2 priority 8192