当前位置:网站首页>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


边栏推荐
- Mina的长连接和短连接
- selenium学习
- config.js相关配置汇总
- Wechat applet page jump to pass parameters
- 网络层协议介绍
- Difference between link and @improt
- 解决这三大问题,运维效率将超90%的医院
- Regular expression small example - get number character and repeated the most
- Complete mysql offline installation in 5 minutes
- One-arm routing experiment and three-layer switch experiment
猜你喜欢

spark source code - task submission process - 1-sparkSubmit
![[Problem has been resolved]-Virtual machine error contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)
[Problem has been resolved]-Virtual machine error contains a file system with errors check forced

The problem of calling ds18b20 through a single bus

监控系统的内卷,有什么讲究?

NAT实验

Teach you simple steps to achieve industrial raspberries pie properly installed RS232 USB drive

ALC实验

markdown editor template
![[问题已处理]-虚拟机报错contains a file system with errors check forced](/img/07/1222a44dd52b359bf7873e6f3b7ebf.png)
[问题已处理]-虚拟机报错contains a file system with errors check forced

network issue?Service packet loss?This is enough
随机推荐
5分钟完成mysql离线安装
The spark operator - coalesce operator
云计算——osi七层与TCP\IP协议
CIPU, what impact does it have on the cloud computing industry?
实力卷王LinkSLA,实现运维工程师快乐摸鱼
Hugo搭建个人博客
教您简单几步实现工业树莓派正确安装RS232转USB驱动
H5 的浏览器存储
The spark operator - repartition operator
Detailed explanation of ten solutions across domains (summary)
NIO works is analysed
用户和用户组管理、文件权限管理
TCP/IP four-layer model
[ingress]-ingress exposes services using tcp port
The problem of calling ds18b20 through a single bus
time complexity and space complexity
时间复杂度和空间复杂度
Into the pre-service, thought they play so flowers
sql server 重复值在后面计数
The Servlet to jump to the JSP page, forwarding and redirection
