DHCP Server for Three Subnets
From Debian Clusters
This is part of the DHCP Server tutorial.
The DHCP server for this cluster is 172.16.0.254, 192.168.10.254, and 10.0.0.254 on its three interfaces. It serves the same machines on each of their three interfaces. Each subnet needs to be declarated separately. Each interface on each machine also needs its own separate declaration on each subnet. The declaration for one host, latte, has been left for an example.
# option definitions common to all supported networks...
default-lease-time 14400;
max-lease-time 14400;
option routers 172.16.0.254;
option domain-name-servers 172.16.0.254, 10.0.0.254;
subnet 172.16.0.0 netmask 255.255.255.0 {
range 172.16.0.100 172.16.0.150 ;
option domain-name "gig1.loc";
deny unknown-clients;
}
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.150;
option domain-name "fe0.loc";
deny unknown-clients;
}
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.100 10.0.0.150;
option domain-name "gig2.loc";
deny unknown-clients;
}
host latte.gig1.loc {
hardware ethernet 00:E0:81:44:AD:9E;
fixed-address 172.16.0.199;
option host-name "latte";
}
host latte.gig2.loc {
hardware ethernet 00:E0:81:44:AD:9F;
fixed-address 10.0.0.199;
option host-name "latte";
}
host latte.fe0.loc {
hardware ethernet 00:E0:81:44:AD:D1;
fixed-address 192.168.10.199;
option host-name "latte";
}

