Proxmox 4: Wrong networking-settings in containers after reboot

SPQRInc

Member
Jul 27, 2015
57
1
6
Hello,


I mention that my LXC guests are automatically set up with




Code:
        post-up ip route add 8x.xxx.148.1 dev eth0
        post-up ip route add default via 8x.xxx.148.1
        pre-down ip route del default via 8x.xxx.148.1
        pre-down ip route del 8x.xxx.148.1 dev eth0


these settings are always active after rebooting the container.




But the datacenter's preferences are


Code:
auto lo
iface lo inet loopback


auto eth0
iface eth0 inet static
address 8x.xxx.247.250
netmask 255.255.255.255
pointopoint 8x.xxx.148.1
     gateway 8x.xxx.148.1




These are the settings in the proxmox interface config:
Code:
auto lo
iface lo inet loopback
iface eth0 inet manual




auto vmbr0
iface vmbr0 inet static
address 8x.xxx.148.179
netmask 255.255.255.0
gateway 8x.xxx.148.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
What's wrong here?
 
Last edited:
In which datacenter is this?
 
Your gateway is outside your subnet which seems to be quite a common setup, so we decided to support this by adding a route for the gateway.
You only said the configuration is now different, but does also not work anymore? It should result in similar traffic I think. (At least on the hosters I tested it on both versions worked).