help me explain
Simon Hobson
dhcp1 at thehobsons.co.uk
Mon Oct 17 20:13:35 UTC 2016
"Cuttler, Brian R (HEALTH)" <brian.cuttler at health.ny.gov> wrote:
> So my DHCP config looks like this – with one such stanza per building floor.
>
> I am not certain how to implement this addressing structure with a single domain name
The domain name is irrelevant - it does NOT affect your addressing structure
> Do we simply put the 6 subnet statements inside of a GROUP statement and move the ddns-domainname and ddns-rev-domainname statements into the outer structure?
That's one way to do it, or you can just use the same domain name statement in each one. YOu can omit ddns-rev-domainname as it works out of the box with defaults - you only need to specify it if doing things like bodging around doing dynamic DNS on a reverse zone that's not on a /24 boundary.
subnet 10.57.46.0 netmask 255.255.255.0 {
ddns-domainname = "dai.wadsworth.org";
...
}
subnet 10.57.47.0 netmask 255.255.255.0 {
ddns-domainname = "dai.wadsworth.org";
...
}
subnet 10.57.48.0 netmask 255.255.255.0 {
ddns-domainname = "dai.wadsworth.org";
...
}
and so on
it really is that simple !
BTW - you have a few redundancies in your config :
option domain-name-servers admin.wadsworth.org, bionsc.wadsworth.org, ldap1.wadsworth.org, 10.50.156.21;
pool {
range 10.57.46.30 10.57.46.225;
allow unknown-clients;
allow known-clients;
option domain-name-servers admin.wadsworth.org, bionsc.wadsworth.org, ldap1.wadsworth.org, 10.50.156.21;
You've duplicated domain-name-servers and your allow statements (unless you have something at a higher inheritance level to override) simply implement the defaults.
More information about the dhcp-users
mailing list