当前位置:网站首页>VRRP overview and experiment
VRRP overview and experiment
2022-08-05 06:22:00 【sologuai】
1. Overview of VRRP
- VirtualRouter Redundancy Protocol (VRRP)
- VRRP can virtualize multiple routers into a virtual router without changing the networking. By configuring the IP address of the virtual router as the default gateway, the backup of the gateway can be realized.
- Using VRRP, a group of routers (interfaces in the same LAN) work together, but only one is in the Master state, and the router (the interface) in this state undertakes the actual data traffic forwarding task.
2. Working principle of VRRP
(1) The routers in the virtual router elect the Master according to the priority.By sending gratuitous ARP packets, the master router notifies its own virtual MAC address to the devices or hosts connected to it, so as to undertake the task of packet forwarding;
(2) The Master router periodically sends VRRP packets to announce its configuration information (priority, etc.) and working status;
(3) If the Master router fails, the Backup router in the virtual router will re-elect a new Master according to the priority;
(4) When the virtual router state switches, the Master router switches from one device to anotherThe new master router simply sends a gratuitous ARP packet carrying the virtual router's MAC address and virtual IP address information, so that the ARP-related information in the host or device connected to it can be updated.The hosts on the network cannot perceive that the Master router has been switched to another device.
(5) When the priority of the Backup router is higher than that of the Master router, the working mode (preemptive and non-preemptive) of the Backup router determines whether to re-elect the Master.
3. VRRP active and standby backup process
(1) When the priority is set, the priority with the larger priority is the same, and the mac address of the interface is compared
(2) After the routers are configured, they do not know the configuration of the other side, and will send advertisement messages to each other to elect the active and standby routers
(3) Elect the active and standby routers
(4) After the master and backup are elected, the backup will not send messages
(5) The master always sends notification messages periodically
4. Experimental configuration
The first step: set the ip subnet mask and gateway of pc1, pc2, pc3



Step 2: Configure the port ip and subnet mask of the three routers



Step 3: Routers r2 and r3 use the vrrp protocol


Step 4: Configure the static routes of routers r1, r2, and r3



Step 5: Test
pc2 ping pc1

pc2 tracert pc1

The sixth step: disconnect the two lines of r2 and test again


边栏推荐
- This is indeed the best article on microservice architecture I have read!
- spark source code - task submission process - 1-sparkSubmit
- sql server 重复值在后面计数
- 干货!教您使用工业树莓派结合CODESYS配置EtherCAT主站
- Hugo搭建个人博客
- [ingress]-ingress exposes services using tcp port
- ACLs and NATs
- 深度 Zabbix 使用指南——来自惨绿少年
- Insight into the general trend of the Internet, after reading this article, you will have a thorough understanding of Chinese domain names
- Detailed explanation of ten solutions across domains (summary)
猜你喜欢
![[issue resolved] - jenkins pipeline checkout timeout](/img/3d/c14276d2b5ce18fc3d1288abb059c0.png)
[issue resolved] - jenkins pipeline checkout timeout

sql server 重复值在后面计数

运维工程师,快来薅羊毛

DisabledDate date picker datePicker

el-autocomplete使用

传输层协议

LinkSLA insists that users come first and creates a sustainable operation and maintenance service plan

单臂路由实验和三层交换机实验

By solving these three problems, the operation and maintenance efficiency will exceed 90% of the hospital

network issue?Service packet loss?This is enough
随机推荐
Proprietary host CDH
spark operator-parallelize operator
跨域的十种解决方案详解(总结)
错误类型:反射。ReflectionException:无法设置属性“xxx”的“类”xxx”与价值“xxx”
spark operator - map vs mapPartitions operator
Small example of regular expression--remove spaces in the middle and on both sides of the string
线上问题排查流程
[Problem has been resolved]-Virtual machine error contains a file system with errors check forced
带你深入了解Cookie
H5 的浏览器存储
User and user group management, file permission management
VRRP principle and command
CIPU, what impact does it have on the cloud computing industry?
[问题已处理]-jenkins流水线checkout超时
NAT实验
Introduction to Network Layer Protocols
有哪些事情是你做了运维才知道的?
sql server 重复值在后面计数
多线程之传递参数
IP address and subnet division
