Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ DHCPD.CONF question

Posted by: hiro24 Oct 3 2008, 07:25 AM

Hello...

I'd like to set dhcp up in such as way as to default deny addresses to all except a pre-defined group of MAC addresses. I've found how to do this in regards to setting them us as static IPs, but this isn't really what I'm looking for. I'd like it to basically be like "Oh, your MAC is approved? Here, have a (non static) IP. You're not on the list? Sorry.." Can somebody shed a little light on this for me?

-Chris

Posted by: Naresh Nov 13 2008, 06:08 AM

QUOTE (hiro24 @ Oct 3 2008, 07:25 AM) *
Hello...

I'd like to set dhcp up in such as way as to default deny addresses to all except a pre-defined group of MAC addresses. I've found how to do this in regards to setting them us as static IPs, but this isn't really what I'm looking for. I'd like it to basically be like "Oh, your MAC is approved? Here, have a (non static) IP. You're not on the list? Sorry.." Can somebody shed a little light on this for me?

-Chris


Hi Chris,

Even i have the same situation and after going through the man page i found a solution. I dont know if the solution is of any use for you after 40 days of posting the question. But i joined in Linuxhelp only today.
But here is the dhcpd.conf which does the trick,

subnet x.x.x.0 netmask x.x.x.x {
range x.x.x.x y.y.y.y;
deny unknown-clients;
}
host hostnumber1 {
hardware ethernet x:y:z:a:b:c;
}
host hostnumber2 {
hardware ethernet a:b:c:d:e:f;
}
If you apply this conf file , then only clients with x:y:z:a:b:c and a:b:c:d:e:f will be offered DHCP offers with dynamic ips in the range of (x.x.x.x ---> y.y.y.y). Others will be denied.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)