Ubuntu lxc wrong network config (old IP on eth0)

Oct 29, 2024
1
0
1
Hi all,
Enviroment: Proxmox Virtual Environment 8.2.7

I have some ubuntu lxc that was updated from ubuntu 16 to 20 some time ago.
I have notice that the network config that i setup in the proxmox ve interface is not correctly applied.
Some time ago it was configured an ip address on eth0 interface, but now eth0 has another ip and gateway.

The problem is that the old configuration its been added to the new, so i can see 2 ips on that interface(the new and the old).
I have rebooted the server and the lxc but the problem persist.

If i change the name from eth0 to eth1 then the problem goes away, but if i go back to eth0 name the old IP araise.

i have run "apt remove ifupdown" and deleted /etc/network/interfaces but the problem persist.

I have found that inside /run/systemd/netif/links/ there is a file with the wrong config, but every time i change the nwetwork on the web ui, the files overwrite again with old IP config.
 

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!