View Issue Details

IDProjectCategoryView StatusLast Update
0007525CentOS-7dhcppublic2014-08-22 12:05
Reportermrizvic Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Platformapu1c4 , amd64OSCentOSOS Version7
Product Version7.0-1406 
Summary0007525: dhclient fails to assemble DUID while requesting IPv6 prefix delegation
DescriptionClient needs to establish PPPoE session in order to get internet connectivity. IPv6 address for ppp0 interface is obtained automatically via RA (net.ipv6.conf.ppp0.accept_ra=2). To obtain IPv6 prefix delegation client needs to send DHCPv6 PD request. Running dhclient -d -P ppp0 fails with output:

# dhclient -d -P ppp0
Internet Systems Consortium DHCP Client 4.2.5
Copyright 2004-2013 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Bound to *:546
Listening on Socket/ppp0
Sending on Socket/ppp0
xid: warning: no netdev with useable HWADDR found for seed's uniqueness enforcement
xid: rand init seed (0xfb37fe49) built using gethostid
Cannot form default DUID from interface ppp0.
PRC: Soliciting for leases (INIT).
XMT: Forming Solicit, 0 ms elapsed.
Failure assembling a DUID.
Failure assembling a DUID.

This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the CentOS Bugs Database:
    http://bugs.centos.org/

exiting.
Steps To Reproduceinstalled relevant packages:
dhcp-libs-4.2.5-27.el7.centos.1.x86_64
dhcp-4.2.5-27.el7.centos.1.x86_64
dhcp-common-4.2.5-27.el7.centos.1.x86_64
rp-pppoe-3.11-5.el7.x86_64

run pppoe-setup or configure ifcfg-ppp0 as shown in additional information section
run adsl-start and wait for PPPoE session to establish (check /var/log/messages and ip a ls dev ppp0)
run dhclient -d -P ppp0
Additional Information# cat /etc/sysconfig/network-scripts/ifcfg-ppp0 |sort

BOOTPROTO=dialup
CLAMPMSS=1412
CONNECT_POLL=6
CONNECT_TIMEOUT=0
DEFROUTE=yes
DEMAND=no
DEVICE=ppp0
DHCPV6C_KEEPOLDIP="yes"
DHCPV6C_LANDEVICE="enp1s0"
DHCPV6C="yes"
ETH=enp1s0
FIREWALL=NONE
IPV6_AUTOCONF="yes"
IPV6INIT="yes"
LCP_FAILURE=3
LCP_INTERVAL=20
#LINUX_PLUGIN="/usr/lib64/pppd/2.4.5/rp-pppoe.so"
NAME=DSLppp0
ONBOOT=no
# only if it works for you
PEERDNS=yes
PIDFILE=/var/run/pppoe-adsl.pid
PING=.
PPPD_EXTRA="ipv6 ,"
PPPOE_TIMEOUT=80
PROVIDER=provider
SYNCHRONOUS=no
TYPE=xDSL
USERCTL=no
USER=mypppoeusername

# ip a ls dev ppp0
11: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1492 qdisc pfifo_fast state UNKNOWN qlen 3
    link/ppp
    inet XXX.XXX.148.215 peer XXX.XXX.19.90/32 scope global ppp0
       valid_lft forever preferred_lft forever
    inet6 XXXX:XXXX:XXXX:4d4:f53d:ff81:XXXX:XXXX/64 scope global dynamic
       valid_lft 7176sec preferred_lft 3576sec
    inet6 fe80::f53d:ff81:XXXX:XXXX/10 scope link
       valid_lft forever preferred_lft forever

Aug 22 09:52:45 monolith pppd[4389]: pppd 2.4.5 started by root, uid 0
Aug 22 09:52:45 monolith pppd[4389]: Using interface ppp0
Aug 22 09:52:45 monolith pppd[4389]: Connect: ppp0 <--> /dev/pts/2
Aug 22 09:52:46 monolith pppoe[4390]: PPP session is 4658 (0x1232)
Aug 22 09:52:46 monolith pppd[4389]: CHAP authentication succeeded: CHAP authentication success, unit 2581
Aug 22 09:52:46 monolith pppd[4389]: CHAP authentication succeeded
Aug 22 09:52:46 monolith pppd[4389]: local LL address fe80::f53d:ff81:XXXX:XXXX
Aug 22 09:52:46 monolith pppd[4389]: remote LL address fe80::0230:88ff:XXXX:XXXX
Aug 22 09:52:46 monolith pppd[4389]: local IP address XXX.XXX.148.215
Aug 22 09:52:46 monolith pppd[4389]: remote IP address XXX.XXX.19.90
Aug 22 09:52:46 monolith pppd[4389]: primary DNS address XXX.XXX.160.13
Aug 22 09:52:46 monolith pppd[4389]: secondary DNS address XXX.XXX.160.23
Aug 22 09:52:47 monolith NET[4439]: /etc/sysconfig/network-scripts/ifup-post : updated /etc/resolv.conf
Aug 22 09:52:53 monolith dhclient[4453]: Bound to *:546
Aug 22 09:52:53 monolith dhclient[4453]: xid: warning: no netdev with useable HWADDR found for seed's uniqueness enforcement
Aug 22 09:52:53 monolith dhclient[4453]: xid: rand init seed (0xfb360820) built using gethostid
Aug 22 09:52:54 monolith dhclient[4453]: Failure assembling a DUID.
Aug 22 09:52:54 monolith dhclient[4453]:
Aug 22 09:52:54 monolith dhclient[4453]: This version of ISC DHCP is based on the release available
Aug 22 09:52:54 monolith dhclient[4453]: on ftp.isc.org. Features have been added and other changes
Aug 22 09:52:54 monolith dhclient[4453]: have been made to the base software release in order to make
Aug 22 09:52:54 monolith dhclient[4453]: it work better with this distribution.
Aug 22 09:52:54 monolith dhclient[4453]:
Aug 22 09:52:54 monolith dhclient[4453]: Please report for this software via the CentOS Bugs Database:
Aug 22 09:52:54 monolith dhclient[4453]: http://bugs.centos.org/
Aug 22 09:52:54 monolith dhclient[4453]:
Aug 22 09:52:54 monolith dhclient[4453]: exiting.

TagsNo tags attached.
abrt_hash
URL

Activities

mrizvic

mrizvic

2014-08-22 12:05

reporter   ~0020729

I found workaround for this:

sudo cat > /etc/ppp/ip-up.local <<EOF
LEASEFILE=/var/lib/dhclient/dhclient6.leases
INTERFACE=ppp0

myhwaddr=`ip add | grep link/ether | cut -f 6 -d \ | tail -n 1 | sed s/:/\\\\\\\\x/g`
echo "default-duid \"\\x00\\x03\\x00\\x01\\x$myhwaddr\";" > $LEASEFILE
dhclient -v -P -lf $LEASEFILE $INTERFACE
EOF



sudo cat /etc/ppp/ip-down.local <<EOF
PIDFILE=/var/run/dhclient6.pid

if [ -f $PIDFILE ];
then
        PID=`cat $PIDFILE`
        echo "killing $PID ($PIDFILE) process"
        kill -9 $PID
fi
EOF


sudo chmod u+x /etc/ppp/ip-up.local
sudo chmod u+x /etc/ppp/ip-down.local

Issue History

Date Modified Username Field Change
2014-08-22 08:44 mrizvic New Issue
2014-08-22 12:05 mrizvic Note Added: 0020729