Score:1

isc-dhcp-server assigns same IP address for different hosts

jp flag

I have an isc-dhcp-server running in a Docker container, which I configured with one subnet of 100 available IP @.

When starting my laptops (they are all running Linux OS), when they are requesting IP@, they are all offered with the same one by the DHCP server, even though they have different MAC@.

When I have a look at the /var/lib/dhcp/dhcpd.leases file, I see different "lease" lines, one per laptop, but with the same IP@.

Is there a specific configuration to make sure that the DHCP server assigns different IP@ or do you see what could be wrong here?

br flag
That smells as if the MAC address gets lost on the way, possibly in the bridge, and the server sees the same address for all hosts.
Bruno avatar
jp flag
Hmm no, the MAC @ is different when I look at the /var/lib/dhcp/dhcpd.leases. Only the uid and client-hostname is the same
br flag
ah, the UUID overrides the MAC address as an identifier (this is useful for example for a client switching from wired to wireless). Your clients need to generate different UUIDs.
Bruno avatar
jp flag
Ah ok! I didn't know... many thanks for your help. And there is no way for the isc-dhcp server to ignore this value and rely exclusively on the MAC @?
Score:1
in flag

Correct thing to do is for DHCP servers to send same IP for same UUID so that roaming between wired and wireless is seamless.

To fix duplicate UUIDs the identifier on the clients should be fix. (this is a client issue, not server)

If you want to keep the old MAC based behavior you should be able to use ignore-client-uids true; as described at https://serverfault.com/a/977782/187998

Bruno avatar
jp flag
Thanks for your help, this was the issue indeed... I will ask our manufacturer to make the change.
in flag
I'm going to assume that by manufacturer you are referring to the clients ;)
Bruno avatar
jp flag
Yes! manfacturer of our laptops, who is also responsible of the OS installed on it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.