All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Failover IPs - OVH VPS Debian10
hey all,
wondering if someone could provide me a little direction it's been a while since i've used failvoer ips on a VPS probably Debian8 to be fair.
Now with Debian10 I'm seeing conflicting information across the OVH website not sure what guide to follow to be honest, any pointers?
I tried this guide. - https://docs.ovh.com/gb/en/public-cloud/configure_a_failover_ip/
**auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address MAIN IP 0
netmask 255.255.255.255
auto eth0:1
iface eth0:1 inet static
address FAILOVER_IP1 1
netmask 255.255.255.255**
but i get the following error
Jun 01 22:05:51 vpsXXX systemd[1]: Starting Raise network interfaces...
Jun 01 22:05:51 vpsXXX ifup[704]: Error: either "local" is duplicate, or "0/255.255.255.255" is a garbage.
Jun 01 22:05:51 vpsXXX ifup[704]: ifup: failed to bring up eth0:0
Jun 01 22:05:51 vpsXXX ifup[704]: Error: either "local" is duplicate, or "1/255.255.255.255" is a garbage.
Jun 01 22:05:51 vpsXXX ifup[704]: ifup: failed to bring up eth0:1
Jun 01 22:05:51 vpsXXX systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jun 01 22:05:51 vpsXXX systemd[1]: networking.service: Failed with result 'exit-code'.
Jun 01 22:05:51 vpsXXX systemd[1]: Failed to start Raise network interfaces.
Many Thanks
Comments
remove the "0" and the "1" at the end of each "address" line.
Think im getting closer... got this error now.
**
service networking restart**
Jun 02 00:01:40 vpsxxx systemd[1]: Starting Raise network interfaces...
Jun 02 00:01:40 vpsxxx ifup[6296]: RTNETLINK answers: File exists
Jun 02 00:01:40 vpsxxx ifup[6296]: ifup: failed to bring up eth0:0
Jun 02 00:01:40 vpsxxx systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Jun 02 00:01:40 vpsxxx systemd[1]: networking.service: Failed with result 'exit-code'.
Jun 02 00:01:40 vpsxxx systemd[1]: Failed to start Raise network interfaces.
If you already bind your main IP via DHCP to eth0, why are you trying to also statically assign it to eth0:0? That's the reason for the "already exists" error you are seeing.
If you want to configure eth0 via DHCP, there is no need to configure your main IP also as an additional IP on eth0:0.
If you want to configure it statically without DHCP, remove the DHCP config.
It's your choice - but chose one way and do not try to combine them.
And I know reading docs isn't cool nowadays, but if you want to understand what you are doing, it is worth reading
man interfaces
- which by the way is usually less error-prone than OVH KBs.Good catch, hadn't noticed the dhcp + main_ip repetition
Anyway, dhcp for main_ip + static for additional_ip may work.
Hi @Shot2 and @dfroe just wanted to say thank you.
I've used the below and confirm it's now working.
auto eth0
iface eth0 inet dhcp
auto eth0:0
iface eth0:0 inet static
address FAILOVER_IP
netmask 255.255.255.255