Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHCP server hands out same IP when multiple clients connect simultaneously #871

Closed
jtmusson opened this issue Jan 12, 2024 · 1 comment · Fixed by #1030
Closed

DHCP server hands out same IP when multiple clients connect simultaneously #871

jtmusson opened this issue Jan 12, 2024 · 1 comment · Fixed by #1030

Comments

@jtmusson
Copy link

I have seen this happen a few times now, on more than one scope.

It appears to happen if more than one device is, for instance, restarted or added to the network at the same time.

The devices are listed separately under the scope, with distinct identifiers/ MAC addresses, different host names, but the same IPs.

Have seen this with up to 3 devices being given the same IP.

Workaround is to delete the 2nd, 3rd etc leases and prompt those devices to renew their DHCP lease. Then they are allocated a unique IP each.

I have three nodes set up.

Latest releases, running in docker using docker-compose.

Happy to supply any further info to help reproduce.

@jtmusson
Copy link
Author

jtmusson commented Jan 14, 2024

This also appears to happen when leases expire.

Devices are also being given IPs not on their subnet, which makes them inaccessible on a VLAN-segregated network.

I've had to abandon Gravity now as these issues make the network unusable. I really wanted to support given the independent nature of the project - and also for the redundant nodes design. But I can't if the key functions of a DHCP server don't function.

For anyone looking for an alternative DHCP server, I've switched to ISC's Kea: https://kb.isc.org/docs/isc-kea-packages

It offers official repos for most distributions / architectures.

There is no GUI but config is done through a JSON-formatted file, which has ample helpful comments and is well-supported in the documentation. Seems rock-solid so far.

[ISC offer an additional product called Stork as a self-hosted front-end, but I haven't tested this yet as I was focused on getting my network back to functional.]

Kea also offers high-availability through additional configuration using what they call a "hook", which is their plug-in framework. Again there is ample documentation and I hope to try this out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant