1) install:
apt-get install isc-dhcp-server
2) edit:
vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
ddns-domainname "example.com";
ignore client-updates;
option host-name = config-option server.ddns-hostname;
option domain-name "example.com";
option domain-name-servers 10.10.10.2;
option time-offset -18000; # Pacific Standard Time
option ntp-servers 10.10.10.1;
one-lease-per-client off;
default-lease-time 86400;
max-lease-time 604800;
option ip-forwarding off;
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.100 10.10.10.200;
next-server 10.10.10.1;
option routers 10.10.10.1;
option subnet-mask 255.255.255.0;
option ntp-servers 10.10.10.1;
option tftp-server-name "https://10.10.10.1/provisioning/prov";
}
3) restart
/etc/init.d/isc-dhcp-server restart
4) show for IP leases:
tail -f /var/lib/dhcp/dhcpd.leases
apt-get install isc-dhcp-server
2) edit:
vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
ddns-domainname "example.com";
ignore client-updates;
option host-name = config-option server.ddns-hostname;
option domain-name "example.com";
option domain-name-servers 10.10.10.2;
option time-offset -18000; # Pacific Standard Time
option ntp-servers 10.10.10.1;
one-lease-per-client off;
default-lease-time 86400;
max-lease-time 604800;
option ip-forwarding off;
subnet 10.10.10.0 netmask 255.255.255.0 {
range 10.10.10.100 10.10.10.200;
next-server 10.10.10.1;
option routers 10.10.10.1;
option subnet-mask 255.255.255.0;
option ntp-servers 10.10.10.1;
option tftp-server-name "https://10.10.10.1/provisioning/prov";
}
3) restart
/etc/init.d/isc-dhcp-server restart
4) show for IP leases:
tail -f /var/lib/dhcp/dhcpd.leases