I ran the 'odhcp6c' by hand from the command line, using the same
arguments as I saw it running with when it was started for me by the
system. Here's the output:
root@gw:~# /usr/sbin/odhcp6c -s/lib/ipv6/dhcpv6.sh -P64 eth0
odhcp6c[16571]: Sending SOLICIT (timeout 4294967295s)
odhcp6c[16571]: Got a valid reply after 38ms
odhcp6c[16571]: Got a valid reply after 95ms
odhcp6c[16571]: Sending REQUEST (timeout 4294967295s)
odhcp6c[16571]: Got a valid reply after 38ms
odhcp6c[16571]: assigning address 2001:558:6008:18:1c3a:2a5b:1fd3:9438/128 for iface 2: Success
odhcp6c[16571]: State for eth0 changed to bound
odhcp6c[16571]: Sending <POLL> (timeout 86400s)
sh: missing ]
/lib/ipv6/dhcpv6.sh: line 33: bound: not found
Here's the tcpdump command and output from that:
tcpdump -i eth0 -n -l -vv '(ip6 net fe80::/10 && udp && portrange 546-547)'
15:48:57.821012 IP6 (hlim 1, next-header UDP (17) payload length: 128) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=1f0c78 (elapsed-time 0) (option-request DNS-server DNS-search-list) (client-ID hwaddr type 1 00156dc5c200) (reconfigure-accept) (Client-FQDN) (IA_NA IAID:1 T1:0 T2:0) (IA_PD IAID:1 T1:0 T2:0) (IA_PD-prefix ::/64 pltime:0 vltime:0))
15:48:57.857194 IP6 (hlim 64, next-header UDP (17) payload length: 178) fe80::201:5cff:fe22:5d01.547 > fe80::215:6dff:fec5:c200.546: [udp sum ok] dhcp6 advertise (xid=1f0c78 (client-ID hwaddr type 1 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (IA_NA IAID:1 T1:172800 T2:276480 (IA_ADDR 2001:558:6008:18:1c3a:2a5b:1fd3:9438 pltime:345600 vltime:345600)[|dhcp6ext]) (IA_PD IAID:1 T1:172800 T2:276480 (IA_PD-prefix 2601:7:6c00:48::/64 pltime:345600 vltime:345600) (reconfigure-accept) (preference 255)[|dhcp6ext]) (reconfigure-accept) (preference 255) (DNS-server 2001:558:feed::2 2001:558:feed::1))
15:48:57.914642 IP6 (hlim 64, next-header UDP (17) payload length: 178) fe80::201:5cff:fe22:5d01.547 > fe80::215:6dff:fec5:c200.546: [udp sum ok] dhcp6 advertise (xid=1f0c78 (client-ID hwaddr type 1 00156dc5c200) (server-ID hwaddr/time type 1 time 390983871 14feb5d5aa6c) (IA_NA IAID:1 T1:172800 T2:276480 (IA_ADDR 2001:558:6008:18:893e:d0f:d887:850 pltime:345600 vltime:345600)[|dhcp6ext]) (IA_PD IAID:1 T1:172800 T2:276480 (IA_PD-prefix 2601:7:6c40:14::/64 pltime:345600 vltime:345600) (reconfigure-accept) (preference 0)[|dhcp6ext]) (reconfigure-accept) (preference 0) (DNS-server 2001:558:feed::2 2001:558:feed::1))
15:48:58.759181 IP6 (hlim 1, next-header UDP (17) payload length: 142) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 request (xid=e88c22 (elapsed-time 0) (option-request DNS-server DNS-search-list) (client-ID hwaddr type 1 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (Client-FQDN) (IA_NA IAID:1 T1:0 T2:0) (IA_PD IAID:1 T1:0 T2:0) (IA_PD-prefix ::/64 pltime:0 vltime:0))
15:48:58.795692 IP6 (hlim 64, next-header UDP (17) payload length: 169) fe80::201:5cff:fe22:5d01.547 > fe80::215:6dff:fec5:c200.546: [udp sum ok] dhcp6 reply (xid=e88c22 (client-ID hwaddr type 1 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (IA_NA IAID:1 T1:172800 T2:276480 (IA_ADDR 2001:558:6008:18:1c3a:2a5b:1fd3:9438 pltime:345600 vltime:345600)[|dhcp6ext]) (IA_PD IAID:1 T1:172799 T2:276479 (IA_PD-prefix 2601:7:6c00:48::/64 pltime:345599 vltime:345599)[|dhcp6ext]) (DNS-server 2001:558:feed::2 2001:558:feed::1))
... and the result:
ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 5
inet6 2001:558:6008:18:1c3a:2a5b:1fd3:9438/128 scope global dynamic
valid_lft 345569sec preferred_lft 345569sec
inet6 fe80::215:6dff:fec5:c200/64 scope link
valid_lft forever preferred_lft forever
After killing that, and running "/etc/init.d/dhclient6 start" to
launch the ISC dhclient, using the defaults straight from it's freshly
installed package:
tcpdump -i eth0 -n -l -vv '(ip6 net fe80::/10 && udp && portrange 546-547)'
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:05:13.553193 IP6 (hlim 1, next-header UDP (17) payload length: 62) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=5f36e6 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (option-request DNS-server DNS-search-list opt_54) (elapsed-time 0) (IA_NA IAID:1841676800 T1:3600 T2:5400))
16:05:14.644950 IP6 (hlim 1, next-header UDP (17) payload length: 62) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=5f36e6 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (option-request DNS-server DNS-search-list opt_54) (elapsed-time 109) (IA_NA IAID:1841676800 T1:3600 T2:5400))
16:05:16.907833 IP6 (hlim 1, next-header UDP (17) payload length: 62) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 solicit (xid=5f36e6 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (option-request DNS-server DNS-search-list opt_54) (elapsed-time 335) (IA_NA IAID:1841676800 T1:3600 T2:5400))
16:05:16.949593 IP6 (hlim 64, next-header UDP (17) payload length: 133) fe80::201:5cff:fe22:5d01.547 > fe80::215:6dff:fec5:c200.546: [udp sum ok] dhcp6 advertise (xid=5f36e6 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (IA_NA IAID:1841676800 T1:172800 T2:276480 (IA_ADDR 2001:558:6008:18:4dc4:a4c4:239e:9cfd pltime:345600 vltime:345600) (preference 255)[|dhcp6ext]) (preference 255) (DNS-server 2001:558:feed::2 2001:558:feed::1))
16:05:16.951789 IP6 (hlim 1, next-header UDP (17) payload length: 108) fe80::215:6dff:fec5:c200.546 > ff02::1:2.547: [udp sum ok] dhcp6 request (xid=5b1da7 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (option-request DNS-server DNS-search-list opt_54) (elapsed-time 0) (IA_NA IAID:1841676800 T1:3600 T2:5400 (IA_ADDR 2001:558:6008:18:4dc4:a4c4:239e:9cfd pltime:7200 vltime:7500) (opt_0) (opt_0) (opt_0)))
16:05:17.000436 IP6 (hlim 64, next-header UDP (17) payload length: 128) fe80::201:5cff:fe22:5d01.547 > fe80::215:6dff:fec5:c200.546: [udp sum ok] dhcp6 reply (xid=5b1da7 (client-ID hwaddr/time type 1 time 410137513 00156dc5c200) (server-ID hwaddr/time type 1 time 390983873 14feb5d5b44d) (IA_NA IAID:1841676800 T1:172800 T2:276480 (IA_ADDR 2001:558:6008:18:4dc4:a4c4:239e:9cfd pltime:345600 vltime:345600)[|dhcp6ext]) (DNS-server 2001:558:feed::2 2001:558:feed::1))
ip -6 addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 5
inet6 2001:558:6008:18:46b:d462:a467:c5e9/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::215:6dff:fec5:c200/64 scope link
valid_lft forever preferred_lft forever