The file /etc/default/dhcp3-server contains the reference to the interface where the service needs to listen to.
# Defaults for dhcp initscript # sourced by /etc/init.d/dhcp # installed at /etc/default/dhcp3-server by the maintainer scripts # # This is a POSIX shell fragment # # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="eth0"
The file /etc/dhcp3/dhcpd.conf is the configuration file of the server.
authoritative;
ddns-domainname "debooy.eu.";
ddns-rev-domainname "in-addr.arpa.";
ddns-updates on;
ddns-update-style interim;
deny bootp;
ignore client-updates;
one-lease-per-client true;
server-identifier server;
include "/etc/bind/rndc.key";
# Standard DHCP
option domain-name "debooy.eu";
option domain-name-servers 192.168.20.2;
option ntp-servers 192.168.20.2;
default-lease-time 604800;
max-lease-time 2959200;
# Local Area Network
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.100 192.168.10.199;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
}
# DMZ
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.100 192.168.20.199;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.20.255;
option routers 192.168.20.1;
}
# VoIP
subnet 192.168.30.0 netmask 255.255.255.0 {
range 192.168.30.100 192.168.30.199;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.30.255;
option routers 192.168.30.1;
}
# Free
subnet 192.168.40.0 netmask 255.255.255.0 {
range 192.168.40.100 192.168.40.199;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.40.255;
option routers 192.168.40.1;
}
# WiFi
# Local Area Network
zone 10.16.192.in-addr.arpa. {
primary 192.168.20.2;
key "rndc-key";
}
# DMZ
zone 20.16.192.in-addr.arpa. {
primary 192.168.20.2;
key "rndc-key";
}
# VoIP
zone 30.16.192.in-addr.arpa. {
primary 192.168.20.2;
key "rndc-key";
}
# Free
zone 40.16.192.in-addr.arpa. {
primary 192.168.20.2;
key "rndc-key";
}
# WiFi
# Domain
zone debooy.eu. {
primary 192.168.20.2;
key "rndc-key";
}
# Fixed IP Addresses