当前位置:网站首页>MSTP & VRRP protocol
MSTP & VRRP protocol
2022-07-22 15:04:00 【SpaceX7_ s】
background
STP And RSTP Block the port at one end , It's a waste of resources , The burden of the link is too large , So the final solution uses MSTP
[SWA]stp enable
[SWA]stp mode mstp
[SWA]stp region-configuration
[SWA-mst-region]region-name RegionA
[SWA-mst-region]revision-level 1
[SWA-mst-region]instance 1 vlan 2-10
[SWA-mst-region]instance 2 vlan 11-20
[SWA-mst-region]active region-configuration
[SWA]stp instance 1 priority 4096 Set instance 1 The priority of the , In the instance 1 in ,sw1 For the root bridge , stay swB Set an instance in 2 The priority of the , Select instance 2 The root bridge of is swB
[SWA]stp instance 2 priority 8192
explain :SWB、SWC To configure MST Domain parameters are similar , I won't repeat .swc There is no need to set priority
SWB Additional configuration :[SWB]stp instance 1 priority 8192
[SWB]stp instance 2 priority 4096
see mstp Setting successful
display stp brief
example
Be careful : You need to set the corresponding vlan Otherwise, you cannot forward packets , such as swA Need to set up vlan10 vlan 20 It can bring
vlan Forward the data
[SWA]display stp brief
MSTID Port Role STP State Protection
0 Ethernet1/0/12 DESI FORWARDING NONE
0 Ethernet1/0/15 ROOT FORWARDING NONE
1 Ethernet1/0/12 DESI FORWARDING NONE
1 Ethernet1/0/15 DESI FORWARDING NONE
2 Ethernet1/0/12 DESI FORWARDING NONE
2 Ethernet1/0/15 ROOT FORWARDING NONE
SWB]display stp brief
MSTID Port Role STP State Protection
0 Ethernet1/0/13 DESI FORWARDING NONE
0 Ethernet1/0/15 DESI FORWARDING NONE
1 Ethernet1/0/13 DESI FORWARDING NONE
1 Ethernet1/0/15 ROOT FORWARDING NONE
2 Ethernet1/0/13 DESI FORWARDING NONE
2 Ethernet1/0/15 DESI FORWARDING NONE
[SWC]display stp brief
MSTID Port Role STP State Protection
0 Ethernet1/0/2 DESI FORWARDING NONE
0 Ethernet1/0/3 DESI FORWARDING NONE
0 Ethernet1/0/12 ALTE DISCARDING NONE
0 Ethernet1/0/13 ROOT FORWARDING NONE
1 Ethernet1/0/2 DESI FORWARDING NONE
1 Ethernet1/0/12 ROOT FORWARDING NONE
1 Ethernet1/0/13 ALTE DISCARDING NONE
2 Ethernet1/0/3 DESI FORWARDING NONE
2 Ethernet1/0/12 ALTE DISCARDING NONE
2 Ethernet1/0/13 ROOT FORWARDING NONE
VRRP
VRRP(Virtual Redundancy Protocol), Virtual router redundancy protocol .
VRRP Add multiple routing settings to the backup group , Form a virtual router , Undertake gateway function
The primary router sends to the standby route every second VRRP message , Tell yourself you're still alive , When the standby route fails to receive for three consecutive cycles ARRP message , namely 3 second , You will think that the main router is faulty , Then the standby router will start and become the main router , And send the Answer type without reason ARP, Refresh the lower switch mac Address table , Refresh virtual mac The correspondence between address and port ,
VRRP The protocol message uses a fixed multicast address 224.0.0.18 Send
This is the main router will still send VRPP message , The message carries priority information , After the backup router receives the message , It is found that the priority of the main router is lower than its own , Then the backup router will replace the main router to become a new main router and send it regularly VRRP message , And the original main router will no longer send VRRP message , The new main router will also send Answer type without reason ARP Used to refresh mac Address table
Virtual router ip The address is pc Set up your gateway
VRRP It's a three-tier agreement
MSTP It's a two-tier agreement
边栏推荐
- 网络层协议 -------- IP
- 投票不能重复
- Redis ---- three special data types, transaction, integration, configuration file, persistent RDB and AOF, publish and subscribe, master-slave replication (sentinel mode), cache penetration and avalan
- This time, thoroughly sort out various layout problems
- 2022-07-18 jenkins流水线使用及创建自己的流水线
- [HMS core] [FAQ] HMS toolkit typical problem set 1
- Practice of online problem feedback module (10): realize image preview function
- [must see for developers] [push kit] collection of typical problems of push service 3
- Deveco studio3.0 download failed, prompting an unknown error occurred
- 【 série mysql】 "résoudre une fois pour toutes le problème de l'erreur" insérer des données chinoises "dans MySQL
猜你喜欢
【AGC】构建服务1-云函数示例
【MySQL系列】“一劳永逸“ 解决MySQL中 “插入中文数据“出错的问题
某视频app分析样本
MATLAB basic grammar (I)
【HMS core】【FAQ】【Account Kit】典型问题集2
378. 有序矩阵中第 K 小的元素 ●●
[HMS core] [FAQ] [account kit] typical problem set 2
stm32 RT-Thread移植lvgl
378. The k-th smallest element in the ordered matrix ●●
【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
随机推荐
AE case 1: character split screen tutorial
2022-07-12 使用perf统计mysql执行的性能
Practice of online problem feedback module (10): realize image preview function
What software is IDM downloader? The latest version number of v6.41 win download tool
[AGC] growth service 2 - example of in app messages
Hcia-r & s self use notes (14) rip protocol
AOSP ~ Camera - RK HAL3 ( 一 )
[attack and defense world web] difficulty 2-star 6-point introductory question (Part 1): webshell, command_ execution、xff_ referer、php_ rce、Web_ php_ include、NewsCenter
[HMS core] [FAQ] [account kit] typical problem set 2
1382. Balance the binary search tree ●●
1.openpyxl 打开工作簿
[HMS core] [ml kit] FAQ of machine learning service (II)
[circuit design] disassembly of charging table lamp circuit
2022-07-15 mysql/stonedb子查询校验exists流程分析
测试下定时发布的时间
【HMS Core】【FAQ】运动健康、音频编辑、华为帐号服务 典型问题合集7
322. Change exchange ●●
Samsung proposes XFORMER | surpassing mobilevit, deit, mobilenet and other models
2022-07-20 mysql-hashJoin说明
[MySQL series] MySQL database foundation