OpenNetAdmin

Track. Automate. Configure.

Home About Features Community Develop
Download this project as a tar.gz file

Excluding a host from generated DHCP config

yshollander

20-07-2009 15:07:20

Is it possible to exclude individual hosts from the generated DHCP config? Right now ONA appears to generate host sections for every device on the subnet.

Thanks

Isaac

Matt

20-07-2009 16:12:56

The current method it uses to select hosts for inclusion in the DHCP configuration is based on if it has a MAC address or not. Obviously a MAC address is required for static DHCP reservations to function.

I could look at including a "exclude from DHCP" type toggle but that has its drawbacks.

I would be curious to know why you would have a host with a mac address in ONA that you would not want to serve DHCP to? In general I make the assumption that having the info in ONA and thus DHCP would be fine, even if you dont actually configure the host to use DHCP. It wont hurt things if it is in the config file but never used. That way you can still track the info in ONA but you could still hard code the IP (ick!) if you wanted to.

yshollander

20-07-2009 16:50:30

I've got vendor black boxes, switches, routers, etc on my network, none of which depend on DHCP. We only use DHCP for desktops/laptops/printers on the office network, and for PXE-booting servers.

Now you could argue that the network design should segregate servers and desktops, but you've still got the other server-class devices polluting the DHCP configs.

I realize that having the host entry in the DHCP config file is harmless, but I'm trying to prevent any sort of confusion...

Isaac