Failover IP Debian and Ubuntu

This documentation explains how to configure a failover IP on servers installed with Debian and Ubuntu.

On Ubuntu 18.04 the network configuration has been modified to Netplan

Configuration on the Server

1. Open the file /etc/network/interfaces in your favourite text editor.

2. Add the failover IP as shown in this example:

The interface name of your server might be different depending on the hardware of the server. You can run ifconfig to identify the name of the interface.

# 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 
 auto eth0:0
 iface eth0:0 inet static
 address ip_failover

3. Save the file and quit the editor

4. Bring the interface up by typing ifup eth0:0

The failover IP is configured now.