Меню Затваряне

Install and Configure DHCP Server, Debian 8

root@dhp:~# aptitude -y install isc-dhcp-server

root@dhp:~# nano /etc/dhcp/dhcpd.conf

# line 13: specify domain name
option domain-name "server.world";
# line 14: specify nameserver's hostname or IP address
option domain-name-servers dlp.server.world;
# line 21: uncomment
authoritative;
# add follows to the end
# specify network address and subnet-mask
subnet 10.0.0.0 netmask 255.255.255.0 {
     # specify default gateway
     option routers 10.0.0.1;
     # specify subnet-mask
     option subnet-mask 255.255.255.0;
     # specify the range of leased IP address
     range dynamic-bootp 10.0.0.200 10.0.0.254;
}
root@dhp:~# systemctl restart isc-dhcp-server

 

Вашият коментар