есть дхцп сервер(172.10.0.2) в подсети 172.10.0.0/28, есть циска 172.10.0.3, на циске поднят ip unnambered (работает), захотел попробовать выдавать ип по mac свича и порту . сеть управления свичами 172.18.2.0/24 настраиваю сервер
Код: Выделить всё
authoritative;
ddns-update-style none;
log-facility local7;
always-broadcast on;
if exists agent.circuit-id {
log(info, concat("Lease"," IP ",binary-to-ascii(10, 8,".",leased-address),
" MAC ",binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)),
" Port ",binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1))
));
}
shared-network tests{
subnet 172.10.0.0 netmask 255.255.255.0 {
}
subnet 172.18.2.0 netmask 255.255.255.0{
}
subnet 192.168.27.0 netmask 255.255.255.0 {
option domain-name-servers 8.8.4.4, 8.8.8.8;
option subnet-mask 255.255.255.0;
option routers 192.168.27.1;
max-lease-time 1296000;
default-lease-time 604800;
include "/etc/dhcp/192.168.27.0.conf";
}
}
конфиг 27 подсети
class "sw_192.168.27.2" {
match if (
binary-to-ascii(16, 8, ":", suffix(option agent.remote-id, 6)) = "e8:cc:18:ce:dc:0"
and
binary-to-ascii(10, 8, "", suffix(option agent.circuit-id, 1)) = "2"
);
}
pool {
range 192.168.27.2;
allow members of "sw_192.168.27.2";
}
test dhcpd: DHCPDISCOVER from e4:be:ed:8b:00:4e via 192.168.27.1: network tests no free lease
?Где я что делаю не так?