华为eNSP-MSTP配置(单实例、多实例)

MSTP单实例配置

拓扑图:

LSW1

[SW1]stp region-configuration        //进入设备的MST域试图
[SW1-mst-region]region-name huawei        //将域名改为huawei
[SW1-mst-region]active region-configuration        //激活MST域        
[SW1-mst-region]q
[SW1]stp mode mstp        //设置生成树的模式为MSTP
[SW1]stp root primary        //将SW1指定为主根桥
[SW1]stp enable        //开启生成树协议

LSW2

[SW2]stp region-configuration
[SW2-mst-region]region-name huawei 
[SW2-mst-region]active region-configuration 
[SW2]stp root secondary 

[SW2]stp mode  mstp
[SW2]stp enable  

LSW3

[SW3]stp region-configuration  
[SW3-mst-region]region-name huawei
[SW3-mst-region]active region-configuration 
[SW3-mst-region]q
[SW3]stp mode  mstp 
[SW3]stp enable

查看SW3的接口:SW3的e0/0/1接口角色为替代接口,而且状态为丢去。

查看当前生效的MST域配置信息


MSTP多实例配置

拓扑图:

图中配置两个vlan,分别为vlan 10,vlan 20。

vlan 10 为一个实例,根桥在SW1 上

vlan 20为一个实例,根桥在SW2 上

SW1

[SW1]vlan  batch 10 20

[SW1]stp region-configuration 
[SW1-mst-region]region-name huawei
[SW1-mst-region]instance  1 vlan  10
[SW1-mst-region]instance  2 vlan  20
[SW1-mst-region]active region-configuration 
[SW1]stp mode mstp 
[SW1]stp instance 0 root primary 
[SW1]stp instance 1 root  primary 
[SW1]stp instance 2 root secondary 
[SW1]stp enable 

SW2

[SW2]stp re    
[SW2]stp region-configuration 
[SW2-mst-region]region-name huawei
[SW2-mst-region]instance 1 vlan  10
[SW2-mst-region]instance  2 vlan  20
[SW2-mst-region]active region-configuration 
[SW2-mst-region]q
[SW2]stp mode mstp 
[SW2]stp instance 0 root secondary 
[SW2]stp instance 1 root secondary 
[SW2]stp instance 2 root primary
[SW2]stp enable 

SW3

[SW3]stp region-configuration 
[SW3-mst-region]region-name huawei
[SW3-mst-region]instance 1 vlan 10
[SW3-mst-region]instance 2 vlan 20
[SW3-mst-region]q
[SW3]stp mode mstp 
[SW3]stp enable 

查看当前生效的MST域配置信息

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值