sargon / ddhcpd

A distributed DHCP Daemon
GNU General Public License v3.0
31 stars 11 forks source link

netmask and broadcast address #60

Open christf opened 4 years ago

christf commented 4 years ago

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: