Dhcpd.conf - Options Precedence
Niall O'Reilly
Niall.oReilly at ucd.ie
Thu Apr 6 08:38:53 UTC 2006
On 5 Apr 2006, at 21:50, Kelvin Williams wrote:
> Have I missed a keyword in my configuration to tell it to apply the
> options
> within the host declaration, PLUS any in the subnet/pool declaration?
On 6 Apr 2006, at 03:09, Chuck Anderson wrote:
> Fixed-address assignments aren't
> part of pools, so they don't get the pool options.
Chuck is right.
An example may help. We use the following structure, which has been
working
for a number of years. We have 353 pools in 136 subnets on 123
shared-networks,
thus mainly one subnet on each shared-network. We also (still!) have
many
thousands of fixed-address hosts.
# Global options
option domain-name "example.net";
use-host-decl-names on;
option domain-name-servers 192.168.116.39, 192.168.105.22,
192.168.70.28;
option tftp-server-address code 150 = ip-address;
ddns-update-style none;
# Roaming hosts -- we want to treat them as "known" in pools
( >15,000 of these )
host kleeylbr { hardware ethernet 00:00:00:00:00:01; }
host wjoydre { hardware ethernet 00:00:00:01:66:83; }
host g0bs4-541 { hardware ethernet 00:00:00:60:9b:5d; }
# Shared network (there are many shared networks)
shared-network bf-coa-arts {
subnet 192.168.163.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 192.168.163.1;
# Fixed hosts -- inherit from subnet, shared-network, global
# These use reserved addresses, not covered by any pool
host ws-bmc-0l02 {
hardware ethernet 00:20:a6:55:eb:80;
fixed-address 192.168.163.17;
}
host ih230i01 {
hardware ethernet 00:01:e6:b0:6b:b6;
fixed-address 192.168.163.20;
# Lease pool -- inherit from subnet, shared-network, global
pool {
range 192.168.163.129 192.168.163.254;
deny unknown clients;
max-lease-time 7200;
}
}
# Other subnet on same LAN (shared-network)
subnet 10.137.163.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option routers 10.137.163.1;
# No fixed addresses here, just a pool
pool {
range 10.137.163.129 10.137.163.254;
deny known clients;
max-lease-time 7200;
}
}
}
# ... and so on for the other shared-networks
IHTH
Best regards,
Niall O'Reilly
University College Dublin Computing Services
PGP key ID: AE995ED9 (see www.pgp.net)
Fingerprint: 23DC C6DE 8874 2432 2BE0 3905 7987 E48D AE99 5ED9
More information about the dhcp-users
mailing list