E eduardo2308 New Member Aug 26, 2020 3 0 1 54 Aug 26, 2020 #1 How to add a static route to an LXC container with Ubuntu 18.04, since the network configuration is no longer in the interfaces file
How to add a static route to an LXC container with Ubuntu 18.04, since the network configuration is no longer in the interfaces file
oguz Proxmox Retired Staff Retired Staff Nov 19, 2018 5,207 800 118 Aug 26, 2020 #2 hi, on the GUI select the container and go to Resources -> Network
E eduardo2308 New Member Aug 26, 2020 3 0 1 54 Aug 26, 2020 #3 i want to do this: ip route add {NETWORK/MASK} via {GATEWAYIP} before you put it in the interfaces file to be persistent
i want to do this: ip route add {NETWORK/MASK} via {GATEWAYIP} before you put it in the interfaces file to be persistent
oguz Proxmox Retired Staff Retired Staff Nov 19, 2018 5,207 800 118 Aug 26, 2020 #4 oh sorry, i misunderstood. to make custom network interfaces in the container you can make PVE ignore it: http://pve.proxmox.com/pve-docs/pve-admin-guide.html#_guest_operating_system_configuration like touch /etc/.pve-ignore.interfaces will make PVE not modify the interfaces file and your changes should be kept. be aware that most our ubuntu containers use systemd-networkd to configure networking
oh sorry, i misunderstood. to make custom network interfaces in the container you can make PVE ignore it: http://pve.proxmox.com/pve-docs/pve-admin-guide.html#_guest_operating_system_configuration like touch /etc/.pve-ignore.interfaces will make PVE not modify the interfaces file and your changes should be kept. be aware that most our ubuntu containers use systemd-networkd to configure networking