I'm having a bit of a hard time getting an Ubuntu 22.04 container (made from the proxmox provided ubuntu 22.04 template) working properly in regards to DHCP and IP addresses. The container is configured with a single network device and specific MAC address of 1:2:3:4:5:6 (MAC edited for privacy.) I then set IPv4 to DHCP.
On my DHCP server (Windows server 2016), I have a reservation for that specific mac address to IP 192.168.0.11.
When I boot the container, the container is getting an IP address of 192.168.0.128 and reporting it's MAC address to the DHCP server as "9cc62074000100012ce135ac4e7f9cc62074" This looks to me like one of those things used to spoof MAC addresses for privacy. So, in the container, I edit the /etc/dhcp/dhcpclient.conf and add "send dhcp-client-identifier hardware". I shut down the container, delete the DHCP lease, and start it back up. It comes back up again with a .128 ipv4 address and still showing a strange client identifier (not the mac address)
If I run "dhclient -r" followed by "dhclient" in the container (to release and then get a new DHCP address, THEN it reports the correct client identifier (the actual mac address) and gets the proper IP number.
At any time, if I attach to the container and run "ip a", I see the proper MAC address.
(I could, of course, use a static IP, but I have certain monitors that depend on the reserved DHCP lease being active.)
Any help or suggestions?
Edit: See post #4 for more. It seems that "dhcp-client-identifier hardware" is ignored by dhclient.
On my DHCP server (Windows server 2016), I have a reservation for that specific mac address to IP 192.168.0.11.
When I boot the container, the container is getting an IP address of 192.168.0.128 and reporting it's MAC address to the DHCP server as "9cc62074000100012ce135ac4e7f9cc62074" This looks to me like one of those things used to spoof MAC addresses for privacy. So, in the container, I edit the /etc/dhcp/dhcpclient.conf and add "send dhcp-client-identifier hardware". I shut down the container, delete the DHCP lease, and start it back up. It comes back up again with a .128 ipv4 address and still showing a strange client identifier (not the mac address)
If I run "dhclient -r" followed by "dhclient" in the container (to release and then get a new DHCP address, THEN it reports the correct client identifier (the actual mac address) and gets the proper IP number.
At any time, if I attach to the container and run "ip a", I see the proper MAC address.
(I could, of course, use a static IP, but I have certain monitors that depend on the reserved DHCP lease being active.)
Any help or suggestions?
Edit: See post #4 for more. It seems that "dhcp-client-identifier hardware" is ignored by dhclient.
Last edited: