Ставил N+ по ману.
Столкнулся с тем, что дхцп не видит "option 82".
При установке по ману, дхцп собирается без "USE_SOCKETS".
Кто подскажет, нужно пересобирать дхцп с "USE_SOCKETS" или нет.
Или проблема в другом?
Настройки свича:DES-3526:admin#show dhcp_relay
Command: show dhcp_relay
DHCP/BOOTP Relay Status : Enabled
DHCP/BOOTP Hops Count Limit : 16
DHCP/BOOTP Relay Time Threshold : 0
DHCP Relay Agent Information Option 82 State : Enabled
DHCP Relay Agent Information Option 82 Check : Disabled
DHCP Relay Agent Information Option 82 Policy : Replace
Interface Server 1 Server 2 Server 3 Server 4
------------ --------------- --------------- --------------- --------------
System 10.90.90.200
tcpdump15:29:29.508748 IP (tos 0x0, ttl 128, id 5964, offset 0, flags [none], proto UDP (17), length 338)
10.90.90.117.68 > 10.90.90.200.67: [udp sum ok] BOOTP/DHCP, Request from 00:1e:8c:ca:83:12, length 310, hops 1, xid 0x3efff0eb, Flags [none] (0x0000)
Client-IP 91.214.245.174
Gateway-IP 10.90.90.117
Client-Ethernet-Address 00:1e:8c:ca:83:12
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Inform
Client-ID Option 61, length 7: ether 00:1e:8c:ca:83:12
Hostname Option 12, length 10: "admin-nout"
Vendor-Class Option 60, length 8: "MSFT 5.0"
Parameter-Request Option 55, length 13:
Subnet-Mask, Domain-Name, Default-Gateway, Domain-Name-Server
Netbios-Name-Server, Netbios-Node, Netbios-Scope, Router-Discovery
Static-Route, Classless-Static-Route, Classless-Static-Route-Microsoft, Vendor-Option
Option 252
Agent-Information Option 82, length 18:
Circuit-ID SubOption 1, length 6: ^@^D^@^A^@^B
Remote-ID SubOption 2, length 8: ^@^F^@^^XM-^^M-^AM-)
END Option 255, length 0
dhcpd.conf
.......
on commit {
<------>set ClientIP = binary-to-ascii(10, 8, ".", leased-address);
<------>set ClientMac = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
<------>set SwitchMac = "";
<------>set SwitchPort ="";
<------>log(info, "**on_commit**");
<------>if exists agent.circuit-id
<------>{
<------>log(info, "**log**");
<------> 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)));
<------>}
<------>if exists agent.circuit-id
<------>{
<------>log(info, "**assign**");
<------> set SwitchMac = binary-to-ascii(16, 8, ":", option agent.remote-id);
<------> set SwitchPort = binary-to-ascii(10, 8, ":", suffix(option agent.circuit-id, 1));
<------>}
<------>execute("/usr/bin/perl", "/usr/local/nodeny/modules/dhcp/events.pl", "commit", ClientIP, ClientMac, SwitchMac, SwitchPort);
}
.....
dhcpd.logDec 6 15:29:26 nodeny dhcpd: **on_commit**
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[0] = /usr/bin/perl
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[1] = /usr/local/nodeny/modules/dhcp/events.pl
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[2] = commit
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[3] = 91.214.245.174
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[4] = 0:1e:8c:ca:83:12
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[5] =
Dec 6 15:29:26 nodeny dhcpd: execute_statement argv[6] =
Dec 6 15:29:26 nodeny dhcpd: DHCPREQUEST for 91.214.245.174 from 00:1e:8c:ca:83:12 (admin-nout) via bce0
Dec 6 15:29:26 nodeny dhcpd: DHCPACK on 91.214.245.174 to 00:1e:8c:ca:83:12 (admin-nout) via bce0
Dec 6 15:29:26 nodeny dhcpd: DHCPREQUEST for 91.214.245.174 from 00:1e:8c:ca:83:12 (admin-nout) via 10.90.90.117: ignored (not authoritative).
Dec 6 15:29:29 nodeny dhcpd: DHCPINFORM from 91.214.245.174 via bce0: not authoritative for subnet 91.214.245.128
Dec 6 15:29:29 nodeny dhcpd: DHCPINFORM from 91.214.245.174 via 10.90.90.117: not authoritative for subnet 91.214.245.128