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


边栏推荐
- 路由器和静态路由的配置
- Insight into the general trend of the Internet, after reading this article, you will have a thorough understanding of Chinese domain names
- Four ways to obtain Class objects through reflection
- Wireshark packet capture and common filtering methods
- 深度 Zabbix 使用指南——来自惨绿少年
- Spark source code - task submission process - 6-sparkContext initialization
- NIO工作方式浅析
- 七种让盒子水平垂直居中的方法
- OpenCV3.0 is compatible with VS2010 and VS2013
- 7步完成云上监控
猜你喜欢

config.js相关配置汇总

Wireshark packet capture and common filtering methods

Mina's long and short connections

Growth: IT Operations Trends Report

OpenCV3.0 is compatible with VS2010 and VS2013

Technology Sharing Miscellaneous Technologies

Mina的长连接和短连接

network issue?Service packet loss?This is enough

线上问题排查流程

单臂路由实验和三层交换机实验
随机推荐
智能运维会取代人工运维吗?
[问题已处理]-虚拟机报错contains a file system with errors check forced
spark source code-RPC communication mechanism
Difference between link and @improt
What's the point of monitoring the involution of the system?
Technology Sharing Miscellaneous Technologies
I217-V network disconnection problem in large traffic under openwrt soft routing
云计算——osi七层与TCP\IP协议
idea 常用快捷键
Network wiring and digital-to-system conversion
vim教程:vimtutor
network issue?Service packet loss?This is enough
spark source code - task submission process - 3-ApplicationMaster
ROS2下使用ROS1 bag的方法
请问下通过flink sql读取hologres 的两张表的 binlog,然后如何进行join?
product learning materials
浏览器存储WebStorage
Tencent greetings function SCF - entry instructions
Tencent Cloud Message Queue CMQ
May I ask how to read the binlog of the two tables of hologres through flink sql, and then how to join?
