Setting mac-address restrictions in dhcpd
Hello,
I have a dhcp server set up (Using CentOS 5.2) and I want to set it up to only give addresses to certain mac-addresses. Sort of an access control list type of thing... This is my current set up... Code:
authoritative; Is there away to say "I only want these mac-addresses to get an ip address"? I've read about "groups" but I'm getting lost. Any help would be great, thanks! :-) -C |
One way would be to use a pool and host entries, for the host entries you can either have the fixed address if you want them static or get one from the pool for dynamic.
excerpt from the dhcpd.conf manpage # 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; } unknown-clients are clients that don't have a host entry. The pool goes inside your subnet. It doesn't eliminate the need for a host entry for each one but it does allow you to have a shorter host entry. |
Thanks estabroo...
So if I get it correctly...I should change my configuration to look something like this? Code:
authoritative; Any help would be appreciated Thanks, -C |
Your config worked for me, so it'll probably work for you. I tested it with both clients with a host record and without a host record and it only gave ips to clients with host records.
|
Just tested it...
It works like I wanted it to. -C |
All times are GMT -5. The time now is 12:45 PM. |