当前位置:网站首页>三层交换机配置MSTP协议详解【华为eNSP实验】
三层交换机配置MSTP协议详解【华为eNSP实验】
2022-07-23 20:05:00 【华为云】
一,前言
MSTP:在接入层交换机和汇聚层的交换机之间运行MSTP,防止数据在交换网络中无限循环从而产生交换网络的瘫痪,还可以实现均衡负载的作用
上一篇我们已经配置成功了路由/三层交换机DHCP下发地址。下面我们来完成三层交换机配置MSTP协议的任务。
任务需求如下:
8.为提高网络的可靠性,每台二层接入设备都需要和汇聚层设备进行互联, 所以需要配置STP协议在保证可靠的基础上防止环路的发生。(拓展)
10.MSTP、VRRP这些技术同学们可根据情况加以考虑和实现。(拓展)
我们先看一下拓扑图:
二,例子—简单配置MSTP协议
拓扑图如下:
第一步lsw16配置
1.先创建vlan
vlan batch 10 202.到1号口配置
int eth 0/0/13.配置通信模式
port link-type access注意:
port default vlan 104.其他俩个端口
[sw1]port-group group-member Ethernet 0/0/2 to Ethernet 0/0/35.配置为trunk
port link-type trunk6.运行通过所有的vlan
port trunk allow-pass vlan all第二步lsw17配置
和上面一样。
唯一的区别是:
注意:
port default vlan 20第三步配置汇聚层交换机LSW18
1.先创建vlan
vlan batch 10 202.分组
port-group group-member GigabitEthernet 0/0/1 to GigabitEthernet 0/0/33.配置为trunk
port link-type trunk输出如下:
[cour1-GigabitEthernet0/0/1]port link-type trunk [cour1-GigabitEthernet0/0/2]port link-type trunk [cour1-GigabitEthernet0/0/3]port link-type trunk 4.设置允许所有vlan通过
port trunk allow-pass vlan all第四步配置汇聚层交换机LSW19
与第三步配置汇聚层交换机LSW18步骤一样。
第五步配置mstp
在sw10里
设置:[sw10]stp mode mstp
stp mode mstp进入mstp视图:
stp region-configuration 设置名称:
[sw10-mst-region]region-name mstp
region-name mstp设置版本号
[sw10-mst-region]revision-level 0
revision-level 0划分组
[sw10-mst-region]instance 1 vlan 10
[sw10-mst-region]instance 2 vlan 20
instance 1 vlan 10instance 2 vlan 20激活配置:
[sw10-mst-region]active region-configuration
active region-configuration 查看配置:
[sw10-mst-region]dis current-configuration
dis current-configuration如下mstp的所有配置:
stp region-configuration region-name mstprevision-level 0 instance 1 vlan 10 instance 2 vlan 20 active region-configuration如上步骤在sw16,17,18,19各运行一次。
查看
查看mstp
dis stp instance 1 brief
[sw1]dis stp instance 1 brief MSTID Port Role STP State Protection 1 Ethernet0/0/1 DESI LEARNING NONE 1 Ethernet0/0/2 ROOT FORWARDING NONE 1 Ethernet0/0/3 ALTE DISCARDING NONE便捷区:
1.先创建vlan
vlan batch 10 20
2.到1号口配置
int eth 0/0/1
3.配置通信模式
port link-type access
port default vlan 10
4.其他俩个端口
[sw1]port-group group-member Ethernet 0/0/2 to Ethernet 0/0/3
配置为trunk
port link-type trunk
运行通过所有的vlan
port trunk allow-pass vlan all
设置:[sw10]stp mode mstp
进入mstp视图:
[sw10]stp region-configuration
设置名称:
[sw10-mst-region]region-name mstp
设置版本号
[sw10-mst-region]revision-level 0
划分组
[sw10-mst-region]instance 1 vlan 10
[sw10-mst-region]instance 2 vlan 20
激活配置:
[sw10-mst-region]active region-configuration
查看配置:
[sw10-mst-region]dis current-configuration
如下mstp的所有配置:
stp region-configuration
region-name mstp
revision-level 0
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
查看mstpdis stp instance 1 brief三.课设-三层交换机配置MSTP协议
看一下拓扑图:
MSTP协议还是比较简单的。
先看一下,什么是MSTP协议:
MSTP多区域生成树协议:
形成多棵无环路的树,解决广播风暴并实现冗余备份。
多棵生成树在VLAN间实现负载均衡,不同VLAN的流量按照不同的路径转发。
汇聚层:先配置三层交换机:
LSW1如下:
stp instance 1 root primarystp instance 2 root secondaryLSW2如下:
stp instance 2 root primarystp instance 1 root secondary说明:LSW1是1的主根,2的备根。LSW2是2的主根,1的备根。
进入stp region-configuration视图:
设置名称,划分1和2的vlan,激活region-configuration
stp region-configuration region-name zhubo instance 1 vlan 10 20 instance 2 vlan 30 40 50 active region-configuration查看stp配置
display stp brief交换层:
之前已经配置了VLAN,所以我们直接:
stp region-configuration region-name zhubo instance 1 vlan 10 20 instance 2 vlan 30 40 50 active region-configuration即可。
检查结果如下:
ping 192.168.10.253
边栏推荐
- Debian | Can’t locate Debian/Debhelper/Sequence/germinate.pm in @INC
- 从ACL 2022 Onsite经历看NLP热点
- 2022DASCTF MAY
- 安装svn 汉化包 也不能设置中文[通俗易懂]
- D2Admin框架基本使用
- 2022 Shandong elderly care exhibition, China International elderly care service industry exhibition, Jinan elderly care industry exhibition
- Leetcode 209. subarray with the smallest length
- OpenLayers实例-Accessible Map-可访问的地图
- 深度学习-NLP经典论文、课程、论文等资源整理分享
- 我,AI博士生,在线众筹研究主题
猜你喜欢

Leetcode 151. invert words in strings

数仓4.0笔记——数仓环境搭建—— DataGrip准备和数据准备

解决1秒钟内,用户快速点击,重复请求的问题

138-查询案例-涉及知识点:forEach遍历&computed计算属性&v-for循环

scanf()和getchar()的用法讨论

Complex data processing of multi subsystem and multi business modules -- project development practice based on instruction set Internet of things operating system

Leetcode 238. product of arrays other than itself

Top ten shrinking industries in China in the first half of 2022

Shell command and operation principle

AtCoder——Subtree K-th Max
随机推荐
链表——203. 移除链表元素
Prepare for pressure test with JMeter and visualvw
深度学习-NLP经典论文、课程、论文等资源整理分享
小程序頭像組樣式
哈希表、无序集合、映射的原理与实现
【力扣】三数之和
使用Jmeter和VisualVW进行压测准备
21. Mix in details
dokcer镜像理解
Top ten shrinking industries in China in the first half of 2022
[force buckle] the sum of the nearest three numbers
QT with OpenGL (frame cache)
数组——59. 螺旋矩阵 II
Task03 notes 2
Chinese [easy to understand] cannot be set when installing SVN localization package
数组——704. 二分查找
关于网段CIDR的笔记
游戏服务器中的排行榜设计
138-查询案例-涉及知识点:forEach遍历&computed计算属性&v-for循环
BM14 链表的奇偶重排

