Re: Support for "raw-ip" mode
Yegor Yefremov
Wed Aug 21 09:44:10 2019
On Wed, Aug 21, 2019 at 11:35 AM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> On 21/08/2019 09:44, Yegor Yefremov wrote:
> > 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.
>
> Nice :)
>
> >
> > # 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
>
> Was this expected?
I don't know. It seems to happen every time.
> Does RENEW/REBIND work? Test with a shorter lease
> # dhcpcd -d --dhcp --leasetime 20 wwan0
RENEW seems to be working:
# dhcpcd -d --dhcp --leasetime 20 -B 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.5 seconds
wwan0: delaying IPv4 for 0.4 seconds
wwan0: reading lease `/var/db/dhcpcd/wwan0.lease'
wwan0: rebinding lease of 10.172.142.26
wwan0: sending REQUEST (xid 0xd601bdad), next in 4.0 seconds
wwan0: NAK: from 10.42.200.18
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' NAK
wwan0: soliciting an IPv6 router
wwan0: delaying Router Solicitation for LL address
wwan0: soliciting a DHCP lease
wwan0: sending DISCOVER (xid 0x6a783ce), next in 4.3 seconds
wwan0: offered 10.42.200.17 from 10.42.200.18
wwan0: sending REQUEST (xid 0x6a783ce), next in 4.4 seconds
wwan0: acknowledged 10.42.200.17 from 10.42.200.18
wwan0: leased 10.42.200.17 for 20 seconds
wwan0: renew in 10 seconds, rebind in 17 seconds
wwan0: writing lease `/var/db/dhcpcd/wwan0.lease'
wwan0: adding IP address 10.42.200.17/30 destination 10.42.200.19
wwan0: adding route to 10.42.200.16/30
wwan0: adding default route via 10.42.200.18
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' BOUND
wwan0: renewing lease of 10.42.200.17
wwan0: sending REQUEST (xid 0x57a4ad7f), next in 4.0 seconds
wwan0: acknowledged 10.42.200.17 from 10.42.200.18
wwan0: leased 10.42.200.17 for 20 seconds
wwan0: renew in 10 seconds, rebind in 17 seconds
wwan0: writing lease `/var/db/dhcpcd/wwan0.lease'
wwan0: adding IP address 10.42.200.17/30 destination 10.42.200.19
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' RENEW
wwan0: renewing lease of 10.42.200.17
wwan0: sending REQUEST (xid 0x662bdbfb), next in 3.5 seconds
wwan0: acknowledged 10.42.200.17 from 10.42.200.18
wwan0: leased 10.42.200.17 for 20 seconds
wwan0: renew in 10 seconds, rebind in 17 seconds
wwan0: writing lease `/var/db/dhcpcd/wwan0.lease'
wwan0: adding IP address 10.42.200.17/30 destination 10.42.200.19
wwan0: executing `/lib/dhcpcd/dhcpcd-run-hooks' RENEW
Archive administrator: postmaster@marples.name