2台交换机mstp

在这里插入图片描述
lsw3的配置
[Huawei]dis cu
vlan batch 10 20

stp instance 1 priority 4096 设置lsw3的实例1的优先级低于lsw4 使其成为1的根
stp instance 2 priority 8192

cluster enable
ntdp enable
ndp enable

stp region-configuration
region-name huawei
revision-level 1
instance 1 vlan 10 设置实例1映射的vlan
instance 2 vlan 20
active region-configuration 激活

interface Vlanif10
ip address 192.168.1.1 255.255.255.0

interface Vlanif20
ip address 192.168.2.1 255.255.255.0

interface MEth0/0/1

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
stp instance 2 cost 40000 配置实例2的开销值大于默认的 使其成为堵塞端口

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20

lsw4的配置
[Huawei]dis cu

sysname Huawei

vlan batch 10 20

stp instance 1 priority 8192
stp instance 2 priority 4096

cluster enable
ntdp enable
ndp enable

drop illegal-mac alarm

diffserv domain default

stp region-configuration
region-name huawei
revision-level 1
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 10 20
stp instance 1 cost 40000

interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 10 20

查看端口情况
[Huawei] dis stp brief
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/1 DESI FORWARDING NONE
0 GigabitEthernet0/0/2 DESI FORWARDING NONE
0 GigabitEthernet0/0/3 DESI FORWARDING NONE
0 GigabitEthernet0/0/4 DESI FORWARDING NONE
1 GigabitEthernet0/0/1 DESI FORWARDING NONE
1 GigabitEthernet0/0/2 DESI FORWARDING NONE
2 GigabitEthernet0/0/1 ALTE DISCARDING NONE
2 GigabitEthernet0/0/2 ROOT FORWARDING NONE
[Huawei]dis stp instance 1
-------[MSTI 1 Global Info]-------
MSTI Bridge ID :4096.4c1f-cc26-6bc6
MSTI RegRoot/IRPC :4096.4c1f-cc26-6bc6 / 0
MSTI RootPortId :0.0
Master Bridge :32768.4c1f-cc26-6bc6
Cost to Master :0
TC received :6
TC count per hello :0
Time since last TC :0 days 23h:6m:26s
Number of TC :8
Last TC occurred :GigabitEthernet0/0/2
----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=20000
Designated Bridge/Port :4096.4c1f-cc26-6bc6 / 128.1
Port Times :RemHops 20
TC or TCN send :3
TC or TCN received :2
----[Port2(GigabitEthernet0/0/2)][FORWARDING]----
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=20000
Designated Bridge/Port :4096.4c1f-cc26-6bc6 / 128.2
Port Times :RemHops 20
TC or TCN send :2
TC or TCN received :2
[Huawei]display stp interface GigabitEthernet 0/0/3
-------[CIST Global Info][Mode MSTP]-------
CIST Bridge :32768.4c1f-cc26-6bc6
Config Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
Active Times :Hello 2s MaxAge 20s FwDly 15s MaxHop 20
CIST Root/ERPC :32768.4c1f-cc26-6bc6 / 0
CIST RegRoot/IRPC :32768.4c1f-cc26-6bc6 / 0
CIST RootPortId :0.0
BPDU-Protection :Disabled
TC or TCN received :29
TC count per hello :0
STP Converge Mode :Normal
Time since last TC :0 days 2h:10m:14s
Number of TC :51
Last TC occurred :GigabitEthernet0/0/4
----[Port3(GigabitEthernet0/0/3)][FORWARDING]----
Port Protocol :Enabled
Port Role :Designated Port
Port Priority :128
Port Cost(Dot1T ) :Config=auto / Active=20000
Designated Bridge/Port :32768.4c1f-cc26-6bc6 / 128.3
Port Edged :Config=default / Active=disabled
Point-to-point :Config=auto / Active=true
Transit Limit :147 packets/hello-time

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值