Segregating a list of IP Address and ignoring their dhcp requests in ISC-DHCPD
I had a l2 networking error that would allow my DHCP server to receive DHCPDISCOVER but the host would not receive the returned DHCPOFFER. Since both sides were technically doing what they were supposed to do, the DHCPDISCOVERs kept coming and the DHCPOFFERs kept getting sent. This was filling up my log and getting just generally annoying. So i wanted to group them in my dhcpd.conf and ignore them until i could figure out how to deal with the problem.
To silence these by just ignoring the requests from these hosts you can just add
In dhcpd.conf:
group stopasking {
ignore booting;
host bb21 { hardware ethernet aa:bb:cc:dd:ee:aa; }
host bb24 { hardware ethernet aa:bb:cc:dd:ee:bb; }
}
Pros:
- I can go back later and just remove the
ignore booting;
line to allow these hosts to pull a dhcp address
Cons:
- You do have to give a name to each host you want to silence
Written by Allison Wampler
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Isc-dhcpd
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#