ps-martins
(usa Debian)
Enviado em 25/03/2017 - 15:08h
vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
#deny unknown-clients;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.100;
authoritative;
option domain-name "suaempresa";
option domain-name-servers 192.168.0.3,192.168.0.2;
option netbios-name-servers 192.168.0.6;
option routers 192.168.0.1;
default-lease-time 600;
max-lease-time 7200;
min-lease-time 120;
}
# service isc-dhcp-server restart
Em outra máquina abra o arquivo de configuração de rede e configure a interface para pegar IP via DHCP .
# vim /etc/network/interfaces
auto eth0
iface eth0 inet dhcp
# service networking restart