当前位置:网站首页>多生成树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
边栏推荐
- Baidu written test 2022.4.12 + programming topic: simple integer problem
- Collation of errors encountered in the use of redis shake
- 2022年中国数字科技专题分析
- Connect PHP to MSSQL via PDO ODBC
- Mumu, go all the way
- 基础贪心总结
- 小程序知识点积累
- adobe illustrator 菜單中英文對照
- Advantages, disadvantages and selection of activation function
- Common types of automated testing framework ▏ automated testing is handed over to software evaluation institutions
猜你喜欢
Krpano panorama vtour folder and tour
【AI周报】英伟达用AI设计芯片;不完美的Transformer要克服自注意力的理论缺陷
X509 certificate cer format to PEM format
Wechat applet customer service access to send and receive messages
T2 icloud calendar cannot be synchronized
激活函数的优缺点和选择
网站建设与管理的基本概念
Demonstration meeting on startup and implementation scheme of swarm intelligence autonomous operation smart farm project
pgpool-II 4.3 中文手册 - 入门教程
自主作业智慧农场创新论坛
随机推荐
移动app测试如何进行?
编译,连接 -- 笔记
Krpano panorama vtour folder and tour
重定向和请求转发详解
控制结构(二)
utils.DeprecatedIn35 因升级可能取消,该如何办
Explanation 2 of redis database (redis high availability, persistence and performance management)
使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
Grep was unable to redirect to the file
The wechat applet optimizes the native request through the promise of ES6
What are the mobile app software testing tools? Sharing of third-party software evaluation
Cookie&Session
c语言---指针进阶
Connect PHP to MySQL via PDO ODBC
Common types of automated testing framework ▏ automated testing is handed over to software evaluation institutions
Go语言条件,循环,函数
PHP PDO ODBC loads files from one folder into the blob column of MySQL database and downloads the blob column to another folder
怎么看基金是不是reits,通过银行购买基金安全吗
小程序知识点积累
Mysql database explanation (10)