dhcpcd-discuss

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

Roy Marples

Thu Apr 25 13:05:23 2019

Hi Matt

On 25/04/2019 04:10, Matt Horan wrote:
On Wed, Apr 24, 2019 at 10:03:05PM -0400, Matt Horan wrote:
I just upgraded from OpenBSD 6.4 to 6.5 and subsequently upgraded dhcpcd
from 7.0.8 to 7.1.1. After the upgrade, and before upgrading dhcpcd,
dhcpcd successfully obtained an IPv6 lease (via DHCPv6-PD). However,
after upgrading dhcpcd and rebooting, the first attempt of dhcpcd to
obtain a lease fails with dhcpcd[11920]: timed out.

This looks to be entirely my fault. I had set up my /etc/dhcpcd.conf
with the following:

noipv6rs
interface em0
     ipv6rs
     ia_pd 0 em1/0

and had inet6 autoconf in /etc/hostname.em0.

This had worked fine for me for some time, but it seems that this
configuration causes "carrier lost" and the subsequent behavior above.

It seems that this is not a recommended configuration anyway, so I've
changed my configuration to let dhcpcd handle everything.

Replacing /etc/dhcpcd.conf with the following resolves this issue:

noipv6rs
interface em0
     ipv6rs
     ia_na 1
     ia_pd 0 em1/0

Well, dhcpcd is meant to handle everything.
But if you want to continue using slaacd or something else that causes a PHY reset (which can trigger carrier loss) you still can!

Send dhcpcd right to the background with the -b flag OR start it in master mode (ie don't specify an interface on the command line) and use the allowinterfaces directive instead to limit the interfaces dhcpcd uses.

Roy

Follow-Ups:
Re: dhcpcd 7.1.1 (and 7.2.0) time out on bootMatt Horan
References:
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
Archive administrator: postmaster@marples.name