сменил конфиг dhcpd.conf
Код:
option domain-name "kopeika.uah";
option domain-name-servers 10.45.100.1, 91.202.128.100, 91.202.129.100;
option netbios-name-servers 10.45.100.1;
option netbios-node-type 8;
option netbios-scope "100mf";
default-lease-time 3600;
max-lease-time 7200;
authoritative;
ddns-update-style ad-hoc;
#ddns-update-style interim;
#ddns-domainname "kopeika.uah.";
log-facility local7;
class "1" {match if substring(option agent.circuit-id,2,2) = 0:2;}
class "2" {match if substring(option agent.circuit-id,2,2) = 0:3;}
class "3" {match if substring(option agent.circuit-id,2,2) = 0:4;}
class "4" {match if substring(option agent.circuit-id,2,2) = 0:5;}
class "5" {match if substring(option agent.circuit-id,2,2) = 0:6;}
class "6" {match if substring(option agent.circuit-id,2,2) = 0:7;}
class "7" {match if substring(option agent.circuit-id,2,2) = 0:8;}
class "8" {match if substring(option agent.circuit-id,2,2) = 0:9;}
class "9" {match if substring(option agent.circuit-id,2,2) = 0:0A;}
class "10" {match if substring(option agent.circuit-id,2,2) = 0:0B;}
class "11" {match if substring(option agent.circuit-id,2,2) = 0:0C;}
class "12" {match if substring(option agent.circuit-id,2,2) = 0:0D;}
class "13" {match if substring(option agent.circuit-id,2,2) = 0:0E;}
class "14" {match if substring(option agent.circuit-id,2,2) = 0:0F;}
class "15" {match if substring(option agent.circuit-id,2,2) = 0:10;}
subnet 10.45.96.0 netmask 255.255.240.0 { option routers 10.45.100.1; option broadcast-address 10.45.111.255;
pool { allow unknown-clients; range 10.45.101.241 10.45.101.247;}
pool { allow members of "1"; range 10.45.101.11 10.45.101.17;}
pool { allow members of "2"; range 10.45.101.21 10.45.101.27;}
pool { allow members of "3"; range 10.45.101.31 10.45.101.37;}
pool { allow members of "4"; range 10.45.101.41 10.45.101.47;}
pool { allow members of "5"; range 10.45.101.51 10.45.101.57;}
pool { allow members of "6"; range 10.45.101.61 10.45.101.67;}
pool { allow members of "7"; range 10.45.101.71 10.45.101.77;}
pool { allow members of "8"; range 10.45.101.81 10.45.101.87;}
pool { allow members of "9"; range 10.45.101.91 10.45.101.97;}
pool { allow members of "10"; range 10.45.101.101 10.45.101.107;}
pool { allow members of "11"; range 10.45.101.111 10.45.101.117;}
pool { allow members of "12"; range 10.45.101.121 10.45.101.127;}
pool { allow members of "13"; range 10.45.101.131 10.45.101.137;}
pool { allow members of "14"; range 10.45.101.141 10.45.101.147;}
pool { allow members of "15"; range 10.45.101.151 10.45.101.157;}
}
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)));
}
Всёравно ничего не работает... Уже хочу убитб себя об стену...
При попчытке получит адрес, в логах появляетс такое:
Код:
May 4 02:43:43 Atlas dhcpd: Lease for 10.45.101.241 is connected to interface 0/14 (add 1 to port number!), VLAN 1 on switch 0:1b:11:21:7c:51
May 4 02:43:43 Atlas dhcpd: Lease for 10.45.101.241 raw option-82 info is CID: 0.4.0.1.0.14 AID: 0.6.0.1b.11.21.7c.51
May 4 02:43:43 Atlas named[8476]: client 10.45.100.1#32773: update 'kopeika.uah/IN' denied
May 4 02:43:43 Atlas dhcpd: Unable to add forward map from Synapse.kopeika.uah. to 10.45.101.241: timed out
May 4 02:43:43 Atlas dhcpd: DHCPREQUEST for 10.45.101.241 from 00:e0:91:10:e5:f2 (Synapse) via eth0
May 4 02:43:43 Atlas dhcpd: DHCPACK on 10.45.101.241 to 00:e0:91:10:e5:f2 (Synapse) via eth0
May 4 02:43:43 Atlas dhcpd: Lease for 10.45.101.241 is connected to interface 0/14 (add 1 to port number!), VLAN 1 on switch 0:1b:11:21:7c:51
May 4 02:43:43 Atlas dhcpd: Lease for 10.45.101.241 raw option-82 info is CID: 0.4.0.1.0.14 AID: 0.6.0.1b.11.21.7c.51
May 4 02:43:43 Atlas named[8476]: client 10.45.100.1#32773: update 'kopeika.uah/IN' denied
May 4 02:43:43 Atlas dhcpd: Unable to add forward map from Synapse.kopeika.uah. to 10.45.101.241: timed out
May 4 02:43:43 Atlas dhcpd: DHCPREQUEST for 10.45.101.241 from 00:e0:91:10:e5:f2 (Synapse) via 10.45.101.1
May 4 02:43:43 Atlas dhcpd: DHCPACK on 10.45.101.241 to 00:e0:91:10:e5:f2 (Synapse) via 10.45.101.1
И ещё == то логирует CID&AID то нет, такое ощущение, что свитч вообще их иногда не добавляет...
Ну ясно же видно, что я сижу на 14 порту! Почему же тогда не получаю адрес их нужного пула? Точнее даже не так, а "почему не віполняется правило в классе для 14 порта"???