当前位置:网站首页>Exchange the STP/network knowledge
Exchange the STP/network knowledge
2022-07-29 17:18:00 【HUAWEI CLOUD】
STPis applied to the switch,Its purpose is to split the broadcast storm.we are in the actual situation,There must be a loop in the connection to the switch(物理上),STPIt is to use the logical link to control a path to turn off.,Make its physical ring logic without ring.
STP是自动生成的,Through multicast when established(运行STP的交换机)的方式发送BPDU来学习MAC地址,to automatically formSTP拓扑,Not to mention the specific theory.
STPAlgorithms are divided into3个步骤:
1.Choose root bridge per broadcast domain
----》选择网桥ID小的作为RB.
网桥ID=优先级(0-65535,默认:32768,steps:4096)+MAC地址
2.每个非RBChoosing one root portRP
----》(1).该非RBThe port of the switch has the lowest path cost to the root bridge(千:2W,百:20W)
(2).一样的话.Port at the other end of the bridge of the equipmentID最小.
(3).still the same.Select the port with the smaller ID.
(端口优先级(0-240,默认128,steps 16)+端口号(e0/0/0这样的)).基本不用
3.Each network segment must select a designated portDP(DESIGNATED PORT)
----》The root bridge is full ofDP,So is the oppositeRP.
(1)The switch where the port is located goes toRB路径成本最低
(2)一样的话.The switch bridgeID最小
实际操作:
命令:、
display bridge mac-address //查看MAC地址display stp brief //查看stp状态
- 先找RB,优先级都是32768.那么MACThe small address is the bridgeID小的.明显的S4就是RB.
- S4是RB,因为非RBThe root port needs to go toRBminimum path cost,其默认cost都是一样.So the opposite isRP.即,S5/G2是S5的RP,S3/G1是S3的RP. S1的G2和G3到S4cost一样,then than the bridge on the switch opposite the portID,S3<S5.所以S1/G2是S1的RP.S2/G2是S2的RP.
S1:G2
S2:G2
S3:G1
S5:G2 - 找指定端口.S4:G1/G2都是DP.S1<----->S3网段是S3到S4代价低,所以是S3/G2of this network segmentDP.S1<----->S5明显S5近,所以是S5/G3.S1<----->S2成本一样,So than the bridgeID,那么S1/G1是DP.S2<----->S5,因为是S2/G2是RP,So the opposite isDP.
- 综上.S1/G3和S2/G1被堵塞.如下图标识.

命令验证:


以上就是STP的原理.The line of the blocked port,Also our backup link.The port was blocked by a logical use mechanism.但是还是可以接受BPDU报文的,or receive topology updates.If there is a problem with the link, it will automatically start to regenerateSTP拓扑.Time to update details.
The following command can changeRB,Practice will still own configurationSTP优先级的.
stp priority <优先级:4096*n,n属于自然数>
MSTP

图上STPThe blocked port is marked.用PC1 ping PC2Catch it and see that it's not at allICMP包通过.Then think if we were a lotvlanmany hosts,Do they all go through this link??这是不现实的,所以要用到MSTP.
We can create two instances,如图.这叫负载均衡,Each link can be used to,The other line is the backup link for this instance.If one goes wrong, go the other way.容错.Instance is the same physical topology,创建不同的STP树.
[S1]stp region-configuration //创建stp区域设置[S1-mst-region]region-name PROJECT1 //区域名[S1-mst-region]instance 1 vlan 10 20 //创建实例1并添加vlan10 20[S1-mst-region]instance 2 vlan 30 40 //创建实例2并添加vlan30 40[S1-mst-region]active region-configuration //激活[S1-mst-region]q[S1]stp instance 1 priority 4096 //实例1的主根[S1]stp instance 2 priority 8192 //实例2的次根[S2]stp region-configuration [S2-mst-region]region-name PROJECT1[S2-mst-region]instance 1 vlan 10 20[S2-mst-region]instance 2 vlan 30 40[S2-mst-region]active region-configuration [S2-mst-region]q[S2]stp instance 2 priority 4096 //实例2的主根[S3]stp region-configuration [S3-mst-region]region-name PROJECT1[S3-mst-region]instance 1 vlan 10 20[S3-mst-region]instance 2 vlan 30 40[S3-mst-region]active region-configuration [S3-mst-region]q[S3]stp instance 1 priority 8192 //实例1的次根
全部端口pc设为vlan10或20,用PC3 ping PC2,在S2----S3Caught between a network segment.正确.
downDrop a port of China Unicom,会转变为S3as taproot.turn on again.
全部端口pc设为vlan30或40,用PC3 ping PC1,在S21----S3Caught between a network segment.正确
display stp instance 1display stp instance 1 briefdisplay stp brief边栏推荐
- 知识图谱构建全流程
- wooden stick
- 应用程序间的数据传输TCP协议的特点及
- [C语言刷题篇]链表运用讲解
- 店铺信息管理系统
- Query term weights, search term weighting
- Easy Genes: Human tRNA loci exhibit DNA hypermethylation associated with aging | Research Article
- Rust P2P网络应用实战-1 P2P网络核心概念及Ping程序
- [C language brush questions] Explanation of the use of linked lists
- [网络]LAN技术堆叠与集群
猜你喜欢

支持百亿请求的微博广告运维技术实践
![[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the](/img/86/b664e56dff66c57c9f24c850919743.png)
[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the

【Translation】Device Manager—Intel NIC Properties Setting Advanced Options Function

鸡兔同笼

MUD DAO火爆入世,DAO主轮募集蓄势待发

Rust P2P网络应用实战-1 P2P网络核心概念及Ping程序

HMS Core音频编辑服务音源分离与空间音频渲染,助力快速进入3D音频的世界

Pycaret on diamond data sets using the regression problem

Flutter动态化 | Fair 2.6.0 新版本特性

Knowledge Graph Construction of Mall Commodities
随机推荐
蓝思科技发力整机组装业务,子公司拟30亿建智能终端设备智造项目
STC8h1k28六个基本实验
Dry goods!How to Construct SRv6-TE Performance Test Environment Using Instrumentation
Tess4J 图片文字识别
溢价20%,瑞萨电子宣布拟以60亿美元收购Dialog
鸡兔同笼
召回 i2i
【高并发】我用多线程优化了亿级流量电商业务下的海量数据校对系统,性能直接提升了200%!!(全程干货,建议收藏)
[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the
Easy Genes: Human tRNA loci exhibit DNA hypermethylation associated with aging | Research Article
BUUCTF——MISC(流量分析)
【高并发】我用多线程进一步优化了亿级流量电商业务下的海量数据校对系统,性能再次提升了200%!!(全程干货,建议收藏)
生产者消费代码
uni-app判断平台开发环境和生产环境
718. The longest repeat subarray
华虹半导体四季度营收再创历史新高,同比增长15.4%
718. 最长重复子数组
百面量化金融
[网络]LAN技术MSTP
参加Ultimate Harvest Moon活动,立即赢取终极版月光女神NFT



