OVH VPS Configure failover IP in Ubuntu

On Ubuntu

Default config look like

/etc/network/interfaces.d/50-cloud-init.cfg is used to auto configure network interface with dhcp.

First find the gateway used by the VPS.

We found the gateway IP 51.254.32.1

The VPS had main IP of the server is 51.254.35.58 and secondary IPS 94.23.153.137, 178.32.52.159, 178.32.49.157

Here is the modified /etc/network/interfaces