The idea is to prevent clients from receiving a DHCP address if this client (host) is not described in dhcpd.conf .
I didn’t find that functionality in dhcp ( maybe I didn’t look good ), but I don’t feel like cramming crutches.
implementations of dhcpd are different. so check with your dhcpd documentation if it supports the deny and allow directives.
An example can be seen, for example, here :
subnet 10.0.0.0 netmask 255.255.255.0 { option routers 10.0.0.254; # Unknown clients get this pool. pool { option domain-name-servers bogus.example.com; max-lease-time 300; range 10.0.0.200 10.0.0.253; allow unknown-clients; } # Known clients get this pool. pool { option domain-name-servers ns1.example.com, ns2.example.com; max-lease-time 28800; range 10.0.0.5 10.0.0.199; deny unknown-clients; } } deny unknown-clients is the option I missed in the documentation. However, I did not understand why the сервер tag does not fit the DHCP server - approximatenumberSource: https://ru.stackoverflow.com/questions/515144/
All Articles
range, I have not tried this. The solution is not so beautiful, but it is necessary that the host does not have access to the network at all if it is not on the allowed list. - approximatenumber