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

netmask and broadcast address #60

Open
christf opened this issue Oct 3, 2019 · 0 comments
Open

netmask and broadcast address #60

christf opened this issue Oct 3, 2019 · 0 comments

Comments

@christf
Copy link
Contributor

christf commented Oct 3, 2019

In a l2 mesh we can globally set the netmask and broadcast addresses. ddhcp currently allows that relying on the appropriate dhcp options as specified by -o.

In l3 networks the netmask and broadcast address should be different for every node in the net.
To make matters worse, these values change when new blocks are reserved by ddhcpd for this given node.

Without subnet mask, dhclient (default on many linux distributions) will not accept default gateway and ipv4 will be broken.

I am not sure how best deal with that. I see two options:

  • enhance hook events to allow calling hooks when blocks are reserved and released. Then this hook could use the socket to re-configure the dhcp options of ddhcpd in-flight.
  • auto-adjust the netmask/broadcast address when not hard-coded via CLI. Since those dhcp-options are standard for every installation, they should always be delivered. If not specified, use a sane default.
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

No branches or pull requests

1 participant