Package: wide-dhcpv6-client
Version: 20080615-7
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm currently testing dhcp6c on a ppp link, using it for PD while configuring
the link itself using RA.

I was hoping that I could have dhcp6c running from boot, using the provided
/etc/wide-dhcpv6/dhcp6c-ifupdown script to add/remove the prefix whenever the
ppp link went up/down.  However this fails because dhcp6c doesn't rescan the
interface list.

Starting out with the ppp interface as #5 and dhcp6c running OK:

ipv6-pppoe-1:/tmp# ip link show dev ppp0
5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast 
state UNKNOWN qlen 3
    link/ppp 

ipv6-pppoe-1:/tmp# ps aux|grep dhcp6
root      2029  0.0  0.1   3928   552 ?        Ss   13:42   0:00 dhcp6c -D -P 
default ppp0


Then stopping the interface gives the expected result:

ipv6-pppoe-1:/tmp# dhcp6ctl stop interface ppp0

Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_ctl_acceptcommand: accept 
control connection from ::1
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_ifctl: stop interface ppp0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: release_ia: release an IA: PD-0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_reset_timer: reset a timer on 
ppp0, state=RELEASE, timeo=0, retrans=902
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_send: a new XID (a2b2a6) is 
generated
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set client ID (len 14)
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set server ID (len 26)
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set elapsed time (len 2)
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: copyout_option: set IA_PD prefix
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: copyout_option: set IA_PD
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_send: send release to 
ff02::1:2%ppp0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: remove_ia: remove an IA: PD-0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: remove_siteprefix: remove a site 
prefix 2001:4620:9::/48
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: ifaddrconf: remove an address 
2001:4620:9:0:5054:6ff:fe66:0/64 on eth0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_reset_timer: reset a timer on 
ppp0, state=INIT, timeo=0, retrans=329
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_remove_event: removing an 
event on ppp0, state=INIT
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_recv: receive reply from 
fe80::90:1a00:141:70f7%ppp0 on ppp0
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_get_options: get DHCP option 
server ID, len 26
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]:   DUID: 
00:02:00:00:0a:4c:45:52:58:2d:33:31:30:2f:37:34:35:41:43:33:33:45:58:32:2f:01
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_get_options: get DHCP option 
client ID, len 14
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]:   DUID: 
00:01:00:01:12:97:cf:82:52:54:06:66:00:00
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_get_options: get DHCP option 
status code, len 2
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]:   status code: success
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_recvreply: status code: 
success
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_recvreply: executes 
/etc/wide-dhcpv6/dhcp6c-script.test
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_script: script 
"/etc/wide-dhcpv6/dhcp6c-script.test" terminated
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_remove_event: removing an 
event on ppp0, state=RELEASE
Dec 21 14:09:53 ipv6-pppoe-1 dhcp6c[2029]: client6_recvreply: got an expected 
reply, sleeping.


Taking ppp0 down and up again results in a renumbering from interface #5 to #6:

ipv6-pppoe-1:/tmp# ifdown ppp0
ipv6-pppoe-1:/tmp# ifup ppp0 
ipv6-pppoe-1:/tmp# ip link show dev ppp0
6: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1452 qdisc pfifo_fast 
state UNKNOWN qlen 3
    link/ppp 


Trying to use the running dhcp6c will now fail:

ipv6-pppoe-1:/tmp# dhcp6ctl start interface ppp0

Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_ctl_acceptcommand: accept 
control connection from ::1
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: client6_ifctl: start interface ppp0
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_reset_timer: reset a timer on 
ppp0, state=INIT, timeo=0, retrans=279
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: client6_send: a new XID (6a183b) is 
generated
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set client ID (len 14)
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set elapsed time (len 2)
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: copyout_option: set IA_PD
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: client6_send: transmit failed: 
Network is unreachable
Dec 21 14:10:41 ipv6-pppoe-1 dhcp6c[2029]: dhcp6_reset_timer: reset a timer on 
ppp0, state=SOLICIT, timeo=0, retrans=1097
Dec 21 14:10:43 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set client ID (len 14)
Dec 21 14:10:43 ipv6-pppoe-1 dhcp6c[2029]: copy_option: set elapsed time (len 2)
Dec 21 14:10:43 ipv6-pppoe-1 dhcp6c[2029]: copyout_option: set IA_PD
Dec 21 14:10:43 ipv6-pppoe-1 dhcp6c[2029]: client6_send: transmit failed: 
Network is unreachable


At this point it is necessary to stop and restart dhcp6c to make it work again.
This bug could probably be worked around in the /etc/wide-dhcpv6/dhcp6c-ifupdown
script by always stopping and starting the client on any interface change.  But
I guess it really should be fixed in the interface scanning code.



Bjørn


- -- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (700, 'stable'), (650, 'testing'), (600, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages wide-dhcpv6-client depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  lsb-base                      3.2-20     Linux Standard Base 3.2 init scrip
ii  sharutils                     1:4.6.3-1  shar, unshar, uuencode, uudecode

wide-dhcpv6-client recommends no packages.

wide-dhcpv6-client suggests no packages.

- -- debconf information:
* wide-dhcpv6-client/interfaces:
* wide-dhcpv6-client/config_warn:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksvdwkACgkQ10rqkowbIsnVlACffWypDTDjTQMZGDRXhKm1CU/Y
ihUAoI1jKWtPoB9xZi9Q2VB3Oj3iEVmH
=k3tt
-----END PGP SIGNATURE-----



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to