当前位置:网站首页>[Network] LAN technology MSTP
[Network] LAN technology MSTP
2022-07-29 17:19:00 【Huawei cloud】
Implementation belongs to the samevlan hosts are able to communicate with each other,并配置MSTP使得SW1成为vlan 1的主根,vlan 2的备份根;使得SW2成为vlan 1的备份根,vlan 2的主根
Before the experiment:
active region-configuration //This command is used to activate the MST域的配置,否则配置无法生效
SW1 的配置:
[Huawei]sys SW1
[SW1]vlan batch 2 to 3
[SW1]int e0/0/1
[SW1-Ethernet0/0/1]port link-type trunk
[SW1-Ethernet0/0/1]port trunk allow-pass vlan all
[SW1-Ethernet0/0/1]int e0/0/2
[SW1-Ethernet0/0/2]port link-type trunk
[SW1-Ethernet0/0/2]port trunk allow-pass vlan all
[SW1-Ethernet0/0/2]int e0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 2
[SW1-Ethernet0/0/3]q
[SW1]stp region-configuration
[SW1-mst-region]region-name re1
[SW1-mst-region]revision-level 1 //配置修订级别为1,I haven't figured out what to do with this step
[SW1-mst-region]instance 1 vlan 2 //关联实例1和vlan 2
[SW1-mst-region]instance 2 vlan 3
[SW1-mst-region]q
[SW1]stp instance 1 root primary
[SW1]stp instance 2 root secondary
[SW1-mst-region]active region-configuration //这一步很重要
SW 2的配置:
[Huawei]sys SW2
[SW2]vlan batch 2 to 3
[SW2]int e0/0/1
[SW2-Ethernet0/0/1]port link-type trunk
[SW2-Ethernet0/0/1]port trunk allow-pass vlan all
[SW2-Ethernet0/0/1]int e0/0/2
[SW2-Ethernet0/0/2]port link-type trunk
[SW2-Ethernet0/0/2]port trunk allow-pass vlan all
[SW2-Ethernet0/0/2]int e0/0/3
[SW2-Ethernet0/0/3]port link-type access
[SW2-Ethernet0/0/3]port default vlan 3
[SW2-Ethernet0/0/3]q
[SW2]stp region-configuration
[SW2-mst-region]region-name re1
[SW2-mst-region]revision-level 1
[SW2-mst-region]instance 1 vlan 2 //关联实例1和vlan 2
[SW2-mst-region]instance 2 vlan 3
[SW2-mst-region]q
[SW2]stp instance 2 root primary
[SW2]stp instance 1 root secondary
[SW2-mst-region]active region-configuration //这一步很重要
SW 3的配置:
[Huawei]sys SW3
[SW3]vlan batch 2 to 3
[SW3]int e0/0/1
[SW3-Ethernet0/0/1]port link-type trunk
[SW3-Ethernet0/0/1]port trunk allow-pass vlan all
[SW3-Ethernet0/0/1]int e0/0/2
[SW3-Ethernet0/0/2]port trunk allow-pass vlan all
[SW3-Eth-Trunk0]int e0/0/3
[SW3-Ethernet0/0/3]port link-type access
[SW3-Ethernet0/0/3]port default vlan 2
[SW3-Ethernet0/0/3]int e0/0/4
[SW3-Ethernet0/0/4]port link-type access
[SW3-Ethernet0/0/4]port default vlan 3
[SW3-Ethernet0/0/4]q
[SW3]stp region
[SW3-mst-region]region-name re1
[SW3-mst-region]revision-level 1
[SW3-mst-region]instance 1 vlan 2
[SW3-mst-region]instance 2 vlan 3
[SW3-mst-region]active region-configuration //这一步很重要
测试:
PC 1 ping PC 3
在SW 1的e0/0/1和SW 2的e 0/0/2没有icmp报文,在SW 1的e 0/0/2的抓包结果如下:
边栏推荐
猜你喜欢

Thread Dump分析方法

面试官:MySQL如何根据执行计划调优SQL语句?

解析正则表达式(一)

Sentinel热门词汇限流如何实现

This article penetrates the architecture design and cluster construction of the distributed storage system Ceph (hands-on)

可行性研究报告模板

#夏日挑战赛# HarmonyOS - 实现签名功能

面试突击69:TCP 可靠吗?为什么?

中小型金融企业该如何进行灾备建设?

How should small and medium-sized financial enterprises carry out disaster recovery construction?
随机推荐
[WeChat Mini Program] Component usage and attribute reference
美国对集成电路及其产品发起337调查:英特尔/联想/宏碁/华硕/微星均涉及其中
动态规划 爬楼梯
牛血清白蛋白-葡聚糖纳米颗粒包埋蛋清源活性肽/葡聚糖共价接枝物的制备
Query term weights, search term weighting
Texture 】 【 terrain 】 【 virtual virtual terrain texture technology is introduced
[网络]路由路由策略
The two armies clash
【微信小程序】零基础学 | 小程序语法
Win10 check sha256
知识图谱构建全流程
[极客大挑战 2019]BabySQL 1
tutorial/detailed_workflow.ipynb 量化金融Qlib库
718. 最长重复子数组
The difference between Loadrunner and Jmeter is the same
Moving forward steadily without forgetting the original intention, Volvo's sense of security comes from the public's recognition
58安全-图像质量评价技术实践
虚拟偶像的歌声原来是这样生成的!
leetcode:1901. 寻找峰值 II【二分找矩阵局部最大】
Quantitative primary - akshare get the stock code, the minimalist strategy