H3C MSTP 的实验

H3C MSTP 的实验
STP(通过阻塞端口来消除环路,并能够实现链路备份的目的,选举根端口和非根端口)
MSTP(多生成树协议)解决启用VLAN的交换网络中的环路

RSTP(快速生成树协议) 与stp相比,最显著特点是收敛速度加快
stp mode rstp
要运行rstp,建议所有的交换机都换成rstp
和stp的机制和原理一样

mstp
SW1
vlan 10
vlan 20

SW2
vlan 10
vlan 20

SW3
vlan 10
vlan 20

记住一定要先把接口设置成trunk模式再去打stp的配置
sw1
port link-type trunk
port trunk permit vlan all
sw2
port link-type trunk
port trunk permit vlan all
sw3
port link-type trunk
port trunk permit vlan all
SW1
stp region-configuration
region name h3c 区域名称
instance 1 vlan 10 将vlan 10 划入 实例1中
instance 2 vlan 20 将vlan 20 划入 实例1中
active region-configuration **region配置

SW2
stp region-configuration
region-name h3c
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

SW3
stp region-configuration
region-name h3c
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

SW1
stp instance 1 root primary 将SW2设为主根桥

SW2
stp instance 2 root primary