dhclient -6 and dhclient-enter-hooks
Chris Verges
chrisv at cyberswitching.com
Wed Aug 11 01:04:33 UTC 2010
Hi folks,
I'm attempting to use "dhclient -6" on an embedded Linux system to
obtain a DHCPv6 address from a server. I've verified that the server is
reachable and provides the correct IPv6 address information using a Mac
OS X laptop.
I overrode the default dhclient-enter-hooks on the system to store the
IP address information into a database log. In addition, I've added a
debug statement to constantly append a timestamp and the $reason to
/var/log/dhclient-persistent.log. I can verify that
dhclient-enter-hooks is being called for PREINIT6 by looking at the
logs. Example output:
# ifconfig eth0 | grep -i inet6
inet6 addr: fe80::209:e6ff:feff:ff28/64 Scope:Link
# dhclient -6 -w -nw -pf /var/run/dhclient.pid eth0
# cat /var/log/dhclient-persistent.log
DHCP activity at Tue, 10 Aug 2010 17:15:04 -0700
Reason: PREINIT6
Upon running "dhclient -6", my system will eventually be configured with
an IPv6 global address as handed out by the DHCPv6 server. However, I
do not see any additional $reasons getting appended to the log file.
This is leading me to conclude that the dhclient-enter-hooks script is
not being called after an IPv6 address is configured, which is puzzling.
# ifconfig eth0 | grep -i inet6
inet6 addr: fd45:feab:e2d:3:209:e6ff:feff:ff28/64 Scope:Global
inet6 addr: fe80::209:e6ff:feff:ff28/64 Scope:Link
# cat /var/log/dhclient-persistent.log
DHCP activity at Tue, 10 Aug 2010 17:15:04 -0700
Reason: PREINIT6
All that's showing up in /var/log/messages is a lot of "XMT: Solicit on
eth0, interval XXXX ms." But as you can see from the output, a global
address is being assigned to the interface. I expected to see an
additional message appended to the dhclient-persistent.log file saying
"Reason: BOUND6."
Any ideas? I'm at a loss for where to even check next.
Thanks for the help!
Chris
More information about the dhcp-users
mailing list