Добрый день,
Уже перепробовал много вариантов, но выдача нужного IP с привязкой к порту комутатора DES-3526 так и не заработала.
Вот лог DHCP сервера:
DHCPDISCOVER from 12:12:12:12:12:12 via vlan601: network test: no free leases
Lease for 10.80.70.241 is connected to interface0/2 (add 1 to port number!), VLAN 601 on switch 0:1c:f0:17:ae:dc
Lease for 10.80.70.241 raw option-82 info is CID: 0.4.2.89.0.2 AID: 1.6.0.1c.f0.17.ae.dc port: 2;
DHCPDISCOVER from 12:12:12:12:12:12 via vlan601
DHCPOFFER on 10.80.70.241 to 12:12:12:12:12:12 (COMP) via vlan601
DHCPREQUEST for 10.80.70.241 (10.80.70.1) from 12:12:12:12:12:12 via vlan601: lease 10.80.70.241 unavailable.
DHCPNAK on 10.80.70.241 to 12:12:12:12:12:12 via vlan601
Конфиг isc-dhcp:
lease-file-name "/var/db/dhcpd/dhcpd.leases";
default-lease-time 600;
max-lease-time 7200;
authoritative;
ddns-update-style none;
log-facility local7;
class "port-2"
{
match if binary-to-ascii (10, 8, "", suffix( option agent.circuit-id, 1)) = "2";
}
shared-network test {
subnet 10.80.70.0 netmask 255.255.255.0 {
}
pool { range 10.80.70.241; allow members of "port-2";
}
}
if exists agent.circuit-id
{
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " is connected to interface", binary-to-ascii (10, 8, "/", suffix ( option agent.circuit-id, 2)), " (add 1 to port number!), VLAN ", binary-to-ascii (10, 16, "", substring( option agent.circuit-id, 2, 2)), " on switch ", binary-to-ascii(16, 8, ":", substring( option agent.remote-id, 2, 6))));
log ( info, concat( "Lease for ", binary-to-ascii (10, 8, ".", leased-address), " raw option-82 info is CID: ", binary-to-ascii (10, 8, ".", option agent.circuit-id), " AID: ", binary-to-ascii(16, 8, ".", option agent.remote-id), " port: ", binary-to-ascii (10, 8, "", suffix( option agent.circuit-id, 1)), ";"));
}
Помогите плз, а то не знаю уже куда копать, в гугле встречал аналогичные проблемы, но конкретных ответов так и не увидел.
|