DHCPv6 and on_commit etc events
perl-list
perl-list at network1.net
Fri Oct 30 14:15:52 UTC 2015
ISC DHCP version: 4.3.3
I need some help in finding information about what sort of options are available in in on_ events in DHCPv6. I can't seem to find any man pages or so on that describe what can be logged with these events (on commit, on expiry, on release). I have things being logged for DHCPv4 like so:
on commit {
log( error,
concat( "LEASED,",
"ip,", binary-to-ascii (10, 8, ".", leased-address),",",
"time,",binary-to-ascii(10,32,"",encode-int (lease-time,32)),",",
"hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))
)
);
}
on expiry {
log( error,
concat( "LEASEEXPIRY,",
"ip,", binary-to-ascii (10, 8, ".", leased-address)
)
);
}
on release {
log( error,
concat( "RELEASED,",
"ip,", binary-to-ascii (10, 8, ".", leased-address),",",
"hardware,",binary-to-ascii(16,8,":",substring(hardware,1,7))
)
);
}
Would like to do something similar in DHCPv6. Have begun testing with on commit. Apparently the same sorts of data are not available as the same on commit { } directive from above produces these log messages:
Oct 30 13:58:45 DHCPserver dhcpd: data: "leased-address" configuration directive: there is no lease associated with this client.
Oct 30 13:58:45 DHCPserver dhcpd: data: leased_lease: not available
Oct 30 13:58:45 DHCPserver dhcpd: data: hardware: no raw packet or lease is available
I realize the hardware address is probably not available as these packets are being relayed from a router that does not support RFC 6939 (are there any that do?).
Mainly, I'd like to see a man page or some sort of document that describes what IS available ... or some config I could drop in my dhcpd.conf that would log what is available or something... any ideas?
More information about the dhcp-users
mailing list