Article Title: vro Backup Using VRRP in Linux. Linux is a technology channel of the IT lab in China. It includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. Sometimes, to ensure the stability and reliability of our network, we may apply for two egress links and use two routers. When one of the routers fails to work normally, another router takes over the corresponding work. The principle of implementation is to use the VRRP (Virtual Router Redundancy Protocol) Protocol described in RFC2338. The implementation tool is keepalived.
Lab name: vro backup with VRRP
OS: RedHat 7.3
Kernel used: linux-2.4.24
Experimental Module: keepalived-1.16.tar.gz
Shows the network structure. In the figure, V-Gate is the VIP in VRRP.
There are two Linux Router in the network:
(1), Master (eth0: 192.168.1.10/24 connected to the Internet; eth1: 192.168.3.1/24 connected to the Intranet)
(2), Backup (eth0: 192.168.2.10/24 connected to the Internet; eth1: 192.168.3.2/24 connected to the Intranet)
The Intranet IP address segment is 192.168.3.0/24, and the gateway (V-Gate) is 192.168.3.3/24. Remember that the address 192.168.3.3/24 takes effect when Keepalived is started.
First, install keepalived-1.1.6.tar.gz on Linux Router master.
(1)、download keepalived-1.1.6.tar.gz (http://www.keepalived.org)
(2) decompress:
# Tar zxvf keepalived-1.1.6.tar.gz
(3) Compile keepalived
# Cd keepalived-1.1.6
#./Configure? Prefix =/usr/local/keepalived
# Make
(4) install keepalived
# Make install
(5) Configure VRRP for the Linux Router Master
# Vi/usr/local/keepalived/etc/keepalived. conf
The content is as follows:
Vrrp_instance VI_1 {
State MASTER
Interface eth1
Virtual_router_id 51
Priority100
Advert_int 1
Authentication {
Auth_type PASS
Auth_pass 1111
}
Virtual_ipaddress {
192.168.3.3
}
}
[1] [2] Next page