
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);
}
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
IA Turbina o Desktop Linux enquanto distros renovam forças
Como extrair chaves TOTP 2FA a partir de QRCODE (Google Authenticator)
Como realizar um ataque de força bruta para desobrir senhas?
Como usar Gpaste no ambiente Cinnamon
Atualizando o Fedora 42 para 43
É normal não gostar de KDE? (15)
Erro ao instalar programa, "você tem pacotes retidos quebrados&qu... (13)









