dhcpcd-discuss

Re: Support for "raw-ip" mode

Yegor Yefremov

Tue Aug 20 09:55:44 2019

On Tue, Aug 20, 2019 at 11:34 AM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> On 19/08/2019 09:04, Yegor Yefremov wrote:
> >> Can you provide logs of dhcpcd not working on one, or access to such a
> >> device via ssh?
> >
> > # dhcpcd wwan0
> > wwan0: unsupported interface family 00
> > wwan0: waiting for carrier
> > wwan0: carrier acquired
> > DUID 00:01:00:01:c7:92:bc:92:74:6a:8f:ff:50:55
> > wwan0: IAID 00:00:00:06
> > wwan0: using static address 169.254.227.48/16
> > arp_open: wwan0: Invalid argument
> > arp_announce: Invalid argument
> > forked to background, child pid 354
> >
> > This is how the interface looks like:
> >
> > # ip addr show wwan0
> > 6: wwan0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc
> > pfifo_fast state UNKNOWN group default qlen 1000
> >      link/none
> >      inet 169.254.227.48/16 brd 169.254.255.255 scope global noprefixroute wwan0
> >         valid_lft forever preferred_lft forever
> >
> > And this is what happens with udhcpc:
> >
> > # udhcpc -i wwan0
> > udhcpc: started, v1.31.0
> > udhcpc: sending discover
> > udhcpc: sending select for 10.50.235.7
> > udhcpc: lease of 10.50.235.7 obtained, lease time 7200
> > deleting routers
> > adding dns 62.109.121.17
> > adding dns 62.109.121.18
>
> The attached patch should fix what you've noted thus far.
> However, the default dhcpcd action for PtP interfaces is to let a 3rd
> party configure the address - dhcpcd will wait for it to appear. I don't
> want to change this, so you'll need this in /etc/dhcpcd.conf
>
> interface wwan0
>         dhcp
>
> Then it should work.
>
> Let me know - but please add the -d flag or add `debug` to dhcpcd.conf
> so I can get more detailed information.

Thanks for the patch. Acquiring a DHCP lease is working now:

# dhcpcd -d wwan0
dhcpcd-8.0.2 starting
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:c7:92:bc:92:74:6a:8f:ff:50:55
wwan0: IAID 00:00:00:06
wwan0: delaying IPv6 router solicitation for 0.8 seconds
wwan0: using static address 10.42.112.218/30
wwan0: adding IP address 10.42.112.218/30 broadcast 10.42.112.218
arp_open: wwan0: Invalid argument
arp_announce: Invalid argument
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' STATIC
forking to background
forked to background, child pid 433

I've added these lines to the default /etc/dhcpcd.conf file:

interface wwan0 dhcp
debug

Though "debug" was ignored i.e. I had to specify it on the command line.

Can I also specify "interface wwan0 dhcp" on the command line?

Is it OK that both arp_open and arp_announce fail?

Regards,
Yegor

Follow-Ups:
Re: Support for "raw-ip" modeRoy Marples
References:
Support for "raw-ip" modeYegor Yefremov
Re: Support for "raw-ip" modeRoy Marples
Re: Support for "raw-ip" modeYegor Yefremov
Re: Support for "raw-ip" modeRoy Marples
Archive administrator: postmaster@marples.name