MSTP基本配置

在这里插入图片描述
[SW1-mst-region]int g0/0/1
[SW1-GigabitEthernet0/0/1]dis this
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW1-GigabitEthernet0/0/1]int g0/0/2
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW2-mst-region]int g0/0/1
[SW2-GigabitEthernet0/0/1]dis this
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW2-GigabitEthernet0/0/1]int g0/0/2
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW3-mst-region]int g0/0/1
[SW3-GigabitEthernet0/0/1]dis this
port link-type trunk
port trunk allow-pass vlan 2 to 4094
[SW3-GigabitEthernet0/0/1]int g0/0/2
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094

[SW1-mst-region]dis this
stp region-configuration
region-name GOK
revision-level 12
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

[SW2-mst-region]dis this
stp region-configuration
region-name GOK
revision-level 12
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

[SW3-mst-region]dis this
stp region-configuration
region-name GOK
revision-level 12
instance 1 vlan 10
instance 2 vlan 20
active region-configuration

多了实例1和2
在这里插入图片描述
[SW1]dis this
vlan batch 10 20
stp instance 1 root primary //实例1 中交换机1为根桥

[SW2]dis this
vlan batch 10 20
stp instance 2 root primary //实例2中交换机2为根桥

在这里插入图片描述
以交换机1为例,在实例1中交换机1位根桥,所以实例一中交换机的两个端口都为指定端口

在这里插入图片描述
SW2,在实例2中交换机1位根桥,所以实例2中交换机2的两个端口都为指定端口

实现了负载分担

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值