Help - Search - Members - Calendar
Full Version: DHCPD.CONF question
Linuxhelp > Support > Technical Support
hiro24
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
Naresh
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.