I need to setup on my VPS a failover IP address for my main ethernet interface.
I can find any kind of guide/tutorial for Debian 7 and 8 but they just won't work for Debian 9 (Stretch) since something about network interfaces changed in this version.
OVH's Configure a failover IP with Debian instructions is one such guide, which I have been following.
I edited /etc/network/interfaces
:
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug ens4 iface ens4 inet dhcp auto ens4:0 iface ens4:0 inet static address -IP i won't type on pastebin- netmask 255.255.255.255 broadcast -same IP as before-
Restarting the networking
service yielded these messages in the log:
gen 25 11:37:26 vps370990 ifup[15870]: DHCPACK of MY_VPS_IP from DHCP_SERVER_IP. gen 25 11:37:26 vps370990 ifup[15870]: bound to MY_VPS_IP -- renewal in 34720 seconds. gen 25 11:37:26 vps370990 ifup[15870]: Cannot find device "ens4:0" gen 25 11:37:26 vps370990 ifup[15870]: ifup: failed to bring up ens4:0 gen 25 11:37:27 vps370990 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE gen 25 11:37:27 vps370990 systemd[1]: Failed to start Raise network interfaces. gen 25 11:37:27 vps370990 systemd[1]: networking.service: Unit entered failed state. gen 25 11:37:27 vps370990 systemd[1]: networking.service: Failed with result 'exit-code'.
How can I do this?