Configuration on the Server
- Copy the following file:
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
- Modify the file /etc/sysconfig/network-scripts/ifcfg-eth0:0:
DEVICE="eth0:0"
BOOTPROTO=static
IPADDR="my_failover_ip"
NETMASK="255.255.255.255"
ONBOOT=yes
- Start the interface eth0:0 to activate the failover IP.
文章来源:https://documentation.online.net/en/dedicated-server/network/ip-failover/centos-fedora-mageia