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

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查看配置结果 

连线接口图

相关推荐

  1. 【华为交换交换机MSTP+VRRP配置

    2024-04-01 22:28:04       63 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-04-01 22:28:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-04-01 22:28:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-04-01 22:28:04       82 阅读
  4. Python语言-面向对象

    2024-04-01 22:28:04       91 阅读

热门阅读

  1. 提取单选框的值,并通过ajax传值到后台

    2024-04-01 22:28:04       33 阅读
  2. Spring 的 Ioc配置

    2024-04-01 22:28:04       34 阅读
  3. Python:文件读写

    2024-04-01 22:28:04       35 阅读
  4. NodeJs(前端面试题整合)

    2024-04-01 22:28:04       32 阅读
  5. 潍坊如何申请专利

    2024-04-01 22:28:04       35 阅读
  6. RTOS--异常向量和中断向量

    2024-04-01 22:28:04       30 阅读
  7. c++计算浮点数相除的余

    2024-04-01 22:28:04       34 阅读
  8. C++20中的jthread

    2024-04-01 22:28:04       38 阅读