dhcpcd-discuss

AW: Interface does not exist for delegation

Conrad Kostecki

Mon Apr 28 19:23:58 2014

> -----Ursprüngliche Nachricht-----
> Von: Roy Marples [mailto:roy@xxxxxxxxxxxx]
> Gesendet: Montag, 28. April 2014 14:21
> An: dhcpcd-discuss@xxxxxxxxxxxx
> Betreff: Re: [dhcpcd-discuss] Interface does not exist for delegation
> 
> On 28/04/2014 9:08, Roy Marples wrote:
> > Hi
> >
> > On 27/04/2014 19:04, ConiKost@xxxxxx wrote:
> >> I am trying to get IPv6 prefix delegation with dhcpcd. But when I do
> >> so, it fails to assign it to my internal interface:
> >>
> >> dhcpcd[1814]: version 6.3.2 starting
> >> dhcpcd[1814]: DUID <duid>
> >> dhcpcd[1814]: ppp0: IAID 00:00:00:00
> >> dhcpcd[1814]: ppp0: IAID 00:00:00:01
> >> dhcpcd[1814]: ppp0: soliciting a DHCPv6 lease
> >> dhcpcd[1814]: ppp0: ADV 2003:xx:xxxx:xxxx::/56 from
> >> fe80::xxx:xxxx:xxxx:1439
> >> dhcpcd[1814]: ppp0: REPLY6 received from fe80::xxx:xxxx:xxxx:1439
> >> dhcpcd[1814]: enp5s0: interface does not exist for delegation
> >> dhcpcd[1814]: ppp0: renew in 900 seconds, rebind in 1440 seconds
> >> dhcpcd[1814]: forked to background, child pid 1842
> >>
> >> Why? What does this error exactly mean? The interface name is correct
> >> and it does exist.
> >> Could somebody explain this to me?
> >
> > It's basically a design flaw in dhcpcd - dhcpcd needs to have loaded
> > the interface.
> > Here's the example from the man page
> >
> >                    noipv6rs
> >                    # Don't touch eth3 at all
> >                    denyinterfaces eth3
> >
> >                    interface eth0
> >                    ia_pd 1 eth1/1 eth2/2
> >
> >                    # Disable automatic address configuration for eth1
> >                    # eth1 still gets a delegated prefix
> >                    interface eth1
> >                    noipv4
> >                    noipv6
> >
> > Also, how did dhcpcd launch? Currently it needs to be started without
> > any interfaces listed on the command line.
> 
> 
> I've added a fix here:
> http://roy.marples.name/projects/dhcpcd/ci/7f5f1f8fdf?sbs=0
> 
> dhcpcd will now load the interface on demand if needed, so if you launch
> `dhcpcd ppp0` and dhcpcd.conf instrucs a delegation to enp5s0 it should now
> work.

Hi Roy,
That sounds great! There is only the problem, i am unable to compile dhcpcd. I've tried to emerge the 9999-ebuild with Gentoo.
It fails with:

/usr/bin/x86_64-pc-linux-gnu-gcc  -o dhcpcd common.o control.o dhcpcd.o duid.o eloop.o if.o if-options.o script.o dhcp-common.o dhcpcd-embedded.o if-linux.o if-linux-wireless.o arp.o dhcp.o ipv4.o ipv4ll.o ipv6.o ipv6nd.o dhcp6.o auth.o compat/arc4random.o compat/closefrom.o compat/strlcpy.o hmac_md5.o md5.o
if-linux.o: In function `link_netlink':
/var/tmp/portage/net-misc/dhcpcd-9999/work/dhcpcd-9999/if-linux.c:630: undefined reference to `handle_hwaddr'
/var/tmp/portage/net-misc/dhcpcd-9999/work/dhcpcd-9999/if-linux.c:630: undefined reference to `handle_hwaddr'
collect2: error: ld returned 1 exit status
Makefile:104: recipe for target 'dhcpcd' failed
make: *** [dhcpcd] Error 1
 * ERROR: net-misc/dhcpcd-9999::gentoo failed (compile phase):

Cheers
Conrad

Follow-Ups:
Re: AW: Interface does not exist for delegationRoy Marples
References:
Interface does not exist for delegationConiKost
Re: Interface does not exist for delegationRoy Marples
Re: Interface does not exist for delegationRoy Marples
Archive administrator: postmaster@marples.name