[Bug 253166] net/dhcpcd: no interfaces have a carrier (during boot)

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 19 Oct 2021 06:38:17 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253166

--- Comment #14 from roy@marples.name ---
(In reply to Dries Michiels from comment #13)

I've been able to replicate this error by using the init script in
https://reviews.freebsd.org/D22012
Jan 31 20:06:31 vados kernel: dhcp6_openudp: Can't assign requested address

I fixed it by adding this in /etc/rc.d/dhcpcd

start_precmd="dhcpcd_prestart"
dhcpcd_prestart() {
        # Hack to get rid of the error Can't assign requested address when
        # dhcpcd tries to open ANYADDR:DHCPPORT
        /etc/rc.d/netif start lo0
}

I did initally just try using `ifconfig lo0 up`, but that wasn't enough.
I'll try and narrow down just what needs to be up later.

-- 
You are receiving this mail because:
You are the assignee for the bug.