>> спасибо за пример конфига, но меня интересует, как мне узнать, что получает
>> dhdcpd в опции 82
>Agent-Information Option 82, length 6:
> Circuit-ID SubOption 1, length 1: 0
> Remote-ID SubOption 2, length 1: 0это он и получает, только затея с нулями, извините, какая-то дурацкая
>> конфиг:
ddns-update-style interim;
default-lease-time 3600;
max-lease-time 7200;
authoritative;
log-facility local7;
ignore client-updates;
log(info, "***");
if exists agent.circuit-id {
log( info,concat("*Leased ",binary-to-ascii(10,8,".",leased-address)," (with opt82)") );
log( info,concat("*Remote-ID: ",binary-to-ascii(16,8,":",substring(option agent.remote-id,2,6))) );
log( info,concat("*Port: ",binary-to-ascii(10,8,"",suffix(option agent.circuit-id,1))) );
} else {
log( info,concat("*Leased ",binary-to-ascii(10,8,".",leased-address)," (without opt82)") );
}
log(info, "***");
>> дамп:
20:29:01.729003 IP (tos 0x0, ttl 128, id 22004, offset 0, flags [none], proto UDP (17), length 365)
0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 48:5b:39:7b:db:41, length 337, xid 0xd947daeb, Flags [none] (0x0000)
Client-Ethernet-Address 48:5b:39:7b:db:41
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: Request
Client-ID Option 61, length 7: ether 48:5b:39:7b:db:41
Requested-IP Option 50, length 4: 192.168.100.130
Hostname Option 12, length 8: "admin-M-^OM-^J"
FQDN Option 81, length 11: "admin-M-^OM-^J"
Vendor-Class Option 60, length 8: "MSFT 5.0"
Parameter-Request Option 55, length 12:
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
Agent-Information Option 82, length 29:
Circuit-ID SubOption 1, length 19: Vlan100+Ethernet1/1
Remote-ID SubOption 2, length 6: 250-25
END Option 255, length 0
20:29:01.738108 IP (tos 0x10, ttl 128, id 0, offset 0, flags [none], proto UDP (17), length 363)
192.168.100.2.67 > 192.168.100.130.68: [udp sum ok] BOOTP/DHCP, Reply, length 335, xid 0xd947daeb, Flags [none] (0x0000)
Your-IP 192.168.100.130
Client-Ethernet-Address 48:5b:39:7b:db:41
Vendor-rfc1048 Extensions
Magic Cookie 0x63825363
DHCP-Message Option 53, length 1: ACK
Server-ID Option 54, length 4: 192.168.100.2
Lease-Time Option 51, length 4: 3600
Subnet-Mask Option 1, length 4: 255.255.255.0
Domain-Name Option 15, length 15: "dns.here"
Default-Gateway Option 3, length 4: 192.168.100.1
Domain-Name-Server Option 6, length 4: 192.168.100.2
FQDN Option 81, length 11: 255/255 "admin-M-^OM-^J"
Agent-Information Option 82, length 29:
Circuit-ID SubOption 1, length 19: Vlan100+Ethernet1/1
Remote-ID SubOption 2, length 6: 250-25
END Option 255, length 0
>> и что вас:
Client-ID Option 61, length 7: ether b8:a3:86:14:1d:c8
>> а в логах:
DHCPDISCOVER from b8:a3:86:14:1d:c8 via em1: network test: no free leases