Re: dhcpcd on raspberry pi doesn't pick up an IPv6 address
James Gross
Sun Jan 05 22:22:30 2020
Hi Roy,
On Sun, 5 Jan 2020 at 20:55, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 05/01/2020 17:47, James Gross wrote:
> > Jan 05 15:22:12 rpi3 systemd[1]: dhcpcd.service: Can't open PID file
> > /run/dhcpcd.pid (yet?) after start: No such file or directory
>
> This is the error.
> Run dhcpcd -P to get the new pidfile location and adjust the systemd
> service
> unit file accordingly.
>
> Roy
>
This fixed it! Thank you.
I edited this file
/lib/systemd/system/dhcpcd.service
and changed this line to match the output of dhcpcd -P
PIDFile=/run/dhcpcd/pid
The log looks good
Jan 05 22:13:49 [1781]: sending signal TERM to pid 1632
Jan 05 22:13:49 [1781]: waiting for pid 1632 to exit
Jan 05 22:13:52 [260]: dhcpcd-8.99.0 starting
Jan 05 22:13:52 [279]: udev: starting
Jan 05 22:13:52 [279]: dev: loaded udev
Jan 05 22:13:52 [279]: eth0: executing `/libexec/dhcpcd-run-hooks' PREINIT
Jan 05 22:13:52 [279]: eth0: executing `/libexec/dhcpcd-run-hooks' NOCARRIER
Jan 05 22:13:53 [279]: eth0: waiting for carrier
Jan 05 22:13:53 [279]: eth0: carrier acquired
Jan 05 22:13:53 [279]: eth0: executing `/libexec/dhcpcd-run-hooks' CARRIER
Jan 05 22:13:53 [279]: DUID 00:01:00:01:25:a4:ae:ad:b8:27:eb:0a:5f:6a
Jan 05 22:13:53 [279]: eth0: IAID eb:0a:5f:6a
Jan 05 22:13:53 [279]: eth0: adding address fe80::ba27:ebff:fe0a:5f6a
Jan 05 22:13:53 [279]: eth0: pltime infinity, vltime infinity
Jan 05 22:13:53 [279]: eth0: delaying IPv6 router solicitation for 0.8
seconds
Jan 05 22:13:53 [279]: eth0: delaying IPv4 for 0.3 seconds
Jan 05 22:13:53 [279]: eth0: soliciting an IPv6 router
Jan 05 22:13:53 [279]: eth0: delaying Router Solicitation for LL address
Jan 05 22:13:53 [279]: eth0: using ClientID 01:b8:27:eb:0a:5f:6a
Jan 05 22:13:53 [279]: eth0: reading lease `/var/db/dhcpcd/eth0.lease'
Jan 05 22:13:53 [279]: eth0: rebinding lease of 192.168.55.26
Jan 05 22:13:53 [279]: eth0: sending REQUEST (xid 0xd78e349f), next in 4.2
seconds
Jan 05 22:13:54 [279]: eth0: sending Router Solicitation
Jan 05 22:13:55 [279]: eth0: Router Advertisement from
fe80::be99:11ff:fe81:6408
Jan 05 22:13:55 [279]: eth0: adding address
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:13:55 [279]: eth0: pltime 4294967159 seconds, vltime 4294967159
seconds
Jan 05 22:13:55 [279]: eth0: adding route to 2001:8b0:de0a:bb0e::/64
Jan 05 22:13:55 [279]: eth0: waiting for Router Advertisement DAD to
complete
Jan 05 22:13:55 [279]: eth0: No DHCPv6 instruction in RA
Jan 05 22:13:55 [279]: eth0: adding default route via
fe80::be99:11ff:fe81:6408
Jan 05 22:13:57 [279]: eth0: sending REQUEST (xid 0xd78e349f), next in 7.5
seconds
Jan 05 22:13:57 [279]: eth0: acknowledged 192.168.55.26 from 192.168.55.1
Jan 05 22:13:57 [279]: eth0: probing address 192.168.55.26/24
Jan 05 22:13:57 [279]: eth0: probing for 192.168.55.26
Jan 05 22:13:57 [279]: eth0: ARP probing 192.168.55.26 (1 of 3), next in
1.5 seconds
Jan 05 22:13:57 [279]: eth0: Router Advertisement DAD completed
Jan 05 22:13:57 [279]: eth0: executing `/libexec/dhcpcd-run-hooks'
ROUTERADVERT
Jan 05 22:13:57 [279]: forked to background, child pid 279
Jan 05 22:13:57 [279]: eth0: sending NA for
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:13:58 [279]: eth0: ARP probing 192.168.55.26 (2 of 3), next in
1.5 seconds
Jan 05 22:13:58 [279]: eth0: sending NA for
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:13:59 [279]: eth0: ARP probing 192.168.55.26 (3 of 3), next in
2.0 seconds
Jan 05 22:13:59 [279]: eth0: sending NA for
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:14:01 [279]: eth0: DAD completed for 192.168.55.26
Jan 05 22:14:01 [279]: eth0: leased 192.168.55.26 for 300 seconds
Jan 05 22:14:01 [279]: eth0: renew in 150 seconds, rebind in 262 seconds
Jan 05 22:14:01 [279]: eth0: writing lease `/var/db/dhcpcd/eth0.lease'
Jan 05 22:14:01 [279]: eth0: adding IP address 192.168.55.26/24 broadcast
192.168.55.255
Jan 05 22:14:01 [279]: eth0: adding route to 192.168.55.0/24
Jan 05 22:14:01 [279]: eth0: adding default route via 192.168.55.1
Jan 05 22:14:01 [279]: eth0: ARP announcing 192.168.55.26 (1 of 2), next in
2.0 seconds
Jan 05 22:14:01 [279]: eth0: executing `/libexec/dhcpcd-run-hooks' BOUND
Jan 05 22:14:03 [279]: eth0: ARP announcing 192.168.55.26 (2 of 2)
Jan 05 22:14:05 [279]: eth0: Router Advertisement from
fe80::be99:11ff:fe81:6408
Jan 05 22:14:05 [279]: eth0: adding address
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:14:05 [279]: eth0: pltime 4294967149 seconds, vltime 4294967149
seconds
Jan 05 22:14:05 [279]: eth0: sending NA for
2001:8b0:de0a:bb0e:ba27:ebff:fe0a:5f6a/64
Jan 05 22:14:05 [279]: eth0: executing `/libexec/dhcpcd-run-hooks'
ROUTERADVERT
Thanks,
James
Archive administrator: postmaster@marples.name