Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Feb 2025 14:52:44 +0100
From:      A FreeBSD User <freebsd@walstatt-de.de>
To:        Bob Bishop <rb@gid.co.uk>
Cc:        FreeBSD CURRENT <freebsd-current@FreeBSD.org>, "freebsd-net@freebsd.org" <freebsd-net@FreeBSD.org>
Subject:   Re: rtadvd(8) How to IPv6 tokenize interface identifier
Message-ID:  <20250223144203.7f61d0bf@thor.sb211.local>
In-Reply-To: <2D84F83E-4548-40FA-B817-39703C670B43@gid.co.uk>
References:  <20250221075300.4466057d@thor.sb211.local> <2D84F83E-4548-40FA-B817-39703C670B43@gid.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/vXO=ctu1Xv7nwtnQZNzQupa
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Am Fri, 21 Feb 2025 10:44:12 +0000
Bob Bishop <rb@gid.co.uk> schrieb:

> Hi,
>=20
> > On 21 Feb 2025, at 06:52, A FreeBSD User <freebsd@walstatt-de.de> wrote:
> >=20
> > Hello,
> >=20
> > Linux (especially OpenWRT we use) knows about a concept named "IPv6 tok=
enized interface
> > identifier". The concept is self explanatory, a interface/router obtain=
s a propagated
> > prefix and the concept allows the explicit definition of the host porti=
on.
> >=20
> > I haven't managed to accomplish such a behaviour using FreeBSD's rtadvd=
(8) daemon. I guess
> > this task is subject of and performed through the rtadvd.conf(5) config=
uration file, but I
> > haven't managed yet to accomplish such a task (to speak simple: I'd lik=
e to have a router
> > of a subnet always at IPv6 Network PREFIX:0:0:0:1). =20
>=20
> Isn=E2=80=99t sufficient just to give the router a static IPv6 address? T=
hat=E2=80=99s what we do here.

Hello.

The router itself has on all inbound NICs static ULAs, ending as desired on=
 "fc:/7-PREFIX::1".
Using KAME dhcp6c, software from 2008(!), with a configuration obatined for=
 delegating a
prefix, each NIC - except tun0 for whatever reason - gets a prefix, the inb=
ound NICs then seem
to get a EUI64 generated IPv6 (although I sepcified "privacy", but this see=
ms to be
ignored, sadly ...).=20
=20
>=20
> > The only config tag I can imagine is responsible for what I'd like to a=
chive is the "addr"
> > tag mentioned in rtadvd.conf(5), but whatever I fill this tag with - th=
e desired effect is
> > never achived (i.e addr=3D"::0.0.0.1"). My "FreeBSD homebrewn" router h=
as several networks,
> > attached to vlan. Each interface is subject of an ULA prefix and an IPv=
6 prefix provided
> > by our ISP. It is possible to pin the ULA toward the desired address, l=
ike
> > addr=3D"fd50:c450::1", but then the ISP provided prefix seems not to be=
 set properly or is
> > completely absent. Omitting "addr=3D" provides the interface with ULA p=
refix and ISP prefix
> > - but obviously with the randomly generated 64bit host portion.
> >=20
> > Playing around with mutually suitable tags, like "pinfoflags", "raflags=
" or "rtflags" and
> > having probed almost every possible combination (with or without some s=
ense), it seems
> > impossible to provide a) both ULA and ISP prefix pin the host portion t=
o a desired 64bit
> > address, like "PREFIX::1".
> >=20
> > I do not exclude that I'm possibly incapable of comprehension the manpa=
ge (the language is
> > and the deeper semantics seem then to be hidden for me). So, if there i=
s a clear
> > expalanation how to achive the desired, please point me towards it (tha=
nks in advance!).
> >=20
> > Linux has this feature since a while and I can not believe that FreeBSD=
 lacks such a
> > feature.
> >=20
> > Thank you very much in advance,
> >=20
> > O. Hartmann
> >=20
> >=20
> > --=20
> >=20
> > A FreeBSD user =20
>=20
> --
> Bob Bishop
> rb@gid.co.uk
>=20
>=20
>=20
>=20



--=20

A FreeBSD user

--Sig_/vXO=ctu1Xv7nwtnQZNzQupa
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCZ7soRwAKCRCxzvs8Oqok
rxDoAP0YSMsesSBXe+1o0NYxpLWXqSv7GOX992f+hO7mPWLRGQEAgrw6+F5PH+cP
Z7xwzuKqcUfL7qWlOgW1ZVwy7jKz7QY=
=201v
-----END PGP SIGNATURE-----

--Sig_/vXO=ctu1Xv7nwtnQZNzQupa--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20250223144203.7f61d0bf>