当前位置:网站首页>多生成树MSTP的配置
多生成树MSTP的配置
2022-04-23 15:37:00 【GRQ。】
配置需求:
共有4个vlan 10 20 30 40
要求把vlan10 20 加入实例1
vlan30 40 加入实例2
网络拓扑图如下:
交换机1配置:
[Huawei]vlan batch 10 20 30 40
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
以上配置为创建VLAN并把所有端口都放行VLAN
[Huawei]stp mode mstp (stp模式设置为 mstp 华为交换机默认开启 mstp)
[Huawei]stp region-configuration (配置域)
[Huawei-mst-region]region-name GRQ (配置域名)
[Huawei-mst-region]revision-level 10 (修订级别)
[Huawei-mst-region]instance 1 vlan 10 20 (配置实例1并绑定vlan10 20)
[Huawei-mst-region]instance 2 vlan 30 40 (配置实例2并绑定vlan30 40)
[Huawei-mst-region]active region-configuration 【激活域配置(激活后才能生效)】
以上配置要在其他交换机上保持一致
交换机2配置:
[Huawei]vlan batch 10 20 30 40
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei]stp mode mstp
[Huawei]stp region-configuration
[Huawei-mst-region]region-name GRQ
[Huawei-mst-region]revision-level 10
[Huawei-mst-region]instance 1 vlan 10 20
[Huawei-mst-region]instance 2 vlan 30 40
[Huawei-mst-region]active region-configuration
以上配置与其他交换机保持一致
[Huawei]stp instance 1 priority 0 (配置实例1的优先级为4096)
[Huawei]stp instance 2 priority 4096 (配置实例2的优先级为0)
[Huawei]stp instance 0 priority 0 (配置实例0的优先级为4096)(实例0为未加入实例的vlan,如vlan1)
交换机3配置:
[Huawei]vlan batch 10 20 30 40
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-type trunk
[Huawei-GigabitEthernet0/0/1]port trunk allow-pass vlan all
[Huawei-GigabitEthernet0/0/1]int g0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type trunk
[Huawei-GigabitEthernet0/0/2]port trunk allow-pass vlan all
[Huawei]stp mode mstp
[Huawei]stp region-configuration
[Huawei-mst-region]region-name GRQ
[Huawei-mst-region]revision-level 10
[Huawei-mst-region]instance 1 vlan 10 20
[Huawei-mst-region]instance 2 vlan 30 40
[Huawei-mst-region]active region-configuration
以上配置与其他交换机保持一致
[Huawei]stp instance 1 priority 4096
[Huawei]stp instance 2 priority 0
[Huawei]stp instance 0 priority 4096
以上配置与交换机2交叉
在交换机1上查看配置是否正确

如图:对于实例1来说,1号口为根端口,2号口为阻塞端口
版权声明
本文为[GRQ。]所创,转载请带上原文链接,感谢
https://blog.csdn.net/WLxiaobaicai/article/details/124307315
边栏推荐
- Node.js ODBC连接PostgreSQL
- Hj31 word inversion
- Nacos program connects to mysql8 0+ NullPointerException
- redis-shake 使用中遇到的错误整理
- Deeply learn the skills of parameter adjustment
- 网站压测工具Apache-ab,webbench,Apache-Jemeter
- 山寨版归并【上】
- Detailed explanation of kubernetes (XI) -- label and label selector
- 通过 PDO ODBC 将 PHP 连接到 MSSQL
- php类与对象
猜你喜欢

Mysql database explanation (IX)

深度学习——超参数设置

Wechat applet customer service access to send and receive messages

Openstack command operation

Detailed explanation of kubernetes (XI) -- label and label selector

Kubernetes详解(十一)——标签与标签选择器

ICE -- 源码分析

My raspberry PI zero 2W toss notes to record some problems and solutions

群体智能自主作业智慧农场项目启动及实施方案论证会议

Basic concepts of website construction and management
随机推荐
Cookie&Session
GFS distributed file system (Theory)
导入地址表分析(根据库文件名求出:导入函数数量、函数序号、函数名称)
Collation of errors encountered in the use of redis shake
Functions (Part I)
Detailed explanation of kubernetes (IX) -- actual combat of creating pod with resource allocation list
Mysql database explanation (IX)
字节面试 transformer相关问题 整理复盘
【backtrader源码解析18】yahoo.py 代码注释及解析(枯燥,对代码感兴趣,可以参考)
网站压测工具Apache-ab,webbench,Apache-Jemeter
My raspberry PI zero 2W toss notes to record some problems and solutions
Machine learning - logistic regression
Openstack command operation
电脑怎么重装系统后显示器没有信号了
G007-HWY-CC-ESTOR-03 华为 Dorado V6 存储仿真器搭建
Detailed explanation of kubernetes (XI) -- label and label selector
Elk installation
Demonstration meeting on startup and implementation scheme of swarm intelligence autonomous operation smart farm project
[leetcode daily question] install fence
MultiTimer v2 重构版本 | 一款可无限扩展的软件定时器