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 ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Erro ao fazer remaster usando Penguin eggs (1)
Warcraft II Remastered no Linux? (0)
queria saber como instalar o android power tools igual ao winux no lin... (7)