交换机MSTP (多生成树防环协议)基础配置

文章详细描述了如何在多个交换机上配置MSTP,包括创建VLAN10-80,划分Instance1和Instance2,指定主备根桥,并配置接口为trunk模式放行VLAN。最后,对SW1和SW2进行MSTI配置以确定它们在不同实例中的角色。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MSTP 基础配置 在所有交换机上创建 VLAN10、20、30、40、50、60、70、80,配置 MSTP 域 hcip,并创建 两个新的实例:Instance 1、Instance 2,将 VLAN10、30、50、70 映射到 Instance 1,将 VLAN20、40、60、80 映射到 Instance 2,同时将 SW1 规划为 MSTI1 的主根桥、MSTI2 的 备份根桥,将 SW2 规划为 MSTI2 的主根桥、MSTI1 的备份根桥。

SW1 SW2 SW3 SW4 创建vlan

vlan batch 10 20 30 40 50 60 70 80

所有交换机互联接口都配置为 trunk 模式 ,并且放行上述创建的vlan

interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 50 60 70 80
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 50 60 70 80
#
interface GigabitEthernet0/0/3
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 50 60 70 80
#
interface GigabitEthernet0/0/4
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 50 60 70 80

#或者执行如下快速配置命令
port-group group-member g0/0/1 to g0/0/4
 port link-type trunk
 port trunk allow-pass vlan 10 20 30 40 50 60 70 80

所有交换机均配置MSTP 

stp mode mstp
stp region-configuration
 region-name hcip
 revision-level 1
 instance 1 vlan 10 30 50 70
 instance 2 vlan 20 40 60 80
 active region-configuration

将 SW1 规划为 MSTI1 的主根桥、MSTI2 的 备份根桥,

stp instance 1 root primary
stp instance 2 root secondary

将 SW2 规划为 MSTI2 的主根桥、MSTI1 的备份根桥。

stp instance 1 root secondary
stp instance 2 root primary

SW1查看配置结果

SW2查看配置结果 

连线接口图

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值