Okay, sorry for my egregious idiot attack before... the one dhcpd.conf file should have all of the subnet declarations in it. For instance:
subnet 10.20.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.20.1.1;
option subnet-mask 255.255.255.0;
option domain-name "blahblah.edu";
option domain-name-servers 216.27.175.2,216.231.41.2; #don't use mine :P
option time-offset -5; # Eastern Standard Time
range dynamic-bootp 10.20.1.10 10.20.1.100;
}
subnet 10.20.2.0 netmask 255.255.255.0 {
# --- default gateway
option routers 10.20.2.1;
option subnet-mask 255.255.255.0;
option domain-name "blahblah.edu";
option domain-name-servers 216.27.175.2,216.231.41.2; #don't use mine :P
option time-offset -5; # Eastern Standard Time
range dynamic-bootp 10.20.2.10 10.20.2.100;
}
To build this out of the all of those files I told you to build just do this:
cat subnet2.conf >> subnet1.conf
cat subnet3.conf >> subnet1.conf
blah blah blah repeat 3 times until all of the subnets are in the one conf file.
Make sure all of the NIC are ifconfig'd to have an address on the subnet they'll be serving addresses to. They of course, do not necessarily have to be the same address as the router you are specifying in the first field of each subnet declaration.
Then:
dhcpd eth0 eth1 eth2 eth3 eth4 -cf /wherever/subnet1.conf
The output should look something like this: (my test run was with 2 cards)
root@tenacious:~# dhcpd eth0 eth1 -cf /root/dhcpd.conf
Internet Software Consortium DHCP Server 2.0
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.
Please contribute if you find this software useful.
For info, please visit
http://www.isc.org/dhcp-contrib.html
Listening on LPF/eth1/7b:7b:7b:7b:7b:7b/192.168.1.0
Sending on LPF/eth1/7b:7b:7b:7b:7b:7b/192.168.1.0
Listening on LPF/eth0/00:a0:24:6b:18:95/192.168.0.0
Sending on LPF/eth0/00:a0:24:6b:18:95/192.168.0.0
Sending on Socket/fallback/fallback-net
There you go. Sorry for the confusion earlier man and the fact this took me a while to throw out... I had to go see Lord of the rings.
-Cheers
Finegan
Also, it just occured to me that you might want to post the second half of this questions to the security part of the forum as to what would be a solid iptables firewall rules-set that would at least be a solid firewall for forwarding... they might also be able to help you with bandwidth limiting on the typical kazaa, gnutella ports (63000-ish?). IPtables I know a little about, but I mastered chains and all my servers still run on 2.2 kernels (not broke, why fix?). Limiting I'm a babe in the woods. Make sure to be as specific as possible so as to keep the forum moderators from considering it a double post. (That's not a good thing around here.)