FAILOVER IP DEBIAN AND UBUNTU

First edit the file :

  nano /etc/network/interfaces

Now Add the IP :

         
 # This file describes the network interfaces available on your system 
 # and how to activate them. For more information, see interfaces(5). 
 # The loopback network interface 
 auto lo 
 iface lo inet loopback 
 # The primary network interface 
 auto eth0 
 iface eth0 inet static 
    	 address 195.154.123.123
    	 netmask 255.255.255.0 
    	 gateway 195.154.123.1
 auto eth0:0
 iface eth0:0 inet static
 address ip_failover
 netmask 255.255.255.255

Now save the file and quit.

If the Failover IP does not respond try :

 ifup eth0:0

The failover is now configured.

FAILOVER IP DEBIAN AND UBUNTU
Rate this post