Escolar Documentos
Profissional Documentos
Cultura Documentos
Corporate
Mdulo 07 DHCP Server
2 editar /etc/default/isc-dhcp-server:
5 editar os trs arquivos (ex.: lan1.conf):
- inserir as interfaces para responder:
subnet 192.168.10.0 netmask 255.255.255.0 {
INTERFACES=eth1 eth2 eth3
interface eth1;
range 192.168.10.30 192.168.10.150;
3 modificar /etc/dhcp/dhcpd.conf:
option routers 192.168.10.1;
ddns-update-style none;
option domain-name-servers 8.8.8.8,8.8.4.4;
default-lease-time 600;
option broadcast-address 192.168.10.255;
max-lease-time 7200;
}
log-facility local7;
include "/etc/dhcp/confs/lan1.conf";
6 reiniciar o servio de dhcp:
include "/etc/dhcp/confs/lan2.conf";
service isc-dhcp-server restart
include "/etc/dhcp/confs/dmz.conf";
ou
systemctl restart isc-dhcp-server
MAC-Address: Class:
1 inserir o MAC e IP no arquivo (lan1.conf): 1 criar a classe no arquivo (lan1.conf):
host PC_A { class "net_internal" {
hardware ethernet 00:03:11:11:11:11; match if (substring(hardware, 1, 2) = 00:01) or
fixed-address 192.168.10.10; (substring(hardware, 1, 2) = 00:02) or
} (substring(hardware, 1, 2) = 00:03);
}
2 reiniciar o servio dhcp:
service isc-dhcp-server restart 2 autorizar a classe 'net_internal' na subnet :
ou subnet 192.168.10.0 netmask 255.255.255.0 {
systemctl restart isc-dhcp-server interface eth1;
allow members of "net_internal";
deny unknown-clients;
..