Enviado em 19/12/2015 - 17:45h
Boa tarde amigos.[root@fw ~]# cat /etc/dhcp/dhcpd.conf
authoritative;
ddns-update-style none;
class "cliente-din" {
match hardware;
}
class "cliente-fix" {
match hardware;
}
class "cliente-blq" {
match hardware;
}
include "/etc/dhcp/macs/cliente-din";
include "/etc/dhcp/macs/cliente-fix";
include "/etc/dhcp/macs/cliente-blq";
shared-network VGISP {
subnet 172.16.1.0 netmask 255.255.255.0 {
default-lease-time 3600;
max-lease-time 14400;
option routers 172.16.1.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.1.255;
option domain-name-servers 172.16.251.1, 172.16.252.1;
pool {
#allow members of "cliente-din";
range dynamic-bootp 172.16.1.2 172.16.1.200;
}
pool {
#allow members of "cliente-fix";
range dynamic-bootp 172.16.1.201 172.16.1.254;
}
}
group {
include "/etc/dhcp/macs/cliente-ips";
}
subnet 172.16.150.0 netmask 255.255.255.0 {
default-lease-time 600;
max-lease-time 600;
option routers 172.16.150.1;
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.150.255;
option domain-name-servers 172.16.251.1, 172.16.252.1;
pool {
#allow members of "cliente-blq";
range dynamic-bootp 172.16.150.2 172.16.150.254;
}
}
}
on commit {
set ClienteIP = binary-to-ascii(10, 8, ".", leased-address);
set ClienteMac = concat (
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,1,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,2,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,3,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,4,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,5,1))),2), ":",
suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,6,1))),2)
);
execute("/scripts/dhcpAtribueIP", "commit", ClienteIP, ClienteMac);
}
on release {
execute("/scripts/dhcpAtribueIP", "release", ClienteIP, ClienteMac);
}
on expiry {
execute("/scripts/dhcpAtribueIP", "expiry", ClienteIP, ClienteMac);
}
Desktop Linux em alta: novos apps, distros e privacidade marcam o sábado
IA chega ao desktop e impulsiona produtividade no mundo Linux
Novos apps de produtividade, avanços em IA e distros em ebulição agitam o universo Linux
Desktop Linux ganha novos apps enquanto IA invade o noticiário
Blender 5.0 Beta, Firefox 144 e avanço da IA dominam o dia no mundo Linux
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Problema em SSD ao dar boot LinuxMint LMDE FAYE 64 (0)
Baixar jogos Independentes para Ubuntu [RESOLVIDO] (4)
PIP3 - erro ao instalar módulo do mariadb para o Python (1)
Linux x Plataformas de Trading - um problema (in-)solúvel? (4)