LXC with windows DHCP server - dhcp-identifier problem


Active Member
Oct 28, 2019
Austin, TX

I'm on a corporate network that is running a windows DHCP server. During native Ubuntu 18 installs (no Proxmox, bare metal installs), I have to modify the Netplan config file /etc/netplan/01-netcfg.yaml to specify dhcp-identifier: mac to be able to have dhclient broadcast the MAC address to the DHCP server, otherwise it broadcasts the client identifier, which is kinda useless in my case.

Proxmox host does this correctly (ie. broadcasts the Mac address to the DHCP server), however LXC containers, for some reason broadcast the client identifier while obtaining an IP address. BTW, I have no idea where that client identifier is coming from; I can't find it anywhere.

How can I get my LXC containers to get a DHCP address using a MAC address? I am using ubuntu LXC containers. I tried creating a /etc/netplan/01-netcfg.yaml inside the container, but it doesn't help. The host OS does not even have a /etc/netplan directory, so that's no use either.

Thank you!


how can I get my LXC containers to get a DHCP address using a MAC address?

you could easily set it on your dhcp server.
That would the the case, if I had access to the DHCP server. Dealing with IT departments is always more difficult than it should be.


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!