
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);
}
Cirurgia para acelerar o openSUSE em HD externo via USB
Void Server como Domain Control
Modo Simples de Baixar e Usar o bash-completion
Monitorando o Preço do Bitcoin ou sua Cripto Favorita em Tempo Real com um Widget Flutuante
Atualizar Linux Mint 22.2 para 22.3 beta
Jogar games da Battle.net no Linux com Faugus Launcher
Como fazer a Instalação de aplicativos para acesso remoto ao Linux
Duas Pasta Pessoal Aparecendo no Ubuntu 24.04.3 LTS (42)
Assisti Avatar 3: Fogo e Cinzas (1)
Conky, alerta de temperatura alta (7)









