MSTP配置
mstp电路配置及调试方法研究

mstp电路配置及调试方法研究
一、mstp电路配置
1、准备工作:确定拓扑结构;为MSTP电路准备基本构成:根桥、边缘桥、孤立端口;MSTP电路拓扑及硬件选择;确定接口类型:Ethernet、Serial、Fiber等。
2、程序开发:MSTP电路的程序开发,根据要求分配每个桥的ID;确定每个桥的角色,前驱,允许、高速桥协议(BPDU)及主备模式;MAC地址学习;网络状况监控;地址转发和循环检测;BPDU过滤;主动告警报告等。
3、网络配置:MSTP电路配置拓扑结构,确定MSTP拓扑,分配BRIDGE ID;根桥安装和配置;边缘桥和孤立端口安装和配置;配置MSTP服务,包括端口设置,BPDU设置,BPDU过滤;路径规划。
4、网络测试:断线测试,以检查路由器选择路径是否正确;丢包率测试,测试本地环路的数据平均分布情况;MSTP容错能力测试,检查网络拓扑结构是否能够应对节点故障。
二、mstp电路调试方法研究
1、内部调试:安装系统时,核查内存卡;内部接线时,完全跟随电路图;设备连接时,采用标准网络及调试网线,检查连接及同步状态;把已安装的设备地址加入到管理服务器;正确维护桥接表及设备MAC地址表;核查所使用的配置系统及定义的网络节点。
2、网络调试:网络调试主要分四步:第一步调试系统,以保证操作正常;第二步检查连接是否正确,以及链路状态是否正常;第三步进行端口配置,设置桥接表;第四步检查状态,确定网络是否正常。
3、系统调试:系统调试的第一步是检查路由器的运行状态;第二步是检查端口的状态,确定端口是正常工作还是有问题;第三步是通过在路由器上启用BPDU
来连接;第四步是将网络的正常工作状态纳入系统调整;第五步是将网络行为与设计要求进行联系,检查网络安全性及耐性。
2024版三层交换机配置MSTP协议详解华为eNSP实验[1]
![2024版三层交换机配置MSTP协议详解华为eNSP实验[1]](https://img.taocdn.com/s3/m/30b1977f11661ed9ad51f01dc281e53a580251b9.png)
总结与展望
实验环境搭建
成功搭建华为eNSP实验环境,包括三层交换机、PC等网络设备,并正确连接物理链路。
MSTP协议配置
在三层交换机上完成MSTP协议的配置,实现VLAN的划分和跨交换机的通信。
实验结果验证
通过PC机的互通测试,验证MSTP协议配置的正确性和有效性。
实验总结
03
02
01
MSTP是IEEE 802.1s标准中定义的一种协议,是STP(Spanning Tree Protocol,生成树协议)的扩展,支持多实例生成树,可以实现不同VLAN(Virtual Local Area Network,虚拟局域网)之间的负载均衡和快速收敛。
MSTP协议特点
多实例生成树
兼容性
VLAN感知
为每个VLAN配置一个三层接口,并分配IP地址,以便实现不同VLAN之间的路由。
配置三层接口
01
02
03
配置VLAN和接口
配置MSTP域和实例
在交换机上创建一个MSTP域,并为该域分配一个唯一的域名。
配置MSTP实例
在MSTP域中创建多个MSTP实例,每个实例对应一个生成树拓扑。根据网络需求,为每个实例分配相应的VLAN。
配置MSTP优先级
设置交换机的MSTP优先级,以确定交换机在生成树拓扑中的角色(如根桥、备份根桥等)。
配置MSTP域
配置MSTP端口
将交换机上的端口配置为MSTP端口,并设置端口的路径开销、端口优先级等参数。
配置MSTP链路
在交换机之间建立MSTP链路,实现生成树拓扑的连接。根据网络需求,可以配置链路的带宽、延迟等参数。
快速收敛
MSTP协议工作原理
总结mstp的功能及其配置步骤

MSTP(多生成树协议)的主要功能是将一个交换网络划分成多个域,每个域内形成多棵生成树,生成树之间彼此独立,实现不同VLAN流量的分离,达到网络负载均衡的目的。
它解决了STP(生成树协议)的各种问题,如初始化慢、直连故障需要等待30秒、非直连需要等待50秒、拓扑变化处理机制复杂等。
MSTP的配置步骤如下:
1. 给交换设备配置MSTP的工作模式、配置域并激活。
2. 启动MSTP,MSTP开始进行生成树计算,将网络修剪成树状,破除环路。
3. 若网络规划者需要人为干预生成树计算的结果,可以采取以下方式:
* 手动配置指定根桥和备份根桥设备。
* 配置交换设备在指定生成树实例中的优先级数值:数值越小,交换设备在该生成树实例中的优先级越高,成为根桥的可能性越大;数值越大,交换设备在该生成树实例中的优先级越低,成为根桥的可能性越小。
* 配置端口在指定生成树实例中的路径开销数值:在同一种计算方法下,数值越小,端口在该生成树实例中到根桥的路径开销越小,
成为根端口的可能性就越大;数值越大,端口在该生成树实例中到根桥的路径开销越大,成为根端口的可能性越小。
* 配置端口在指定生成树实例中的优先级数值:数值越小,端口在该生成树实例中成为指定端口的可能性就越大;数值越大,端口在该生成树实例中成为指定端口的可能性越小。
以上信息仅供参考,建议咨询专业人士获取更准确的信息。
MSTP配置实验

MSTP配置实验一、实验目的掌握MSTP的原理掌握MSTP中交换机以及端口优先级的配置二、实验设备三层交换机1台,二层交换机E126A 2台PC机3台三、拓扑图及配置说明2台E126A的24号端口互连,E126A-1的16号端口与S3610的23号端口互连,2号端口连接PC1,E126A-2的16号端口与S3610的24号端口互连,2号端口连接PC2。
PC1通过console线连接E126A-1,PC2通过console线连接E126A-2,PC3通过console线连接S3610。
四、相关知识点常用概念1.根桥(Root Bridge)桥ID最小的网桥。
其中桥ID是由网桥的优先级和网桥的MAC组成。
2.根端口(Root Port)这个端口到达根桥的路径是该端口所在网桥到达根桥的最佳路径。
全网中只有根桥是没有根端口的。
3.指定端口(Designated Port)每一个网段选择到根桥最近的网桥作为指定网桥,该网桥到这一网段的端口为指定端口。
4.可选端口(Alternate Port)既不是指定端口,也不是根端口的端口。
通过BPDU配置消息来决定端口的角色:根端口:网桥各个端口中到根桥最近的端口。
指定端口:网桥的端口发送的BPDU配置消息较接收的BPDU配置消息更优,则端口为指定端口。
可选端口:网桥的端口发送的BPDU配置消息较接收的BPDU配置消息更差,则端口为可选端口。
五、实验内容1.MSTP配置E126A-1的配置命令<H3C>system-viewSystem View: return to User View with Ctrl+Z.#开启STP生成树协议[H3C]stp enable[H3C]%Apr 2 00:04:47:485 2000 H3C MSTP/3/STPSTART:- 1 -STP is now enabled on the dev ice.[H3C]E126A-2的配置命令<H3C>system-viewSystem View: return to User View with Ctrl+Z.#开启STP生成树协议[H3C]stp enable[H3C]%Apr 2 00:04:47:485 2000 H3C MSTP/3/STPSTART:- 1 -STP is now enabled on the dev ice.[H3C]S3610的配置命令<H3C>system-viewSystem View: return to User View with Ctrl+Z.#开启STP生成树协议[H3C]stp enable[H3C]%Apr 26 12:14:58:233 2000 H3C MSTP/2/STPSTART:STP is now enabled on the device.%Apr 26 12:14:58:254 2000 H3C MSTP/2/PFWD:Instance 0's Ethernet1/0/24 has been set to forwarding state!%Apr 26 12:14:58:267 2000 H3C MSTP/2/PFWD:Instance 0's Ethernet1/0/23 has been set to forwarding state!#Apr 26 12:14:58:307 2000 H3C MSTP/1/PFWD:hwPortMstiStateForwarding: Instance 0's Port 0.9371671 has been set to forwarding state!#Apr 26 12:14:58:327 2000 H3C MSTP/1/PFWD:hwPortMstiStateForwarding: Instance 0's Port 0.9371670 has been set to forwarding state!在S3610查看STP配置信息#查看根桥配置信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port0 32768.000f-e251-8ba0 0 0#只显示端口状态及端口的保护类型,其它信息不显示[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/23 DESI FORWARDING NONE0 Ethernet1/0/24 DESI FORWARDING NONE在E126A-1查看STP配置信息#查看根桥信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port-------- -------------------- ------------ ------------- -----------0 32768.000f-e251-8ba0 200 0 Ethernet1/0/16#只显示端口状态及端口的保护类型,其它信息不显示[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/2 DESI FORWARDING NONE0 Ethernet1/0/16 ROOT FORWARDING NONE0 Ethernet1/0/24 DESI FORWARDING NONE(*) means port in aggregation group在E126A-2查看STP配置信息#查看根桥信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port-------- -------------------- ------------ ------------- -----------0 32768.000f-e251-8ba0 200 0 Ethernet1/0/16#只显示端口状态及端口的保护类型,其它信息不显示[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/2 DESI FORWARDING NONE0 Ethernet1/0/16 ROOT FORWARDING NONE0 Ethernet1/0/24 ALTE DISCARDING NONE(*) means port in aggregation group2.改变生成树实例0的根桥E126A-2的配置命令#指定当前设备为生成树实例0的备用根桥[H3C]stp instance 0 root secondaryS3610的配置命令#取消当前设备作为生成树实例0的根桥[H3C]undo stp instance 0 root primary#查看STP配置信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port0 4096.000f-e2dc-804d 200 0 Ethernet1/0/24[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/23 DESI FORWARDING NONE0 Ethernet1/0/24 ROOT FORWARDING NONEE126A-1#在E126A-1查看STP配置信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port-------- -------------------- ------------ ------------- -----------0 4096.000f-e2dc-804d 200 0 Ethernet1/0/24[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/2 DESI FORWARDING NONE0 Ethernet1/0/16 ALTE DISCARDING NONE0 Ethernet1/0/24 ROOT FORWARDING NONE(*) means port in aggregation groupE126A-2#在E126A-2查看STP配置信息[H3C]display stp rootMSTID Root Bridge ID ExtPathCost IntPathCost Root Port-------- -------------------- ------------ ------------- -----------0 4096.000f-e2dc-804d 0 0[H3C]display stp briefMSTID Port Role STP State Protection0 Ethernet1/0/2 DESI FORWARDING NONE0 Ethernet1/0/16 DESI FORWARDING NONE0 Ethernet1/0/24 DESI FORWARDING NONE(*) means port in aggregation group注释:用户可以将当前交换机指定为生成树实例(由参数instance instance-id确定)的根桥或备份根桥。
MSTP配置

目录第1章 MSTP配置...................................................................................................................1-11.1 MSTP简介..........................................................................................................................1-11.1.1 STP简介..................................................................................................................1-11.1.2 MSTP简介...............................................................................................................1-91.1.3 协议规范................................................................................................................1-151.2 配置任务简介...................................................................................................................1-151.3 配置根桥...........................................................................................................................1-161.3.1 配置MST域............................................................................................................1-161.3.2 指定当前设备为根桥或备份根桥............................................................................1-181.3.3 配置MSTP的工作模式...........................................................................................1-191.3.4 配置当前设备的优先级..........................................................................................1-201.3.5 配置MST域的最大跳数..........................................................................................1-201.3.6 配置交换网络的网络直径.......................................................................................1-211.3.7 配置MSTP的时间参数...........................................................................................1-221.3.8 配置超时时间因子..................................................................................................1-231.3.9 配置端口的最大发送速率.......................................................................................1-241.3.10 配置端口为边缘端口............................................................................................1-251.3.11 配置端口是否与点对点链路相连..........................................................................1-261.3.12 配置端口识别/发送MSTP报文的方式..................................................................1-271.3.13 开启MSTP特性....................................................................................................1-281.4 配置叶子节点...................................................................................................................1-281.4.1 配置MST域............................................................................................................1-281.4.2 配置MSTP的工作模式...........................................................................................1-291.4.3 配置超时时间因子..................................................................................................1-291.4.4 配置端口的最大发送速率.......................................................................................1-291.4.5 配置端口为边缘端口..............................................................................................1-291.4.6 配置端口的Path Cost............................................................................................1-291.4.7 配置端口的优先级..................................................................................................1-311.4.8 配置端口是否与点对点链路相连............................................................................1-321.4.9 配置端口识别/发送MSTP报文的方式....................................................................1-321.4.10 开启MSTP特性....................................................................................................1-321.5 执行mCheck操作.............................................................................................................1-331.6 配置VLAN Ignore特性......................................................................................................1-341.6.1 VLAN Ignore特性简介...........................................................................................1-341.6.2 配置VLAN Ignore特性...........................................................................................1-341.6.3 VLAN Ignore特性配置举例....................................................................................1-351.7 配置摘要侦听特性............................................................................................................1-361.7.1 配置准备................................................................................................................1-361.7.2 配置摘要侦听特性..................................................................................................1-361.7.3 摘要侦听特性配置举例..........................................................................................1-37 1.8 配置No Agreement Check特性........................................................................................1-381.8.1 配置准备................................................................................................................1-391.8.2 配置No Agreement Check特性.............................................................................1-391.8.3 No Agreement Check特性配置举例......................................................................1-40 1.9 配置设备的保护功能........................................................................................................1-401.9.1 配置准备................................................................................................................1-421.9.2 配置BPDU保护功能...............................................................................................1-421.9.3 配置根保护功能.....................................................................................................1-431.9.4 配置环路保护功能..................................................................................................1-431.9.5 配置防止TC-BPDU报文攻击的保护功能...............................................................1-44 1.10 MSTP显示和维护...........................................................................................................1-45 1.11 MSTP典型配置举例.......................................................................................................1-45第1章 MSTP配置1.1 MSTP简介1.1.1 STP简介1. STP的用途STP(Spanning Tree Protocol,生成树协议)是根据IEEE(Institute of Electrical andElectronics Engineers,电气与电子工程师协会)制定的802.1D标准建立的,用于在局域网中消除数据链路层物理环路的协议。
MSTP(配置指导)

(d)使用‘help’命令可以列出命令行支持的系统命令:
CLI控制界面
(e)使用‘exit’命令推出命令行
(f)使用'cd'命令可以改变当前所在的命令树的位置,同dos下的 目录操作类似,注意返回上一级只能用"cd ..
(g)使用‘ls’可以列出某个位置的子节点或者是子属性
(h)命令树可以用绝对路径表示(以$开头),也可以用相对路径 表示,提示符为当前所在的路径
•配置单板管理节点:$.ne.cfg.chss.0.
•业务配置管理节点:$.ne.cfg.service.0 •配置业务管理节点:$.ne.cfg.service.cfging.0 •生效业务管理节点:$.ne.cfg.service.valid.0 •ECC配置管理节点:$.ne.ecc.0 •告警配置管理节点:$.ne.alm.0 •性能配置管理节点:$.ne.per.0
(f)TryCommit.该接口的功能为:如果事务Try成功,则自动提交该事务。注意:如 果Try失败,则当前事务仍然处于锁定状态.
配置事务流程
配置开始
开始事务:从系统获取一个ID号 也可略个此步,在后续配置中使用 缺省事务ID=0.
配置网元:使用从BEGIN 获取的事务ID号,配置对 象包括:扩展网元、单板、 复用段、业务、CFP、告警、 性能等. 预配置事务:使系统尝试配 置,如果成功,则可以提交 配置;否则只能废弃当前配 置。 提交事务:使配置生效。
E G E F Y Y
目录
• 产品回顾 配置事务介绍 • 目录结构 • CLI控制界面 • ECC配置 • 业务开通指导 • 实验
配置事务目的 好处
(1)引入配置事务的目的: 为保证业务的安全性以及配置过程中网元与网管数据的 一致性,该系统在业务配置过程中引入了事务机制,事务为一系 列操作的集合. 通过事务机制,可以保证配置操作的批处理.即一次 事务中的任何一次失败时,都可以将配置退回到本次事务开始前 的状态.
MSTP配置命令
目录1 MSTP配置命令 .................................................................................................................................... 1-11.1 MSTP配置命令................................................................................................................................. 1-11.1.1 active region-configuration ..................................................................................................... 1-11.1.2 check region-configuration ..................................................................................................... 1-11.1.3 display stp............................................................................................................................... 1-21.1.4 display stp abnormal-port....................................................................................................... 1-51.1.5 display stp down-port ............................................................................................................. 1-61.1.6 display stp history................................................................................................................... 1-71.1.7 display stp ignored-vlan.......................................................................................................... 1-81.1.8 display stp region-configuration.............................................................................................. 1-81.1.9 display stp root ....................................................................................................................... 1-91.1.10 display stp tc....................................................................................................................... 1-101.1.11 instance .............................................................................................................................. 1-111.1.12 region-name ....................................................................................................................... 1-121.1.13 reset stp.............................................................................................................................. 1-121.1.14 revision-level....................................................................................................................... 1-131.1.15 stp....................................................................................................................................... 1-141.1.16 stp bpdu-protection............................................................................................................. 1-151.1.17 stp bridge-diameter ............................................................................................................ 1-151.1.18 stp compliance.................................................................................................................... 1-161.1.19 stp config-digest-snooping ................................................................................................. 1-171.1.20 stp cost ............................................................................................................................... 1-181.1.21 stp edged-port .................................................................................................................... 1-191.1.22 stp ignored vlan .................................................................................................................. 1-201.1.23 stp loop-protection.............................................................................................................. 1-201.1.24 stp max-hops...................................................................................................................... 1-211.1.25 stp mcheck ......................................................................................................................... 1-221.1.26 stp mode............................................................................................................................. 1-231.1.27 stp no-agreement-check..................................................................................................... 1-231.1.28 stp pathcost-standard......................................................................................................... 1-241.1.29 stp point-to-point................................................................................................................. 1-251.1.30 stp port priority.................................................................................................................... 1-261.1.31 stp port-log.......................................................................................................................... 1-271.1.32 stp priority........................................................................................................................... 1-281.1.33 stp region-configuration...................................................................................................... 1-291.1.34 stp root primary................................................................................................................... 1-291.1.35 stp root secondary.............................................................................................................. 1-301.1.36 stp root-protection .............................................................................................................. 1-311.1.37 stp tc-protection.................................................................................................................. 1-311.1.38 stp tc-protection threshold.................................................................................................. 1-321.1.39 stp timer forward-delay....................................................................................................... 1-331.1.40 stp timer hello ..................................................................................................................... 1-331.1.41 stp timer max-age............................................................................................................... 1-341.1.42 stp timer-factor.................................................................................................................... 1-351.1.43 stp transmit-limit ................................................................................................................. 1-361.1.44 vlan-mapping modulo......................................................................................................... 1-371 MSTP配置命令1.1 MSTP配置命令1.1.1 active region-configuration【命令】active region-configuration【视图】MST域视图【缺省级别】2:系统级【参数】无【描述】active region-configuration命令用来激活MST域的配置。
MSTP配置指导
一、组网图以及端口规划交换机C交换机D端口规划表格所有业务vlan都部署在交换机AB,A/B两台交换机启用VRRP,虚拟地址为各个VLAN的网管,网络启用MSTP,A做为根交换机,B做为备用根交换机。
C、D两台交换机与A、B交换机互联阻塞链路为C-B、D-B交换机链路。
二、交换机配置1、交换机A配置1)vlan以及IP相关配置#vlan batch 10 20 30#interface vlanif 10ip address 192.168.1.2 255.255.255.0vrrp vrid 10 virtual-ip 192.168.1.1vrrp vrid 10 priority 120#interface vlanif 20ip address 192.168.2.2 255.255.255.0vrrp vrid 20 virtual-ip 192.168.2.1vrrp vrid 20 priority 120#interface vlanif 30ip address 192.168.3.2 255.255.255.0vrrp vrid 30 virtual-ip 192.168.3.1vrrp vrid 30 priority 120#2)端口相关配置#interface GigabitEthernet0/0/1description TO—B-G0/0/1port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/2description TO—C-G0/0/1port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/3description TO—D-G0/0/1port link-type trunkport trunk allow-pass vlan 10 20 30#3)MSTP相关配置stp enable ////使能STPstp mode mstp ////默认就应该是MSTP模式stp instance 0 root primary ////指定交换机为instance 0 的根stp bpdu-protection ////开启设备的BPDU保护stp tc-protection ////使能MSTP进程对TC类型BPDU报文的保护功能stp tc-protection threshold 1 ////配置MSTP进程在收到TC类型BPDU报文后,单位时间内,处理TC类型BPDU报文并立即刷新转发表项的阈值stp region-configuration ////进入MST域视图region-name 123 ////配置MST域的域名instance 0 vlan 10 20 30 ////将vlan10、20、30加入instance 0active region-configuration ////激活MST域的配置,注意每次修改MST域配置后都要执行此命令激活4)2、交换机B配置1)vlan以及IP相关配置#vlan batch 10 20 30#interface vlanif 10ip address 192.168.1.3 255.255.255.0vrrp vrid 10 virtual-ip 192.168.1.1#interface vlanif 20ip address 192.168.2.3 255.255.255.0vrrp vrid 20 virtual-ip 192.168.2.1#interface vlanif 30ip address 192.168.3.3 255.255.255.0vrrp vrid 30 virtual-ip 192.168.3.1#2)端口相关配置#interface GigabitEthernet0/0/1description TO—A-G0/0/1port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/2description TO—C-G0/0/2port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/3description TO—D-G0/0/2port link-type trunkport trunk allow-pass vlan 10 20 30#3)MSTP相关配置stp enablestp mode mstpstp instance 0 root secondary ///指定交换机B为备用根stp bpdu-protectionstp tc-protectionstp tc-protection threshold 1stp region-configuration ////此部分配置所有MSTP域内交换机配置必须相同region-name 123instance 0 vlan 10 20 30active region-configuration3、交换机C配置1)vlan以及IP相关配置#vlan batch 10 20 30#interface vlanif 10ip address 192.168.1.4 255.255.255.0#2)端口相关配置#interface GigabitEthernet0/0/1description TO—A-G0/0/2port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/2description TO—B-G0/0/2port link-type trunkport trunk allow-pass vlan 10 20 30#其他下行端口需要配置为边缘端口,未使用端口尽量shutdown,一般端口为access口,并加入相应vlan即可,以下为举例配置interface GigabitEthernet0/0/Xport link-type accessport default vlan 20stp edged-port enable3)MSTP相关配置stp enablestp mode mstpstp bpdu-protectionstp region-configuration ////此部分配置所有MSTP域内交换机配置必须相同region-name 123instance 0 vlan 10 20 30active region-configuration4、交换机D配置1)vlan以及IP相关配置#vlan batch 10 20 30#interface vlanif 10ip address 192.168.1.4 255.255.255.0#2)端口相关配置#interface GigabitEthernet0/0/1description TO—A-G0/0/3port link-type trunkport trunk allow-pass vlan 10 20 30#interface GigabitEthernet0/0/2description TO—B-G0/0/3port link-type trunkport trunk allow-pass vlan 10 20 30#其他下行端口需要配置为边缘端口,未使用端口尽量shutdown,一般端口为access口,并加入相应vlan即可,以下为举例配置interface GigabitEthernet0/0/Xport link-type accessport default vlan 20stp edged-port enable3)MSTP相关配置stp enablestp mode mstpstp bpdu-protectionstp region-configuration ////此部分配置所有MSTP域内交换机配置必须相同region-name 123instance 0 vlan 10 20 30active region-configuration。
MSTP以太业务不同厂家设备互通配置参考1
结合中央级传输骨干网业务开通模式及电路开通中出现的问题,为提高中央级传输骨干网业务开通效率,减少各地方不同设备厂家MSTP传输设备与中央级传输骨干网阿尔卡特MSTP传输设备间的互通配置问题,结合?国家电子政务网络中央级传输骨干网业务开通配置技术标准?及几次全国电路组网开通测试中获取的珍贵经历,再次明确中央级传输骨干网不同厂家间MSTP设备互通的配置要求,愿能为电路开通及设备选择提供帮助。
一、一样厂家或不同厂家间设备互通必须配置及调整的内容〔一〕开销字节1.J0、J1、J2字节J0、J1、J2字节应配置为15个连续的“0”〔ASCII值〕。
2.C2字节假设采用VC3、VC4虚级联,C2字节要设置为“0x1B〞。
3.V5字节假设采用VC12虚级联,V5字节的b5、b6、b7应配置为“101〞,K4复帧的b12-b19应设为“0000 1101〞(0D)。
或理解为V5字节的应发和应收都应为“0x0D〞。
〔二〕内部端口LCAS状态中央级传输骨干网电路要求LCAS设置在“使能〞状态,地方用户端MSTP设备需检查LCAS的状态,并设置在“使能〞〔或开启〕状态。
〔三〕外部端口工作模式以太端口工作模式需依据地方用户端网络设备的端口进展调整,一般要配置为100M全双工模式二、一样厂家或不同厂家间设备互通需核对、检查内部端口封装映射的设置内容1.映射协议选择:GFP2.扰码选择:X43+13.检验字段长途:无4.扩展头选项:无三、各厂家设备互通应注意的内容中央级传输骨干网用户中心节点一般采用阿尔卡特1660SM设备,因此各地方设备应分别满足与该设备的互通要求,结合?国家电子政务网络中央级传输骨干网业务开通配置技术标准?,汇总电路全程测试中发现的问题,分别说明如下。
(一)阿尔卡特1642与阿尔卡特1660互通需注意的内容1.阿尔卡特1642工作模式应配置为:ETS方式〔透传〕。
2.阿尔卡特1642 J2字节1642默认J2字节为alcatel, 必须调整为15个连续的“0”〔ASCII值〕。
MSTP的负载均衡配置
MSTP的负载均衡配置MSTP配置:负载均衡实验要求:1、SW2作为vlan 10 20的根网桥SW3作为vlan 30 40的根网桥2、各vlan都可以与192.168.60.1互通3、Vlan 10 20的流量走交换机SW 2Vlan 30 40的流量走交换机SW 34、抓包验证结果操作步骤:一、配置PC机的IP地址、子网掩码、网关1、配置PC 1的IP地址为192.168.10.1,子网掩码为255.255.255.0,网关为192.168.10.2542、配置PC 2的IP地址为192.168.20.1,子网掩码为255.255.255.0,网关为192.168.20.2543、配置PC 3的IP地址为192.168.30.1,子网掩码为255.255.255.0,网关为192.168.30.2544、配置PC 4的IP地址为192.168.40.1,子网掩码为255.255.255.0,网关为192.168.40.2545、配置PC 5的IP地址为192.168.60.1,子网掩码为255.255.255.0,网关为192.168.60.254二、配置交换机LSW2、LSW31、配置交换机LSW22、配置交换机LSW3三、配置三层交换机LSW1四、配置路由器AR1五、抓包分析结果1、分别在接口g0/0/1和接口g0/0/2进行抓包2、用PC 1pingPC 5,查看接口g0/0/1和接口g0/0/2的抓包3、用PC 2pingPC 5,查看接口g0/0/1和接口g0/0/2的抓包4、用PC 3pingPC 5,查看接口g0/0/1和接口g0/0/2的抓包5、用PC 4pingPC 5,查看接口g0/0/1和接口g0/0/2的抓包如出现有PC 1、PC2 无法ping 通 PC 5和自身的网关,而且PC 1pingPC 2也不通第一步先查看配置是否出错如配置没有出错,则是如图所示的情况:。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Cisco MSTP配置(多生成树)一、什么是MSTP当前和STP相关的协议有:IEEE 802.1D(STP),802.1W(RSTP),802.1(MSTP)。
其中802.1D是最早关于STP的标准。
RSTP(Rapid Spanning Tree Protocol)是STP 的扩展,其主要特点是增加了端口状态快速切换的机制,能够实现网络拓扑的快速转换。
MSTP(Multiple Spanning Tree Protocol)提出了多生成树的概念,可以把不同的vlan 映射到不同的生成树,从而达到网络负载均衡的目的。
Configuring IEEE 802.1s MSTRelease 12.1(13)E and later releases support MST. These sections describe how to configure MST:Enabling MST (1)Displaying MST Configurations (4)Configuring MST Instance Parameters(参数) (8)Configuring MST Instance Port Parameters (10)Restarting Protocol Migration (11)Enabling MSTTo enable and configure MST on the switch, perform these tasks in privileged mode:These examples show how to enable MST:Router# show spanning-tree mst configuration% Switch is not in mst modeName []Revision 0Instance Vlans mapped----------------------------------------------------------------------------- 0 1-4094-------------------------------------------------------------------------------Router# configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)# spanning-tree mode mstRouter(config)# spanning-tree mst configurationRouter(config-mst)# show currentCurrent MST configurationName []Revision 0Instance Vlans mapped----------------------------------------------------------------------------- 0 1-4094-------------------------------------------------------------------------------Router(config-mst)# name ciscoRouter(config-mst)# revision 2Router(config-mst)# instance 1 vlan 1Router(config-mst)# instance 2 vlan 1-1000Router(config-mst)# show pendingPending MST configurationName [cisco]Revision 2Instance Vlans mapped----------------------------------------------------------------------------- 0 1001-40942 1-1000-------------------------------------------------------------------------------Router(config-mst)# no instance 2Router(config-mst)# show pendingPending MST configurationName [cisco]Revision 2Instance Vlans mapped----------------------------------------------------------------------------- 0 1-4094-------------------------------------------------------------------------------Router(config-mst)# instance 1 vlan 2000-3000Router(config-mst)# no instance 1 vlan 2500Router(config-mst)# show pendingPending MST configurationName [cisco]Revision 2Instance Vlans mapped-----------------------------------------------------------------------------0 1-1999,2500,3001-40941 2000-2499,2501-3000-------------------------------------------------------------------------------Router(config)# exitRouter(config)# no spanning-tree mst configurationRouter(config)# do show spanning-tree mst configurationName []Revision 0Instance Vlans mapped----------------------------------------------------------------------------- 0 1-4094-------------------------------------------------------------------------------Displaying MST ConfigurationsTo display MST configurations, perform these tasks in MST mode:These examples show how to display spanning tree VLAN configurations in MST mode:Router(config)# spanning-tree mst configurationRouter(config-mst)# instance 1 vlan 1-10Router(config-mst)# name ciscoRouter(config-mst)# revision 1Router(config-mst)# ^ZRouter# show spanning-tree mst configurationName [cisco]Revision 1Instance Vlans mapped-----------------------------------------------------------------------------0 11-40941 1-10-------------------------------------------------------------------------------Router# show spanning-tree mst###### MST00 vlans mapped: 11-4094Bridge address 00d0.00b8.1400 priority 32768 (32768 sysid 0) Root address 00d0.004a.3c1c priority 32768 (32768 sysid 0) port Fa4/48 path cost 203100IST master this switchOperational hello time 2, forward delay 15, max age 20, max hops 20 Configured hello time 2, forward delay 15, max age 20, max hops 20Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pFa4/48 Root FWD 200000 128.240 P2p Bound(STP)###### MST01 vlans mapped: 1-10Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pFa4/48 Boun FWD 200000 128.240 P2p Bound(STP)Router# show spanning-tree mst 1###### MST01 vlans mapped: 1-10Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pFa4/48 Boun FWD 200000 128.240 P2p Bound(STP)Router# show spanning-tree mst interface fastEthernet 4/4FastEthernet4/4 of MST00 is backup blockingEdge port:no (default) port guard :none (default)Link type:point-to-point (auto) bpdu filter:disable (default)Boundary :internal bpdu guard :disable (default)Bpdus sent 2, received 368Instance Role Sts Cost Prio.Nbr Vlans mapped-------- ---- --- --------- -------- -------------------------------0 Back BLK 1000 160.196 11-40941 Back BLK 1000 160.196 1-10Router# show spanning-tree mst 1 interface fastEthernet 4/4FastEthernet4/4 of MST01 is backup blockingEdge port:no (default) port guard :none (default)Link type:point-to-point (auto) bpdu filter:disable (default)Boundary :internal bpdu guard :disable (default)Bpdus (MRecords) sent 2, received 364Instance Role Sts Cost Prio.Nbr Vlans mapped-------- ---- --- --------- -------- ------------------------------- 1 Back BLK 1000 160.196 1-10Router# show spanning-tree mst 1 detail###### MST01 vlans mapped: 1-10Bridge address 00d0.00b8.1400 priority 32769 (32768 sysid 1) Root this switch for MST01FastEthernet4/4 of MST01 is backup blockingPort info port id 160.196 priority 160 cost 1000Designated root address 00d0.00b8.1400 priority 32769 cost 0Designated bridge address 00d0.00b8.1400 priority 32769 port id128.197Timers:message expires in 5 sec, forward delay 0, forward transitions 0Bpdus (MRecords) sent 123, received 1188FastEthernet4/5 of MST01 is designated forwardingPort info port id 128.197 priority 128 cost 200000Designated root address 00d0.00b8.1400 priority 32769 cost 0Designated bridge address 00d0.00b8.1400 priority 32769 port id128.197Timers:message expires in 0 sec, forward delay 0, forward transitions 1Bpdus (MRecords) sent 1188, received 123FastEthernet4/48 of MST01 is boundary forwardingPort info port id 128.240 priority 128 cost 200000Designated root address 00d0.00b8.1400 priority 32769 cost 0Designated bridge address 00d0.00b8.1400 priority 32769 port id128.240Timers:message expires in 0 sec, forward delay 0, forward transitions 1Bpdus (MRecords) sent 78, received 0Router# show spanning-tree vlan 10MST01Spanning tree enabled protocol mstpRoot ID Priority 32769Address 00d0.00b8.1400This bridge is the rootHello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 32769 (priority 32768 sys-id-ext 1)Address 00d0.00b8.1400Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pRouter# show spanning-tree summaryRoot bridge for:MST01EtherChannel misconfiguration guard is enabledExtended system ID is enabledPortfast is disabled by defaultPortFast BPDU Guard is disabled by defaultPortfast BPDU Filter is disabled by defaultLoopguard is disabled by defaultUplinkFast is disabledBackboneFast is disabledPathcost method used is longName Blocking Listening Learning Forwarding STPActive---------------------- -------- --------- -------- --------------------MST00 1 0 0 2 3 MST01 1 0 0 2 3 ---------------------- -------- --------- -------- --------------------2 msts 2 0 0 4 6 Router#Configuring MST Instance Parameters(参数)To configure MST instance parameters, perform these tasks:This example shows how to configure MST instance parameters:Router(config)# spanning-tree mst 1 priority ?<0-61440> bridge priority in increments of 4096Router(config)# spanning-tree mst 1 priority 1% Bridge Priority must be in increments of 4096.% Allowed values are:0 4096 8192 12288 16384 20480 24576 2867232768 36864 40960 45056 49152 53248 57344 61440Router(config)# spanning-tree mst 1 priority 49152Router(config)#Router(config)# spanning-tree mst 0 root primarymst 0 bridge priority set to 24576mst bridge max aging time unchanged at 20mst bridge hello time unchanged at 2mst bridge forward delay unchanged at 15Router(config)# ^ZRouter#Router# show spanning-tree mst###### MST00 vlans mapped: 11-4094Bridge address 00d0.00b8.1400 priority 24576 (24576 sysid 0) Root this switch for CST and ISTConfigured hello time 2, forward delay 15, max age 20, max hops 20Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pFa4/48 Desg FWD 200000 128.240 P2p Bound(STP)###### MST01 vlans mapped: 1-10Bridge address 00d0.00b8.1400 priority 49153 (49152 sysid 1) Root this switch for MST01Interface Role Sts Cost Prio.Nbr Status---------------- ---- --- --------- ----------------------------------------Fa4/4 Back BLK 1000 160.196 P2pFa4/5 Desg FWD 200000 128.197 P2pFa4/48 Boun FWD 200000 128.240 P2p Bound(STP)Router#Configuring MST Instance Port ParametersTo configure MST instance port parameters, perform these tasks:This example shows how to configure MST instance port parameters:Router(config)# interface fastEthernet 4/4Router(config-if)# spanning-tree mst 1 ?cost Change the interface spanning tree path cost for an instanceport-priority Change the spanning tree port priority for an instanceRouter(config-if)# spanning-tree mst 1 cost 1234567Router(config-if)# spanning-tree mst 1 port-priority 240Router(config-if)# ^ZRouter# show spanning-tree mst 1 interface fastEthernet 4/4FastEthernet4/4 of MST01 is backup blockingEdge port:no (default) port guard :none (default)Link type:point-to-point (auto) bpdu filter:disable (default)Boundary :internal bpdu guard :disable (default)Bpdus (MRecords) sent 125, received 1782Instance Role Sts Cost Prio.Nbr Vlans mapped-------- ---- --- --------- -------- ------------------------------- 1 Back BLK 1234567 240.196 1-10Router#Restarting Protocol MigrationA switch running both MSTP and RSTP supports a built-in protocol migration mechanism that enables the switch to interoperate with legacy 802.1D switches. If this switch receives a legacy 802.1D configuration BPDU (a BPDU with the protocol version set to 0), it sends only 802.1D BPDUs on that port. An MSTP switch can also detect that a port is at the boundary of a region when it receives a legacy BPDU, an MST BPDU (version 3) associated with a different region, or an RST BPDU (version 2).However, the switch does not automatically revert to the MSTP mode if it no longer receives 802.1D BPDUs because it cannot determine whether the legacy switch has been removed from the link unless the legacy switch is the designated switch. A switch also might continue to assign a boundary role to a port when the switch to which it is connected has joined the region.To restart the protocol migration process (force the renegotiation with neighboring switches) on the entire switch, you can use the clear spanning-tree detected-protocols privileged EXEC command. Use the clear spanning-tree detected-protocols interface interface-id privileged EXEC command to restart the protocol migration process on a specific interface.This example shows how to restart protocol migration:Router# clear spanning-tree detected-protocols interface fastEthernet 4/4Router#。