Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2025 17:45:09 +0000
From:      Roy Marples <roy@marples.name>
To:        "Eugene Pereviazko" <john@dnepro.net>
Cc:        "freebsd-net" <freebsd-net@freebsd.org>
Subject:   Re: rtadvd(8) How to IPv6 tokenize interface identifier
Message-ID:  <195299cfe41.d7a8e8731186.6219551516433988607@marples.name>
In-Reply-To: <a246f982-f0d9-9447-75d2-7c86bacea558@dnepro.net>
References:  <20250221075300.4466057d@thor.sb211.local> <a246f982-f0d9-9447-75d2-7c86bacea558@dnepro.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

 ---- On Fri, 21 Feb 2025 13:31:53 +0000  Eugene Pereviazko <john@dnepro.ne=
t> wrote ---=20
 > 21.02.25 08:52, A FreeBSD User =D0=BF=D0=B8=D1=88=D0=B5:
 > > Hello,
 > >
 > > Linux (especially OpenWRT we use) knows about a concept named "IPv6 to=
kenized interface
 > > identifier". The concept is self explanatory, a interface/router obtai=
ns a propagated prefix
 > > and the concept allows the explicit definition of the host portion.
 > >
 > > I haven't managed to accomplish such a behaviour using FreeBSD's rtadv=
d(8) daemon. I guess
 > > this task is subject of and performed through the rtadvd.conf(5) confi=
guration file, but I
 > > haven't managed yet to accomplish such a task (to speak simple: I'd li=
ke to have a router of a
 > > subnet always at IPv6 Network PREFIX:0:0:0:1).
 >=20
 > Am I correct that you want your host to combine predefined host part=20
 > (instead of eui64) with dynamically received prefix?
 >=20
 > Like, set host part to ::DEAD:1 then receive 2001:db8:1234:4321::/64=20
 > prefix from router and get your address of 2001:db8:1234:4321::DEAD:1?
 >=20
 > Then rtadvd is not a tool for that. rtadvd is for advertising, not=20
 > receiving advertisements.
 >=20
 > If I'm not mistaken You should try dhcpcd from ports or packages,=20
 > specifically "slaac token" verb, as I don't know of similar feature in=
=20
 > base system.
 >=20
 > > Linux has this feature since a while and I can not believe that FreeBS=
D lacks such a feature.
 > >
 > > Thank you very much in advance,
=20
As Eugene said, you can use dhcpcd in ports with the slaac directive like s=
o

interface bge0
   slaac token ::dead:beef

Then you get ::dead:beef appended to each autoconf address from the RA.
You could use ::1 for your token which should meet your needs as above.

Good luck!

Roy



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?195299cfe41.d7a8e8731186.6219551516433988607>