Cannot set fixed IP in lxc

johnvick

Member
Mar 1, 2022
27
2
8
65
I have 8.2.2 running in Intel NUC. I recently added a second NIC, USB C to LAN. I have an Ubuntu 24.04 lxc running and added second NIC.
EHT 0 is on 192.168.1.0/24 network with IP fixed on router, works fine address 192.168.1.167.
eth0.jpg

The second NIC I want to add on 192.168.2.0/24 network as 192.168.2.167.
eth1.jpg

Both plug into a 2.5 GBE managed switch which is on default settings.

The problems is the system changes the second address to 192.168.2.1.

I do the same on a Debian lxc it works as expected, as is the case when I do the same in an OMV VM.

Whys is this happening and how can I fix the IP to what I want?
 

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!