RENEW of one ipv6-interface fails

Klose, Dieter dieter.klose at ts.fujitsu.com
Wed Sep 12 15:18:35 UTC 2012


Hi,

we are using a SLES11 SP2 linux host with ISC DHCP Client 4.2.4-P1 serving 2 interfaces for ipv6. After reboot both interfaces get an ipv6-adress from dhcp-server, but renewing of the address only succeeds on interface eth1. 
Here is the log of interface eth0 which fails renewing, perhaps someone can see what is going wrong there:

****************
/sbin/dhclient-script
Mon Sep 10 16:32:53 CEST 2012
----------------
interface=eth0
reason=PREINIT6
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/sysconfig/network/scripts
pid=1883
PWD=/etc/sysconfig/network
SHLVL=1
_=/usr/bin/env
----------------
+ '[' -f /etc/dhclient6-enter-hooks ']'
+ case $dhclient in
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0
++ grep --no-filename '^[[:space:]]*STARTMODE=' 
++ /etc/sysconfig/network/ifcfg-eth0
+ eval 'STARTMODE='\''auto'\'''
++ STARTMODE=auto
++ read_cached_config_data startmode
++ touch /dev/.sysconfig/network/tmp/test local PFX test -n ''
++ : if-
++ '[' -r /dev/.sysconfig/network/if- ']'
+ tmp_startmode=
+ '[' -n '' ']'
+ case $reason in
+ '[' xauto '!=' xnfsroot ']'
+ /sbin/ip -6 addr flush dev eth0 scope global permanent /sbin/ip link 
+ set eth0 up sleep 1 exit_with_hooks 0 exit_status=0 '[' -f 
+ /etc/dhclient6-exit-hooks ']'
+ exit 0
****************
/sbin/dhclient-script
Mon Sep 10 16:32:55 CEST 2012
----------------
new_ip6_address=fd12::42:6938:d41c:ba38:34f0
interface=eth0
new_life_starts=1347287527
new_max_life=7200
new_starts=1347287527
reason=BOUND6
new_dhcp6_client_id=0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f
new_preferred_life=3600
new_iaid=3e:58:dd:4f
new_rebind=480
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/sysconfig/network/scripts
pid=1883
new_dhcp6_server_id=0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7
PWD=/etc/sysconfig/network
new_dhcp6_domain_search=ipv6net42.osd.abg.fsc.net.
new_renew=360
new_dhcp6_name_servers=fd12:0:0:42::1
new_dhcp6_status_code=success Address(es) renewed. Greetings from planet Earth
SHLVL=1
new_ip6_prefixlen=64
_=/usr/bin/env
----------------
+ '[' -f /etc/dhclient6-enter-hooks ']'
+ case $dhclient in
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0
++ grep --no-filename '^[[:space:]]*STARTMODE=' 
++ /etc/sysconfig/network/ifcfg-eth0
+ eval 'STARTMODE='\''auto'\'''
++ STARTMODE=auto
++ read_cached_config_data startmode
++ touch /dev/.sysconfig/network/tmp/test local PFX test -n ''
++ : if-
++ '[' -r /dev/.sysconfig/network/if- ']'
+ tmp_startmode=
+ '[' -n '' ']'
+ case $reason in
+ '[' x '!=' x -a x '!=' xfd12::42:6938:d41c:ba38:34f0 ']'
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0 write_cached_config_data 
+ dhcp6_state up eth0 touch /dev/.sysconfig/network/tmp/test local PFX 
+ FILE TMPFILE MODFILE test -n ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ TMPFILE=/dev/.sysconfig/network/tmp/if-eth0.2048.tmp
+ test -f /dev/.sysconfig/network/tmp/if-eth0.2048
+ cp /dev/.sysconfig/network/if-eth0 
+ /dev/.sysconfig/network/tmp/if-eth0.2048
+ FILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ touch /dev/.sysconfig/network/tmp/if-eth0.2048
+ IFS==
+ read a b
++ cat /dev/.sysconfig/network/tmp/if-eth0.2048
+ case $a in
+ echo config=eth0
+ IFS==
+ read a b
+ case $a in
+ echo status=connecting
+ IFS==
+ read a b
+ case $a in
+ echo primary=yes
+ IFS==
+ read a b
+ case $a in
+ echo hostname=crema42test
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_state=started
+ IFS==
+ read a b
+ case $a in
+ echo dhcp6_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ IFS==
+ read a b
+ '[' -n up ']'
+ echo dhcp6_state=up
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.2048.tmp ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.2048.tmp 
+ /dev/.sysconfig/network/tmp/if-eth0.2048
+ commit_cached_config_data eth0
+ touch /dev/.sysconfig/network/tmp/test local PFX FILE MODFILE test -n 
+ ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.2048 ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.2048 
+ /dev/.sysconfig/network/if-eth0 '[' xfd12::42:6938:d41c:ba38:34f0 '!=' x -a x64 '!=' x ']'
+ /sbin/ip addr add fd12::42:6938:d41c:ba38:34f0/64 dev eth0 scope 
+ global set_ipv6_routes
+ : TODO
+ netconfig_modify
+ test -x /sbin/netconfig -a -n eth0
+ /sbin/netconfig modify -s dhclient6 -i eth0 echo 
+ 'INTERFACE='\''eth0'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=DHCP6CID
+ '[' kDHCP6CID '!=' k ']'
+ echo 'DHCP6CID='\''0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=DNSSEARCH
+ '[' kDNSSEARCH '!=' k ']'
+ echo 'DNSSEARCH='\''ipv6net42.osd.abg.fsc.net.'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=DNSSERVERS
+ '[' kDNSSERVERS '!=' k ']'
+ echo 'DNSSERVERS='\''fd12:0:0:42::1'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=DHCP6SID
+ '[' kDHCP6SID '!=' k ']'
+ echo 'DHCP6SID='\''0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_dhcp6_status_code
+ '[' kdhclient6_dhcp6_status_code '!=' k ']'
+ echo 'dhclient6_dhcp6_status_code='\''success Address(es) renewed. Greetings from planet Earth'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_iaid
+ '[' kdhclient6_iaid '!=' k ']'
+ echo 'dhclient6_iaid='\''3e:58:dd:4f'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=IPADDR
+ '[' kIPADDR '!=' k ']'
+ echo 'IPADDR='\''fd12::42:6938:d41c:ba38:34f0'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=PREFIXLEN
+ '[' kPREFIXLEN '!=' k ']'
+ echo 'PREFIXLEN='\''64'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_life_starts
+ '[' kdhclient6_life_starts '!=' k ']'
+ echo 'dhclient6_life_starts='\''1347287527'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_max_life
+ '[' kdhclient6_max_life '!=' k ']'
+ echo 'dhclient6_max_life='\''7200'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_preferred_life
+ '[' kdhclient6_preferred_life '!=' k ']'
+ echo 'dhclient6_preferred_life='\''3600'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_rebind
+ '[' kdhclient6_rebind '!=' k ']'
+ echo 'dhclient6_rebind='\''480'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_renew
+ '[' kdhclient6_renew '!=' k ']'
+ echo 'dhclient6_renew='\''360'\'''
+ for v in '${!new_*}'
+ case $ipver in
+ case $v in
+ k=dhclient6_starts
+ '[' kdhclient6_starts '!=' k ']'
+ echo 'dhclient6_starts='\''1347287527'\'''
+ '[' x '!=' x -a x '!=' xfd12::42:6938:d41c:ba38:34f0 ']'
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0 /sbin/ifup eth0 -o dhcp
 Warning: daemon not running. ..failed
+ write_cached_config_data dhcp6_state complete eth0 touch 
+ /dev/.sysconfig/network/tmp/test local PFX FILE TMPFILE MODFILE test 
+ -n ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ TMPFILE=/dev/.sysconfig/network/tmp/if-eth0.2048.tmp
+ test -f /dev/.sysconfig/network/tmp/if-eth0.2048
+ cp /dev/.sysconfig/network/if-eth0 
+ /dev/.sysconfig/network/tmp/if-eth0.2048
+ FILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ touch /dev/.sysconfig/network/tmp/if-eth0.2048
+ IFS==
+ read a b
++ cat /dev/.sysconfig/network/tmp/if-eth0.2048
+ case $a in
+ echo primary=yes
+ IFS==
+ read a b
+ case $a in
+ echo hostname=crema42test
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ echo dhcp6_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ IFS==
+ read a b
+ case $a in
+ echo config=eth0
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_state=new
+ IFS==
+ read a b
+ case $a in
+ echo status=connected
+ IFS==
+ read a b
+ '[' -n complete ']'
+ echo dhcp6_state=complete
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.2048.tmp ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.2048.tmp 
+ /dev/.sysconfig/network/tmp/if-eth0.2048
+ commit_cached_config_data eth0
+ touch /dev/.sysconfig/network/tmp/test local PFX FILE MODFILE test -n 
+ ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.2048
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.2048 ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.2048 
+ /dev/.sysconfig/network/if-eth0 exit_with_hooks 0 exit_status=0 '[' -f 
+ /etc/dhclient6-exit-hooks ']'
+ exit 0
****************
/sbin/dhclient-script
Mon Sep 10 17:32:07 CEST 2012
----------------
cur_rebind=480
interface=eth0
reason=DEPREF6
cur_renew=360
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/sysconfig/network/scripts
pid=2547
cur_dhcp6_client_id=0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f
PWD=/
cur_dhcp6_server_id=0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7
cur_dhcp6_name_servers=fd12:0:0:42::1
cur_iaid=3e:58:dd:4f
SHLVL=1
cur_dhcp6_status_code=success Address(es) renewed. Greetings from planet Earth cur_dhcp6_domain_search=ipv6net42.osd.abg.fsc.net.
cur_ip6_prefixlen=64
cur_ip6_address=fd12::42:6938:d41c:ba38:34f0
cur_life_starts=1347287527
cur_max_life=7200
cur_preferred_life=3600
cur_starts=1347287527
_=/usr/bin/env
----------------
+ '[' -f /etc/dhclient6-enter-hooks ']'
+ case $dhclient in
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0
++ grep --no-filename '^[[:space:]]*STARTMODE=' 
++ /etc/sysconfig/network/ifcfg-eth0
+ eval 'STARTMODE='\''auto'\'''
++ STARTMODE=auto
++ read_cached_config_data startmode
++ touch /dev/.sysconfig/network/tmp/test local PFX test -n ''
++ : if-
++ '[' -r /dev/.sysconfig/network/if- ']'
+ tmp_startmode=
+ '[' -n '' ']'
+ case $reason in
+ '[' x = x -o x = x ']'
+ exit_with_hooks 2
+ exit_status=2
+ '[' -f /etc/dhclient6-exit-hooks ']'
+ exit 2
****************
/sbin/dhclient-script
Mon Sep 10 18:32:07 CEST 2012
----------------
old_renew=360
old_ip6_prefixlen=64
old_dhcp6_server_id=0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7
old_max_life=7200
old_starts=1347287527
interface=eth0
reason=EXPIRE6
old_iaid=3e:58:dd:4f
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/sysconfig/network/scripts
old_preferred_life=3600
pid=2547
PWD=/
old_rebind=480
old_dhcp6_domain_search=ipv6net42.osd.abg.fsc.net.
old_dhcp6_status_code=success Address(es) renewed. Greetings from planet Earth
SHLVL=1
old_dhcp6_client_id=0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f
old_ip6_address=fd12::42:6938:d41c:ba38:34f0
old_life_starts=1347287527
old_dhcp6_name_servers=fd12:0:0:42::1
_=/usr/bin/env
----------------
+ '[' -f /etc/dhclient6-enter-hooks ']'
+ case $dhclient in
+ is_ifup_controlled
+ test -f /dev/.sysconfig/network/if-eth0
++ grep --no-filename '^[[:space:]]*STARTMODE=' 
++ /etc/sysconfig/network/ifcfg-eth0
+ eval 'STARTMODE='\''auto'\'''
++ STARTMODE=auto
++ read_cached_config_data startmode
++ touch /dev/.sysconfig/network/tmp/test local PFX test -n ''
++ : if-
++ '[' -r /dev/.sysconfig/network/if- ']'
+ tmp_startmode=
+ '[' -n '' ']'
+ case $reason in
+ '[' xfd12::42:6938:d41c:ba38:34f0 '!=' x -a x64 '!=' x ']'
+ /sbin/ip addr del fd12::42:6938:d41c:ba38:34f0/64 dev eth0 
+ is_ifup_controlled test -f /dev/.sysconfig/network/if-eth0 
+ write_cached_config_data dhcp6_state down eth0 touch 
+ /dev/.sysconfig/network/tmp/test local PFX FILE TMPFILE MODFILE test 
+ -n ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.13821
+ TMPFILE=/dev/.sysconfig/network/tmp/if-eth0.13821.tmp
+ test -f /dev/.sysconfig/network/tmp/if-eth0.13821
+ cp /dev/.sysconfig/network/if-eth0 
+ /dev/.sysconfig/network/tmp/if-eth0.13821
+ FILE=/dev/.sysconfig/network/tmp/if-eth0.13821
+ touch /dev/.sysconfig/network/tmp/if-eth0.13821
+ IFS==
+ read a b
++ cat /dev/.sysconfig/network/tmp/if-eth0.13821
+ case $a in
+ echo primary=yes
+ IFS==
+ read a b
+ case $a in
+ echo hostname=crema42test
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ echo dhcp6_client=dhcpcd
+ IFS==
+ read a b
+ case $a in
+ IFS==
+ read a b
+ case $a in
+ echo config=eth0
+ IFS==
+ read a b
+ case $a in
+ echo dhcp4_state=complete
+ IFS==
+ read a b
+ case $a in
+ echo status=connected
+ IFS==
+ read a b
+ '[' -n down ']'
+ echo dhcp6_state=down
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.13821.tmp ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.13821.tmp 
+ /dev/.sysconfig/network/tmp/if-eth0.13821
+ commit_cached_config_data eth0
+ touch /dev/.sysconfig/network/tmp/test local PFX FILE MODFILE test -n 
+ ''
+ : if-
+ FILE=/dev/.sysconfig/network/if-eth0
+ MODFILE=/dev/.sysconfig/network/tmp/if-eth0.13821
+ '[' -f /dev/.sysconfig/network/tmp/if-eth0.13821 ']'
+ mv /dev/.sysconfig/network/tmp/if-eth0.13821 
+ /dev/.sysconfig/network/if-eth0 netconfig_remove test -x 
+ /sbin/netconfig -a -n eth0 /sbin/netconfig remove -s dhclient6 -i eth0 
+ exit_with_hooks 0 exit_status=0 '[' -f /etc/dhclient6-exit-hooks ']'
+ exit 0


Here is is the complete lease-file of eth0:

default-duid "\000\001\000\001\027\340\235\024\000\026>X\335O";
lease6 {
  interface "eth0";
  ia-na 3e:58:dd:4f {
    starts 1347287527;
    renew 360;
    rebind 480;
    iaaddr fd12::42:6938:d41c:ba38:34f0 {
      starts 1347287527;
      preferred-life 3600;
      max-life 7200;
    }
    option dhcp6.status-code success "Address(es) renewed. Greetings from planet Earth";
  }
  option dhcp6.client-id 0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f;
  option dhcp6.server-id 0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7;
  option dhcp6.name-servers fd12:0:0:42::1;
  option dhcp6.domain-search "ipv6net42.osd.abg.fsc.net.";
}
lease6 {
  interface "eth0";
  ia-na 3e:58:dd:4f {
    starts 1347287527;
    renew 360;
    rebind 480;
    iaaddr fd12::42:6938:d41c:ba38:34f0 {
      starts 1347287527;
      preferred-life 3600;
      max-life 7200;
    }
    option dhcp6.status-code success "Address(es) renewed. Greetings from planet Earth";
  }
  option dhcp6.client-id 0:1:0:1:17:e0:9d:14:0:16:3e:58:dd:4f;
  option dhcp6.server-id 0:1:0:1:17:43:ba:65:0:16:3e:16:24:d7;
  option dhcp6.name-servers fd12:0:0:42::1;
  option dhcp6.domain-search "ipv6net42.osd.abg.fsc.net.";
}

thanks,
Dieter


More information about the dhcp-users mailing list