Install
- pkg install -y isc-dhcp43-server
Config
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="re1"
dhcpd_withumask="022"
- /usr/local/etc/dhcpd.conf
option domain-name "example.org";
option domain-name-servers 10.83.39.1;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 72400;
ddns-update-style none;
subnet 10.83.39.0 netmask 255.255.255.224 {
range 10.83.39.10 10.83.39.20;
option routers 10.83.39.1;
}
Handling
- service isc-dhcpd restart
- service isc-dhcpd start
- service isc-dhcpd stop
Links