dhcpcd-discuss

Re: dhcpcd 7.1.1 (and 7.2.0) time out on boot

Matt Horan

Thu Aug 01 13:24:37 2019

On Thu, May 02, 2019 at 07:19:24PM -0400, Matt Horan wrote:
> On Thu, May 02, 2019 at 10:02:36PM +0100, Roy Marples wrote:
> > On 02/05/2019 00:26, Matt Horan wrote:
> > > Roy,
> > > 
> > > On Wed, May 01, 2019 at 10:16:34PM +0100, Roy Marples wrote:
> > >> OK, I have this fixed I think!
> > >> Patch attached.
> > >>
> > >> In a nutshell, the interface reports IFM_AVALID via SIOCGIFMEDIA but
> > >> then doesn't set the link status in RTM_IFNFO.
> > >>
> > >> Let me know how that works for you.
> > > 
> > > Sadly, it seems not to have done the trick. See the attached dhcpcd.log
> > > -- pretty much the same we were seeing before.
> > 
> > Darn.
> > 
> > I've comitted a swathe of patches to the dhcpcd-7 branch around this.
> > Can you test that from the git repo please?
> > https://roy.marples.name/git/dhcpcd.git/
> 
> Still no dice, but I did discover something.
> 
> This only happens (on both 7.1.1 and the dhcpcd-7 branch) when I have
> ipv6rs (but no ip_na) in my dhcpcd.conf. I'm not sure if this is a valid
> configuration, but it did work in the past.
> 
> Removing ipv6rs resolves the issue (just like disabling inet6 autoconf
> in hostname.em0 and adding both ipv6rs and ip_na to dhcpcd.conf).
> 
> I've attached logs of both configurations.

Hi Roy,

Just wondering if you think I should write this issue off at this point.
dhcpcd does seem to work for me so long as I remove ipv6rs (and leave
inet6 autoconf in /etc/hostname.em0) OR add both ipv6rs and ip_na to
dhcpcd.conf and remove inet6 autoconf from /etc/hostname.em0.

Interestingly I did just encounter a seemingly related issue where my
modem seemed to reboot and dhcpcd never recovered. I'm not quite sure
how to reproduce this issue as it happened overnight. Log attached.

Do you think the most reliable configuration is just to leave all auto
configuration to dhcpcd? I don't recall ever seeing the carrier lost
messages in that scenario.

-- 
Matt Horan matt@xxxxxxxxxxxxx https://matthoran.com/
Jul 28 21:06:01 [99420]: em0: broadcasting RENEW6 (xid 0x28dd45), next in 10.3 seconds
Jul 28 21:06:01 [99420]: em0: REPLY6 received from fe80::217:10ff:fe88:8be1
Jul 28 21:06:01 [99420]: em0: renew in 302400, rebind in 483840, expire in 604800 seconds
Jul 28 21:06:01 [99420]: em0: writing lease `/var/db/dhcpcd/em0.lease6'
Jul 28 21:06:01 [99420]: em0: delegated prefix 2604:2000:1281:469::/64
Jul 28 21:06:01 [99420]: em1: adding address 2604:2000:1281:469::1/64
Jul 28 21:06:01 [99420]: em1: pltime 604800 seconds, vltime 604800 seconds
Jul 31 00:13:08 [99420]: em0: carrier lost
Jul 31 00:13:08 [99420]: em1: deleting address 2604:2000:1281:469::1/64
Jul 31 00:13:08 [99420]: lo0: changing reject route to 2604:2000:1281:469::/64 via ::1
Jul 31 00:13:08 [99420]: lo0: deleting reject route to 2604:2000:1281:469::/64 via ::1

Follow-Ups:
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootRoy Marples
References:
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootRoy Marples
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootRoy Marples
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootRoy Marples
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootRoy Marples
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
Archive administrator: postmaster@marples.name