From: King, Michael (MKing@bridgew.edu)
Date: Fri May 23 2003 - 09:45:49 CDT
Hi Mike
Two things.
First get and implement the CIDR patch from the contrib folder. It has some
other added functionality.
to answer your question, here is a cut and paste from my config.
Notice two things. I used a very small netmask for my unregistered range in
the RFC1918 space, and I put two subnets from our ARINS addresses. We have
plans of using subnet masking to accomplish this, but it was a quicker fix
to just add another range to the same wire.
Snippet of my DHCPd.conf file. I'm not saying it's the best example, but it
has worked flawlessly for us for two years
shared-network "Shea Hall" {
subnet 192.168.141.0 netmask 255.255.255.192 {
authoritative; # It's always right
ignore bootp;
one-lease-per-client true;
option domain-name-servers 192.207.56.12;
one-lease-per-client true;
max-lease-time 120;
default-lease-time 120;
# Unknown clients get this pool.
pool {
option routers 192.168.141.62;
range 192.168.141.1 192.168.141.61;
allow unknown clients;
}
} # end Subnet
subnet 207.206.229.0 netmask 255.255.255.0 {
authoritative; # It's always right
ignore bootp;
option domain-name-servers 207.206.230.1, 192.168.254.3,
192.207.56.1;
one-lease-per-client true;
option domain-name "reshall.bridgew.edu";
ddns-domainname "reshall.bridgew.edu";
option broadcast-address 207.206.229.255;
max-lease-time 604800;
default-lease-time 604800;
# Known clients get this pool.
pool {
option routers 207.206.229.254;
range 207.206.229.5 207.206.229.253;
deny unknown clients;
}
} # end Subnet
subnet 207.206.240.0 netmask 255.255.255.0 {
authoritative; # It's always right
ignore bootp;
option domain-name-servers 207.206.230.1, 192.168.254.3,
192.207.56.1;
one-lease-per-client true;
option domain-name "reshall.bridgew.edu";
ddns-domainname "reshall.bridgew.edu";
option broadcast-address 207.206.240.255;
max-lease-time 604800;
default-lease-time 604800;
# Known clients get this pool.
pool {
option routers 207.206.240.254;
range 207.206.240.1 207.206.240.253;
deny unknown clients;
}
} # end Subnet
} # End of Shea
-----Original Message-----
From: Lavengood, Michael [mailto:MLavengood@franklincollege.edu]
Sent: Friday, May 23, 2003 9:40 AM
To: netreg@southwestern.edu
Subject: NetReg: DCHP Question
We are currently running Netreg v1.3rc2 in a test environment with only one
subnet (10.2.0.0/16) and it is working great. We are having a problem
though trying to get DHCP to see more than one subnet. I have read the
FAQ's on www.netreg.org <http://www.netreg.org> and did not find a very
good example on how to do this (Probably missed it). Below I have added our
dhcpd.conf file as well as our subnet.dat file. What we are trying to do is
give the FYEC Dorm a bad range of 10.99.0.6 - 10.99.0.254 and a good range
of 10.2.0.6 - 10.2.0.254. Then get Dietz Dorm a bad range of
10.98.0.6-10.98.0.254 and a good range of 10.3.0.6-10.3.0.254. We haven't
been able to figure out how to add the pools with the shared network. Any
and all help will be greatly appreciated.
Thanks,
Mike
Michael Lavengood
Network Security Administrator
<http://www.franklincollege.edu/> Franklin College
Information Technology Services
501 East Monroe Street
Franklin, Indiana 46131 <mailto:mlavengood@franklincollege.edu>
mlavengood@franklincollege.edu
Phone: 317.738.8148
Fax: 317.738.8146
---------------------------------------------------
DHCPD.CONF (The commented lines at the bottom work with just the one
Dorm/Subnet)
max-lease-time 120;
default-lease-time 120;
allow bootp;
allow booting;
option domain-name "franklincollege.edu";
server-identifier netreg.franklincollege.edu;
ddns-update-style ad-hoc;
ddns-updates off;
omapi-port 7911;
shared-network campus {
subnet 10.0.0.0 netmask 255.0.0.0 {
authoritative;
option subnet-mask 255.255.0.0;
# Unknown clients get this pool.
pool {
option routers 10.99.1.1;
option domain-name-servers 10.2.1.3;
max-lease-time 120;
default-lease-time 120;
range 10.99.0.0 10.99.0.254;
allow unknown clients;
}
# Known clients get this pool.
pool {
option routers 10.2.1.1;
option domain-name-servers 10.1.1.2;
max-lease-time 28800;
default-lease-time 28800;
range 10.2.1.6 10.2.1.254;
deny unknown clients;
}
# Unknown clients get this pool
pool {
option routers 10.98.1.1;
option domain-name-servers 10.2.1.3;
max-lease-time 120;
default-lease-time 120;
range 10.98.0.0 10.98.0.254;
allow unknown clients;
}
# Known clients get this pool.
pool {
option routers 10.3.1.1;
option domain-name-servers 10.1.1.2;
max-lease-time 28800;
default-lease-time 28800;
range 10.3.1.6 10.3.1.254;
deny unknown clients;
}
}
}
##subnet 10.0.0.0 netmask 255.0.0.0 {
## authoritative;
## option subnet-mask 255.255.0.0;
## option broadcast-address 10.0.0.255;
## # Unknown clients get this pool.
## pool {
## option routers 10.2.1.1;
## option domain-name-servers 10.2.1.3;
## max-lease-time 120;
## default-lease-time 120;
## range 10.99.0.0 10.99.0.254;
## allow unknown clients;
## }
## # Known clients get this pool.
## pool {
## option routers 10.2.1.1;
## option domain-name-servers 10.1.1.2;
## max-lease-time 28800;
## default-lease-time 28800;
## range 10.2.1.6 10.2.1.254;
## deny unknown clients;
## }
##}
#<BEGIN_STATIC>#
---------------------------------------------------
SUBNET.DAT
10.2.0.0/16: FYEC: 250: 10.99.0.0/16:
10.3.0.0/16: Dietz: 250: 10.98.0.0/16:
---------------------------------------------------
**********************************************************************
To unsubscribe from this list, send an e-mail message to
majordomo@southwestern.edu containing a single line with the words:
unsubscribe netreg
Send requests for assistance to: owner-netreg@southwestern.edu
**********************************************************************
This archive was generated by hypermail 2.1.4 : Thu Aug 12 2004 - 12:01:39 CDT