华为MSTP协议

本文记录一下华为MSTP协议配置

本文记录一下华为MSTP协议配置

0x01 创建四个VLAN


<Huawei>sys

[Huawei]vlan batch 10 20 30 40

0x02 分别设置trunk链路


[Huawei]port-group group-member e 0/0/1 to e 0/0/2

[Huawei-port-group]port link-type trunk

[Huawei-port-group]port trunk allow-pass vlan all

说明:在每个交换机都要创建四个VLAN、并且都设置trunk链路

0x03 进入STP配置视图


[Huawei]stp region-configuration

0x04 创建域名以及修订级别


[Huawei-mst-region]region-name xinhua

[Huawei-mst-region]revision-level 1

0x05 创建两个实例分别加入vlan


[Huawei-mst-region]instance 1 vlan 10 20

[Huawei-mst-region]instance 2 vlan 30 40

0x06 激活实例


[Huawei-mst-region]active region-configuration

0x07 设置实例的优先级别、指定实例根桥

首先查看一下LSW3:

enter description here

enter description here

可以看到LSW3是总根桥

在LSW4查看STP:

enter description here

然后设置实例2的优先级别为0

[Huawei]stp instance 2 priority 0

enter description here

实验文件链接:http://pan.baidu.com/s/1pJpcY1P 密码:1vp9