Primeiro selecione o cartão de interface
sudo nano /etc/default/isc-dhcp-server
# Defaults for isc-dhcp-server initscript
# sourced by /etc/init.d/isc-dhcp-server
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf).
#DHCPD_CONF=/etc/dhcp/dhcpd.conf
# Path to dhcpd's PID file (default: /var/run/dhcpd.pid).
#DHCPD_PID=/var/run/dhcpd.pid
# Additional options to start dhcpd with.
# Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead
#OPTIONS=""
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="eth0 eth1"
Configurar sub-rede
sudo nano /etc/dhcp/dhcpd.conf
comentar todos e acima colocar isso
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.xxx 192.168.0.xxx;
option routers 192.168.0.x;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name-servers xxx.xxx.xxx.xxx;
default-lease-time 86400;
max-lease-time 86400;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.xxx 192.168.1.xxx;
option routers 192.168.1.x;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name-servers xxx.xxx.xxx.xxx;
default-lease-time 86400;
max-lease-time 86400;
}
Reinicie o serviço
sudo service isc-dhcp-server restart
Tente?