The cat of my file is rather long. I would just attach the file, but I can't for some reason. I don't know why. Anyway
Code:
#
# Sample configuration file for ISC dhcpd for Debian
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#
# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;
# option definitions common to all supported networks...
default-lease-time 84000;
max-lease-time 100000;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
log-facility local7;
#subnet 10.0.0.0 netmask 255.255.0.0 {
#}
#LAB constants
subnet 10.0.0.0 netmask 255.255.0.0 {
#no dhcp ranges here
host wireless {
hardware ethernet 00:02:6F:34:AC:09;
fixed-address 10.0.0.2;
}
host printer {
hardware ethernet 00:60:B0:CA:7D:FE;
fixed-address 10.0.0.3;
}
}
# Lab subnet
subnet 10.0.1.0 netmask 255.255.255.0 {
range 10.0.1.200 10.0.1.254;
option broadcast-address 10.0.1.255;
option routers 10.0.0.1;
#
# Lab network static routes (comptuer that stay in the lab)
#
host sparky {
hardware ethernet 08:00:20:b7:12:f3;
fixed-address 10.0.1.1;
option host-name "sparky";
}
host aapel {
hardware ethernet 03:04:05:00:01:02;
fixed-address 10.0.1.2;
option host-name "aapel";
}
host alien_warez {
hardware ethernet 00:01:6c:38:8d:98;
fixed-address 10.0.1.4;
option host-name "alien";
}
host doorman {
hardware ethernet 00:01:03:28:7d:ae;
fixed-address 10.0.1.5;
option host-name "doorman";
}
}
# Aluminator subnet
subnet 10.0.100.0 netmask 255.255.255.0 {
# Aluminator network
#
host black_box {
hardware ethernet 00:01:02:03:04:05;
fixed-address 10.0.100.1;
}
}
#Stereo
subnet 10.0.101.0 netmask 255.255.255.0 {
#
# Stereo Network
#
host curly {
hardware ethernet 01:02:03:04:05:00;
fixed-address 10.0.101.1;
}
}
#Miniprime
subnet 10.0.102.0 netmask 255.255.255.0 {
# Mini-prime network
#
host gum_stix {
hardware ethernet 02:03:04:05:00:01;
fixed-address 10.0.102.1;
}
}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
Relevant output of ifconfig (no loopback)
Code:
eth0 Link encap:Ethernet HWaddr 00:80:ad:82:5d:5a
inet addr:131.151.8.67 Bcast:131.151.8.255 Mask:255.255.255.0
inet6 addr: fe80::280:adff:fe82:5d5a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2109915 errors:0 dropped:0 overruns:0 frame:0
TX packets:2747368 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:515639642 (515.6 MB) TX bytes:2934657526 (2.9 GB)
Interrupt:17 Base address:0xcc00
eth1 Link encap:Ethernet HWaddr 00:12:3f:3d:6d:55
inet addr:10.0.0.1 Bcast:10.0.255.255 Mask:255.255.0.0
inet6 addr: fe80::212:3fff:fe3d:6d55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18289 errors:0 dropped:0 overruns:0 frame:0
TX packets:1431 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1749595 (1.7 MB) TX bytes:587426 (587.4 KB)
I shouldn't have the allow/deny option set. I am starting to wonder if it has something to do with the multiple subnets.
EDIT: Put all my subnets inside a shared network statement and I can now hand out leases. Now I don't know how to allow each subnet to see each other. I think that has to do with subnet masks. That should also allow the clients to see the server as a router.