OVH Community, your new community space.

Having problems getting an ip failover to work on ubuntu proxmox container - help?


Myatu
04-01-2013, 20:06
wii89 gave a config that should work, as it adds the missing route to the gateway after it brings up your "eth0" network interface. So your /etc/network/interfaces should look something like this:

Code:
auto lo
iface lo inet loopback

# Example IPs:
# Failover    - 91.11.22.33
# Host/Server - 91.2.3.4 (= Gateway 91.2.3.254)
auto eth0
iface eth0 inet static
    address 91.11.22.33
    netmask 255.255.255.255
    broadcast 91.11.22.33
    post-up route add 91.2.3.254 dev eth0
    post-up route add default gw 91.2.3.254
    post-down route del 91.2.3.254 dev eth0
    post-down route del default gw 91.2.3.254
... then issue a service networking restart or reboot.

zimsters
03-01-2013, 17:04
any ideas?

zimsters
29-12-2012, 16:38
ok replacing what i have with yours, when i now type ifconfig it doesn't return anything. when i say ifconfig eth0 i get details about eth0 (link encap, hwaddr, mtu, rx / tx packets and bytes) but no info at all around gateway / ip address. Tried rebooting, same issue. a service network restart yields

stop: Unknown instance:
networking stop/waiting

wii89
29-12-2012, 13:56
Hi,

Try this

/etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address IP Failover
netmask 255.255.255.255
broadcast IP Failover
post-up route add dedicated server IP address.254 dev eth0
post-up route add default gw dedicated server IP address.254
post-down route del dedicated server IP address.254 dev eth0
post-down route del default gw dedicated server IP address.254

zimsters
28-12-2012, 01:36
hey guys,

this is driving me insane - have never had issues doing this in centos.

basically trying to get a ubuntu proxmox container working with an ip. What i've done:

- ovh manager - linked ip to mac
- created proxmox container with the mac
- updated /etc/network/interfaces with:

auto eth0
iface eth0 inet static
address
netmask 255.255.255.255
gateway
broadcast
dns-nameservers 127.0.0.1 213.186.33.99
have rebooted, checking ifconfig it correctly shows the address, gateway, mac.

if I do a /sbin/route -n command I see no routing table.

Trying to add default route using ip route command yields "siocaddrt: no such process"

Any tips?