dhcpcd-discuss

Re: Support for "raw-ip" mode

Yegor Yefremov

Wed Aug 21 08:43:18 2019

On Wed, Aug 21, 2019 at 10:32 AM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> On 21/08/2019 07:50, Yegor Yefremov wrote:
> > On Wed, Aug 21, 2019 at 12:08 AM Roy Marples <roy@xxxxxxxxxxxx> wrote:
> >>
> >> On 19/08/2019 09:04, Yegor Yefremov wrote:
> >>> wwan0: unsupported interface family 00
> >>
> >> Wow.
> >> I just discovered I've been working wrong interface family for link less
> >> interfaces since forever.
> >> I've committed a patch here to recitfy this:
> >> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=c47c788594840e177f4409c084336e467ac651f9
> >
> > It looks much better now:
> >
> > # dhcpcd --dhcp wwan0
> > dhcpcd-8.0.2 starting
> > [  234.400818] 8021q: 802.1Q VLAN Support v1.8
> > [  234.405472] 8021q: adding VLAN 0 to HW filter on device eth0
> > [  234.411630] 8021q: adding VLAN 0 to HW filter on device eth1
> > wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
> > wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' NOCARRIER
> > wwan0: waiting for carrier
> > wwan0: carrier acquired
> > 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.7 seconds
> > wwan0: delaying IPv4 for 0.3 seconds
> > wwan0: soliciting a DHCP lease
> > wwan0: sending DISCOVER (xid 0xb073d8d5), next in 4.0 seconds
> > wwan0: server 10.52.222.138 is not destination
>
> I've removed this warning:
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=902f076ef6617d277ab32c35481343a8c1e8463d
>
> > wwan0: offered 10.52.222.137 from 10.52.222.138
> > wwan0: sending REQUEST (xid 0xb073d8d5), next in 3.4 seconds
> > wwan0: server 10.52.222.138 is not destination
> > wwan0: acknowledged 10.52.222.137 from 10.52.222.138
> > wwan0: leased 10.52.222.137 for 7200 seconds
> > wwan0: renew in 3600 seconds, rebind in 6300 seconds
> > wwan0: writing lease `/var/db/dhcpcd/wwan0.lease'
> > wwan0: adding IP address 10.52.222.137/30 broadcast 10.52.222.139
>
> Changed broadcast to destination here:
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=a17bed3c2e1a2766daba25e6b876ba70a868b796
>
> > wwan0: adding default route via 10.52.222.138
>
> No subnet route was added.
> Fixed here:
> https://roy.marples.name/cgit/dhcpcd.git/commit/?id=c5456691ec1f006a8b1b17fd9ef62dee20136b0f
>
> That should fix the below error.
>
> > if_route (ADD): Network is unreachable
> > wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' BOUND
> > forking to background
> > forked to background, child pid 255
> >
> > Only default route setting fails.
> >
>
> Hopefully everything should be working now :)
> Let me know!

Perfect! Everything is working as expected. Thank you very much for
adding this functionality so quickly. Now we have another DHCP client
capable of handling raw-ip. Looking forward to a new release.

# dhcpcd -d --dhcp wwan0
dhcpcd-8.0.2 starting
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' PREINIT
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' NOCARRIER
wwan0: waiting for carrier
wwan0: carrier acquired
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' CARRIER
DUID 00:01:00:01:c7:92:bc:91:74:6a:8f:ff:50:55
wwan0: IAID 00:00:00:05
wwan0: delaying IPv6 router solicitation for 0.2 seconds
wwan0: delaying IPv4 for 0.3 seconds
wwan0: soliciting an IPv6 router
wwan0: delaying Router Solicitation for LL address
wwan0: reading lease `/var/db/dhcpcd/wwan0.lease'
wwan0: rebinding lease of 10.59.232.198
wwan0: sending REQUEST (xid 0x4c514ea5), next in 4.5 seconds
wwan0: NAK: from 10.49.231.45
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' NAK
wwan0: soliciting a DHCP lease
wwan0: sending DISCOVER (xid 0x74b67843), next in 3.1 seconds
wwan0: offered 10.49.231.44 from 10.49.231.45
wwan0: sending REQUEST (xid 0x74b67843), next in 3.3 seconds
wwan0: acknowledged 10.49.231.44 from 10.49.231.45
wwan0: leased 10.49.231.44 for 7200 seconds
wwan0: renew in 3600 seconds, rebind in 6300 seconds
wwan0: writing lease `/var/db/dhcpcd/wwan0.lease'
wwan0: adding IP address 10.49.231.44/29 destination 10.49.231.47
wwan0: adding route to 10.49.231.40/29
wwan0: adding default route via 10.49.231.45
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' BOUND
forking to background
forked to background, child pid 275

Cheers,
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
Re: Support for "raw-ip" modeYegor Yefremov
Re: Support for "raw-ip" modeRoy Marples
Archive administrator: postmaster@marples.name