Categories
20.04 Dedicated server Internet Linux Software Ubuntu Virtual machines

OVH/SoYouStart failover Ubuntu 20.04 netplan Proxmox

I know why you’re here. It’s a pain isn’t it?
Let’s get this sorted for you (and me sometime in the future!).

Assumptions:
* You have attached your failover IPs to the server
* You have generated a MAC address for the failover IP (02:xx:xx:xx:xx:xx)

You will need the failover IP (the one below is an example)
192.168.0.20

Here is my configuration:
/etc/netplan/00-installer-config.yaml

# This is the network config written by 'subiquity'
network:
  ethernets:
    ens18:
      addresses:
      - 192.168.0.20/24
      gateway4: 192.168.0.254
      nameservers:
        addresses:
        - 208.67.222.222
        - 208.67.220.220
        search:
        - virtual
  version: 2

As you can see, I just changed the /32 to /24 and changed the last octet of the gateway4 from 120 to 254.
The key is the /24 part. If you leave it as /32 it thinks the gateway is on a separate network.

This does work with real OVH failover addresses, I only used the internal network address 192.168 as an example.