Configuration on the Server

  1. Copy the following file:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0

  1. 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

  1. Start the interface eth0:0 to activate the failover IP.

文章来源:https://documentation.online.net/en/dedicated-server/network/ip-failover/centos-fedora-mageia

Last modification:August 13th, 2021 at 12:06 pm
如果觉得我的文章对你有用,请随意赞赏