Use VRRP to back up two-way routing links (Figure)
Source: Internet
Author: User
Article title: using VRRP to back up two-way routing links (figure ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In the previous experiment of VRRP (using VRRP for simple router backup), only one interface of the Linux router can be backed up, but the router usually has at least two interfaces, when either of the two interfaces fails, the network will fail, so we need to monitor the two interfaces in Linux, when any network interface of the Master Linux router fails, the Backup Linux router takes over the work of the Master. It is easy to implement in Keepalived.
Experiment name: use VRRP to back up two-way routing links
OS: RedHat 7.3
Kernel used: linux-2.4.24
Module used in the experiment: keepalived-1.16.tar.gz (if you do not know much about VRRP and Keepalived, first look here)
Shows the network structure:
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. for details, see (using VRRP to implement simple Router backup)
Configure VRRP for the Linux Router Master,
# Vi/usr/local/keepalived/etc/keepalived. conf
The methods for installing keepalived on Linux Router Backup are the same. The difference is that the configuration file/usr/local/keepalived/etc/keepalived. conf is as follows:
Start keepalived on Backup in the same way
#/Usr/local/keepalived/sbin/keepalived? D? F/usr/local/keepalived/etc/keepalived. conf
In this way, if any of the eth0 and eth1 interfaces on the Master node fail, Backup will obtain the message through the MultiCast address: 224.0.0.18, and take over the address 192.168.3.3.
This experiment differs from VRRP for simple vro backup because there are multiple items in their configuration files:
Track_interface {# Interfaces state we monitor
Eth0
}
Track_interface means to monitor the network interface card you want to monitor in Linux. when one of the interfaces fails, keepalived is regarded as a router failure.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service