deny option to specific hosts
Glenn Satchell
glenn.satchell at uniq.com.au
Mon Aug 20 12:15:40 UTC 2012
As has been mentioned, there is no specific mention to unset an option.
However, with careful use of scoping you can often work around it.
So in this case we could do something like this:
host phone {
hardware ethernet 00:1a:e8:03:99:a8;
fixed-address 192.168.254.21;
}
subnet 192.168.254.0 netmask 255.255.255.0 {
option routers 192.168.254.1;
option broadcast-address 192.168.254.255;
pool {
range 192.168.254.100 192.168.254.200;
option domain-name-servers 10.10.0.1;
option ntp-servers 10.10.0.1;
}
}
A host statement inherits from the subnet scope, but not the pool scope.
This idea may not be able to be used in all cases, but hopefully you get
the idea.
regards,
-glenn
On Mon, August 20, 2012 7:40 pm, mailsvb wrote:
> Hi everyone,
>
> I have a quick question regarding how to deny single options that have
> been
> declared for a scope to one single host?
>
> My config looks like this...
>
> subnet 192.168.254.0 netmask 255.255.255.0 {
> range 192.168.254.100 192.168.254.200;
> option routers 192.168.254.1;
> option broadcast-address 192.168.254.255;
> option domain-name-servers 10.10.0.1;
> option ntp-servers 10.10.0.1;
>
> host phone {
> hardware ethernet 00:1a:e8:03:99:a8;
> fixed-address 192.168.254.21;
> }
>
> }
>
> So I now want the DHCP server to NOT SEND the options for NTP and DNS to
> the single host "phone"? How do I prevent them to get send?
>
> Thanks in advance for your help :-)
> Sven
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
More information about the dhcp-users
mailing list