Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Aug 2024 23:37:40 +0100
From:      Roy Marples <roy@marples.name>
To:        "Karl Denninger" <karl@denninger.net>
Cc:        "freebsd-net" <freebsd-net@freebsd.org>
Subject:   Re: DHCPv6 IA_PD - how-to
Message-ID:  <191153dda48.afb62a7e766399.4659131769794429018@marples.name>
In-Reply-To: <9bcca610-711a-41b0-955a-12968a3a8be0@denninger.net>
References:  <050440F8-B3D8-4B2C-85BD-D5C09C303037@distal.com> <20240727.122108.862717899466090274.moto@kawasaki3.org> <190fdf3e353.11351bb5e292296.3216692081725884177@marples.name> <20240730.091027.1008656135460861216.moto@kawasaki3.org> <fb6a9b28-7d52-42d8-a9e3-cd693b746bd2@denninger.net> <1910419702c.f8dcf010456961.6536659919669261420@marples.name> <2c1d5655-452c-4b7d-906d-8aa1affa64bd@denninger.net> <cd2a3579-257d-4de2-8467-94509cd9d03c@denninger.net> <191087bf5c4.109d82255531772.5427621875687457864@marples.name> <2d51761e-7836-4002-b2b5-0d8e66a0204c@denninger.net> <9bcca610-711a-41b0-955a-12968a3a8be0@denninger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
 ---- On Fri, 02 Aug 2024 23:05:33 +0100  Karl Denninger  wrote ---=20
 > This is what is typically in /etc/rc.conf:

I don't see anything wrong there.

 >       And in /usr/local/etc/dhcpcd.conf I have changed "duid" to        =
"clientid" which appears to get a repeatable IPv4 IF the host        will g=
ive me one (duid ALWAYS results in a different pool        address on each =
boot/run):
 >      =20
 >       # Generate SLAAC address using the Hardware Address of the      in=
terface
 >       #slaac hwaddr
 >       # OR generate Stable Private IPv6 Addresses based from the DUID
 >       #slaac private
 >            =20
 >         allowinterfaces igb0
 >        =20
 >         #ipv6only
 >         #ipv4only
 >        =20
 >         #
 >         # Do not run these hooks; DO run the DDNS one in exit-hooks
 >         #
 >         nohook resolv.conf hostname ntp.conf
 >        =20
 >         # Do not allow router solicits on anywhere EXCEPT the external
 >         #
 >         noipv6rs
 >        =20
 >         interface igb0
 >         =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ipv6rs
 >         =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ia_na 1
 >         =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ia_pd 1/::/56 igb1/0/=
64 igb1.4/1/64

This looks fine.
I'm on holiday now so can't look at it more (back in a week), but if it's n=
ot working on a cold start but is working on a reboot of "something" then t=
he chances are dhcpcd got stuck waiting for the LL address to become ready.
FreeBSD doesn't announce the state of it, which is a shame, so dhcpcd polls=
 it instead.
You can check this by adding "debug" to dhcpcd.conf and you should get a me=
ssage like "waiting for LL address".
If DHCPv6 or RS stalls at that point then we know the cause.
You could also put "logfile /var/log/dhcpcd.log" to get a clean dhcpcd only=
 log file.
Email to me off list if you like.

Roy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?191153dda48.afb62a7e766399.4659131769794429018>