DHCP
Install & Basic Config #
install #
sudo apt-get install isc-dhcp-server
interfaces #
vi /etc/default/isc-dhcp-server
INTERFACES="eth0 eth1 eth2"
config network param #
vi /etc/dhcp/dhcpd.conf
# ns servers separated by comma "," ! ! !
option domain-name-servers 10.0.0.1, 10.0.0.2;
# lease time in sec: -1 for infinity.
default-lease-time -1;
max-lease-time -1;
# a very basic subnet declaration:
subnet 10.0.0.0 netmask 255.255.255.0 {
interface enp0s3; # optional
range 10.0.0.150 10.0.0.254; # separated by space " "
option routers 10.0.0.1; # separated by space " "
}
To check DHCP servers:
service isc-dhcp-server status