From nobody Sat May 3 17:25:23 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 4ZqZSL25NKz5vdcr for ; Sat, 03 May 2025 17:25:38 +0000 (UTC) (envelope-from emss@mailbox.org) Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [IPv6:2001:67c:2050:0:465::103]) (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 4ZqZSJ1jBJz3qJd for ; Sat, 03 May 2025 17:25:36 +0000 (UTC) (envelope-from emss@mailbox.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mailbox.org header.s=mail20150812 header.b=kllZUwnW; spf=pass (mx1.freebsd.org: domain of emss@mailbox.org designates 2001:67c:2050:0:465::103 as permitted sender) smtp.mailfrom=emss@mailbox.org; dmarc=pass (policy=reject) header.from=mailbox.org Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (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) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4ZqZS629Tzz9sFm; Sat, 3 May 2025 19:25:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1746293126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WNhje6XD3vd9TUxKLrA8saJjflyvCUliakao5Ge5Ui0=; b=kllZUwnWshu+3i0UimpdS/yFhZpNYINO7A+sumNhpazDiEB1mV4WEJGq50ZF5B8SvLLtDF jaidjPSiex1dyXiMVf4zKNtsNQnIKDEtQLKqyI3tsSRoXRc+om8D9fRZnKL02ckpvhAB2F qeqwQnAotEJqLa2BV93k8Ut0X8pSXUnI7BjjPfv2QRuPEqBCug0aU2AZ+SWIH6V7HrIGD8 vkJTUpmCuZk2UZu/ispcySfvWnJGAg8z/DSD7x/rvn6ZcE97MdtauFrZeWb+D9ExOgiunh OyzYeAnN0074a/VZrenlWqBb7Tr7Th7mpiHj93GB4KYpLQeCQFp1DkYDaAfGsg== From: =?utf-8?Q?=C3=89ric_Masson?= To: Roy Marples Cc: "Eugene Pereviazko" , "freebsd-net" Subject: Re: rtadvd(8) How to IPv6 tokenize interface identifier In-Reply-To: <195299cfe41.d7a8e8731186.6219551516433988607@marples.name> (Roy Marples's message of "Fri, 21 Feb 2025 17:45:09 +0000") References: <20250221075300.4466057d@thor.sb211.local> <195299cfe41.d7a8e8731186.6219551516433988607@marples.name> X-Operating-System: FreeBSD 14.3-STABLE amd64 Date: Sat, 03 May 2025 19:25:23 +0200 Message-ID: <86ecx5y5bw.fsf@one-11.fr.eu.org> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MBO-RS-ID: e949294e4ea0f61438e X-MBO-RS-META: n7mdcba98x4bfxfiowpm3se1ftizuwip X-Rspamd-Queue-Id: 4ZqZSJ1jBJz3qJd X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.14 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_LONG(-0.94)[-0.944]; DMARC_POLICY_ALLOW(-0.50)[mailbox.org,reject]; R_SPF_ALLOW(-0.20)[+ip6:2001:67c:2050::/48]; R_DKIM_ALLOW(-0.20)[mailbox.org:s=mail20150812]; RCVD_IN_DNSWL_LOW(-0.20)[2001:67c:2050:0:465::103:from,2001:67c:2050:b231:465::202:received]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:199118, ipnet:2001:67c:2050::/48, country:DE]; RCVD_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[mailbox.org:dkim]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; DKIM_TRACE(0.00)[mailbox.org:+] Roy Marples writes: Hi Roy > As Eugene said, you can use dhcpcd in ports with the slaac directive like= so > > 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. Quite handy. Is there any way to specify multiple tokens, please? The goal would be to replace rc.conf's ifconfig aliases and automatically use the prefixes advertised to add a set of addresses. I've tried declaring suffixes on the same configuration line the following way : slaac token ::1 ::dead:beef ::ace:cafe Or using multiple lines : slaac token ::1 slaac token ::dead:beef slaac token ::ace:cafe First uses ::1 only & second uses ::ace:cafe (seems expected after a glance at if-options.c code) BR =C3=89ric