This tutorial will show you how to setup a failover ip for ovh for centos 7. It requires a different configuration then centos v < 7. In this example i ll be using a proxmox server with an already configured vmbr0 configuration, where vmbr0 is bridging eth0. We then configure a KVM’s network inside the KVM, to allow it using the host’s vmbr0.
1.) Get a mac for your failover ip @ ovh
Head to https://ovh.com/manager/ and create a mac address for a failover ip, then go inside proxmox’s network config and set the proxmox network card to match that mac address. Lets say you have the failover ip 188.8.131.52 and your proxmox server’s main ip is 184.108.40.206. When I recieved the failover ips i got an email which included the gateway for this tutorial lets pick 220.127.116.11 as that gateway ( for the failover ips ).
2.) Fire up a kvm
inside the kvm cd to /etc/sysconfig/network-scripts/. Now enter:
this will list you all interfaces attached to the kvm. note done the name in this example we will be using the name ens18. This means we have to create 2 files the ifcfg-ens18 and the route-ens18. You can also verify that the mac address is set properly here.
3.) Configure your network
4.) Configure the route
18.104.22.168 is the gateway of our failover ips
22.214.171.124 is the main ip of our server
126.96.36.199 is the resulting network of our main ip
ens18 is the name of our network interface
5.) Restart networking