address pools
Chris Miller
Chris at InfoGreat.com
Wed Nov 15 19:57:25 UTC 2006
Hi Folks,
I read the docs for dhcpd.conf and I am apparently still confused.
All IP addresses are in the 10.1.2 subnet. I want to group the device
according to function - appliances from *.1:*.9, servers from *.10:*.19,
workstations, printers..
So, my first reaction is that I want to create address pools. I included
host directives in the subnet but not in the pools and when the observed
behavior was different from the desired behavior, I tried including the host
directives in the pools. That apparently made no difference.
Don't the known host get leases from the pool where they are known? In this
case, I want hp4100 to have an address between 100 and 109 but it get an
address of 2 -- coincidently the first available lease in the first pool..
Can anybody offer advice?
Chris.
Fill what's empty, empty what's full, and scratch where it itches.
Life is a journey, not a destination ...
/etc/dhcpd.conf
authoritative;
ddns-update-style interim;
ignore client-updates;
use-host-decl-names off;
default-lease-time 259200; #
72 hours
max-lease-time 1209600; #
2 weeks
option time-offset -28800; #
Pacific Standard Time
option subnet-mask 255.255.255.0;
option broadcast-address 10.1.2.255;
option routers 10.1.2.1;
option domain-name-servers 10.1.2.32, 10.1.2.1;
option ntp-servers tick.ucla.edu;
option domain-name "example.com.";
option nis-domain "example.com.";
ddns-updates on;
ddns-domainname "example.com.";
one-lease-per-client on;
subnet 10.1.2.0 netmask 255.255.255.0
{
pool {range 10.1.2.1 10.1.2.9; deny unknown-clients; #
network appliances
host gw1 {hardware ethernet 00:09:5B:01:74:D4;
ddns-hostname "gw1";
fixed-address 10.1.2.1; } #
gateway: Netgear FVS318
host ap1 {hardware ethernet 00:0F:B5:AC:C3:68;
ddns-hostname "ap1";
fixed-address 10.1.2.9; } #
access point: Netgear WPN824 (RangeMax)
}
pool {range 10.1.2.10 10.1.2.19; deny unknown-clients; #
servers
host trax {hardware ethernet 00:13:72:31:53:E9;
ddns-hostname "trax";
fixed-address 10.1.2.10; } #
Dell PowerEdge SC440
host trix {hardware ethernet 00:C0:9F:22:67:91;
ddns-hostname "trix"; } #
Dell PowerEdge 600SC
host fax {hardware ethernet 00:03:6D:17:BD:49;
ddns-hostname "fax"; } #
Dell Dimension L600r
}
pool {range 10.1.2.20 10.1.2.99; allow unknown-clients; #
workstations
host code {hardware ethernet 00:0B:7D:06:A4:26;
ddns-hostname "code"; } #
Dell Inspiron 9100
host case {hardware ethernet 00:08:74:E4:EB:A6;
ddns-hostname "case"; } #
Dell Inspiron 8200
host test1 {hardware ethernet 00:20:E0:68:7D:CC;
ddns-hostname "test1"; } #
Dell Inspiron 8000
}
pool {range 10.1.2.100 10.1.2.109; deny unknown-clients; #
printers
host hp4100 {hardware ethernet 00:01:E6:82:DA:CD;
ddns-hostname "hp4100"; } # HP
4100
}
pool {range 10.1.2.110 10.1.2.253; deny unknown-clients;} #
unused
pool {range 10.1.2.254 10.1.2.254; deny unknown-clients;} #
configuration address -- never lease.
}
More information about the dhcp-users
mailing list