LXC: possible bug when trying to change gateways

ned

Renowned Member
Jan 26, 2015
113
2
83
For testing purposes I created an lxc CT with one network card

Code:
IP: 10.10.10.224/24
GW: 10.10.10.1

route inside CT

Code:
# ip route show
default via 10.10.10.1 dev eth0
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.224

Then from proxmox gui I change the gw from 10.10.10.1 to nodes public IP, routes show:

Code:
# ip route show
default via 148.251.xx.xx dev eth0
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.224
148.251.xx.xx dev eth0 scope link

than from proxmox gui I change the GW from 148.251.xx.xx back to 10.10.10.1, routes show:

Code:
# ip route show
default via 10.10.10.1 dev eth0
10.10.10.0/24 dev eth0 proto kernel scope link src 10.10.10.224
148.251.xx.xx dev eth0 scope link

now when I try to change back from 10.10.10.1 to 148.251.xx.xx I can not. I guess because proxmox never deletes the following route

Code:
148.251.xx.xx dev eth0 scope link

The only way to get rid of this is deleting the network interface.
 
Can you post your pveversion -v? I could not reproduce it here.
 
here it is

Code:
proxmox-ve: 5.2-2 (running kernel: 4.15.17-2-pve)
pve-manager: 5.2-6 (running version: 5.2-6/bcd5f008)
pve-kernel-4.15: 5.2-4
pve-kernel-4.15.18-1-pve: 4.15.18-17
pve-kernel-4.15.17-3-pve: 4.15.17-14
pve-kernel-4.15.17-2-pve: 4.15.17-10
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: not correctly installed
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-37
libpve-guest-common-perl: 2.0-17
libpve-http-server-perl: 2.0-9
libpve-storage-perl: 5.0-24
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-3
lxcfs: 3.0.0-1
novnc-pve: 1.0.0-2
proxmox-widget-toolkit: 1.0-19
pve-cluster: 5.0-29
pve-container: 2.0-24
pve-docs: 5.2-5
pve-firewall: 3.0-13
pve-firmware: 2.0-5
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.2-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-30
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
 
Can you try it with pve-container 2.0-26 from pvetest repository?
 
Could reproduce it and will look into it.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!