From nobody Fri Feb 21 06:52:33 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YzgnQ0q65z5pFDC; Fri, 21 Feb 2025 06:53:14 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp5.goneo.de [IPv6:2001:1640:5::8:30]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4YzgnN2pMxz3Gyx; Fri, 21 Feb 2025 06:53:12 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=dW2FrVKz; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 2001:1640:5::8:30 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub2.goneo.de (hub2.goneo.de [IPv6:2001:1640:5::8:53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id 8F138240EA8; Fri, 21 Feb 2025 07:53:09 +0100 (CET) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 0857F240443; Fri, 21 Feb 2025 07:53:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1740120788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=DhSMFwAwlR4r4hWjGUL8SnKf4Xj4P2t56pWoBFPn8s8=; b=dW2FrVKzLdC0Nzi7v2VBqJmVmbpPWdEBvdl23ne1vUImwtYvfCy9hz+UFTivViUxA0c83L uQVDEIQtzTldveV8jlmvZ9dzxgZ4xFLkcul7N4g0Bw/TK5arfl6vWclYqCnWs+RGeuWzQA +xD/NebkBllgHuK2EFMiV2xuI76WTxZS7pWWI473g+hTr4vWLgq96FedLrMlBl8HnPHzRQ 55FqrAQfMWtmEUKNAbMTlxr98+TYOct6OYeOEaqwua8+PKO/I6C44DF5rVxZss5KTtjc0W gkuJOJMkwGLqXPMWCM3DfmHuPN6RBxbuM8waXoKEhLvCQhA+nl/FWKgLZyT+iw== Received: from thor.sb211.local (dynamic-2a02-3100-2307-1202-b93b-33ab-6241-2cf4.310.pool.telefonica.de [IPv6:2a02:3100:2307:1202:b93b:33ab:6241:2cf4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id B23B02405D9; Fri, 21 Feb 2025 07:53:07 +0100 (CET) Date: Fri, 21 Feb 2025 07:52:33 +0100 From: A FreeBSD User To: FreeBSD CURRENT , freebsd-net@freebsd.org Subject: rtadvd(8) How to IPv6 tokenize interface identifier Message-ID: <20250221075300.4466057d@thor.sb211.local> List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/615oeyxN0dZVm=zV_2hbSF8"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Rspamd-UID: 4ef876 X-Rspamd-UID: 1e51ba X-Spamd-Result: default: False [-5.69 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; R_SPF_ALLOW(-0.20)[+ip6:2001:1640:5::8:0/112]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; RCVD_IN_DNSWL_LOW(-0.10)[2001:1640:5::8:30:from]; ARC_NA(0.00)[]; ASN(0.00)[asn:25394, ipnet:2001:1640::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-net@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4YzgnN2pMxz3Gyx X-Spamd-Bar: ----- --Sig_/615oeyxN0dZVm=zV_2hbSF8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hello, Linux (especially OpenWRT we use) knows about a concept named "IPv6 tokeniz= ed interface identifier". The concept is self explanatory, a interface/router obtains 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 rtadvd(8) = daemon. I guess this task is subject of and performed through the rtadvd.conf(5) configurat= ion file, but I haven't managed yet to accomplish such a task (to speak simple: I'd like to= have a router of a subnet always at IPv6 Network PREFIX:0:0:0:1). The only config tag I can imagine is responsible for what I'd like to achiv= e is the "addr" tag mentioned in rtadvd.conf(5), but whatever I fill this tag with - the desire= d effect is never achived (i.e addr=3D"::0.0.0.1"). My "FreeBSD homebrewn" router has several= networks, attached to vlan. Each interface is subject of an ULA prefix and an IPv6 prefix prov= ided by our ISP. It is possible to pin the ULA toward the desired address, like addr=3D"fd50:c4= 50::1", but then the ISP provided prefix seems not to be set properly or is completely absent. O= mitting "addr=3D" provides the interface with ULA prefix and ISP prefix - but obviously with = the randomly generated 64bit host portion. Playing around with mutually suitable tags, like "pinfoflags", "raflags" or= "rtflags" and having probed almost every possible combination (with or without some sense= ), it seems impossible to provide a) both ULA and ISP prefix pin the host portion to a = desired 64bit address, like "PREFIX::1". I do not exclude that I'm possibly incapable of comprehension the manpage (= the language is and the deeper semantics seem then to be hidden for me). So, if there is a clea= r expalanation how to achive the desired, please point me towards it (thanks in advance!). Linux has this feature since a while and I can not believe that FreeBSD lac= ks such a feature. Thank you very much in advance, O. Hartmann --=20 A FreeBSD user --Sig_/615oeyxN0dZVm=zV_2hbSF8 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRQheDybVktG5eW/1Kxzvs8OqokrwUCZ7gizAAKCRCxzvs8Oqok r0m7AP0ZSdHzoVRagBPVuDWWxcGp7pr4qrWK4y/6urBN0V3V3wEAoJafULkNvzXP GfVCWOFbZze/RJuF76wGmqlZc/V0/gs= =dfnX -----END PGP SIGNATURE----- --Sig_/615oeyxN0dZVm=zV_2hbSF8--