
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);
}
KDE Plasma - porque pode ser a melhor opção de interface gráfica
Gentoo: detectando impressoras de rede e como fixar uma impressora por IP
Como o GNOME conseguiu o feito de ser preterido por outras interfaces gráficas
Por que sua empresa precisa de uma PKI (e como automatizar EMISSÕES de certificados via Web API)
Instalando NoMachine no Gentoo com Systemd (acesso Remoto em LAN)
Gentoo: Trocando wpa_supplicant pelo iwd no NetworkManager (Systemd)
Instalar Linux em notebook Sony Vaio VPCEG13EB (10)
Vou destruir sua infância:) (6)
Quando vocês pararam de testar distros? (24)









