LXC with windows DHCP server - dhcp-identifier problem

kyriazis

Well-Known Member
Oct 28, 2019
98
6
48
Austin, TX
Hi,

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!

george
 
hi,

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.