From nobody Fri Feb 21 17:45:09 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 4YzyFl4VzXz5p21L for ; Fri, 21 Feb 2025 17:45:15 +0000 (UTC) (envelope-from roy@marples.name) Received: from sender-of-o59.zoho.eu (sender-of-o59.zoho.eu [136.143.169.59]) (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 4YzyFl0wxvz3v6d for ; Fri, 21 Feb 2025 17:45:15 +0000 (UTC) (envelope-from roy@marples.name) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; t=1740159911; cv=none; d=zohomail.eu; s=zohoarc; b=TGRuFXgeAiWYimaU0CLgwINk4MXKqxW3p2BGGCUxVsNQ7tYNuFvzWaCoJLphgK4nS7GGFPoF72pfzK/ay37j02H3Q6Xz3aAKXDYOOfX/3aJIJF/zX7w58Np4T7u9DXF6e/28btaS613LYNlSxTnf9HUS1IQqntDgOpq5x05zU/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1740159911; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=C0he+mW6235LKpAytWGRmGfACFsaiPLoxdn9ZaVLk+Y=; b=HNAaDx/7MCWG91I0CVXK2KEUrJSnegr50z/FMfrSL5oAsHmIBFAAZV4JSi+6g6XBkSOKNbXL0IXqvoB/VUtoUz9OCB/Mrhgzx7se6Ugd8A7+NX8pmusQHKJricAuvVDc7X6nofRBLJlt5TqVjVOtMWecSGSfhbIOEu5j3v1IfiI= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=marples.name; spf=pass smtp.mailfrom=roy@marples.name; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1740159911; s=zmail; d=marples.name; i=roy@marples.name; h=Date:Date:From:From:To:To:Cc:Cc:Message-ID:In-Reply-To:References:Subject:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=C0he+mW6235LKpAytWGRmGfACFsaiPLoxdn9ZaVLk+Y=; b=N/YKA7wNpFThgYRS8Ykx29iPzeA/WU6RabwgjvnylEtk6DMgrfdQm3QGYq42nnnm jPnlcp+oy9aliqNvMNuXJxFuTXdzRlLNPx5M6AFDL9RRyV3mvCkj7uaNcGaN9xeTMw1 VHnRhDeSX13KEs97vLW/9E9ebcB+TTC0kEGrdLOA= Received: from mail.zoho.eu by mx.zoho.eu with SMTP id 1740159909498437.29742624715345; Fri, 21 Feb 2025 18:45:09 +0100 (CET) Date: Fri, 21 Feb 2025 17:45:09 +0000 From: Roy Marples To: "Eugene Pereviazko" Cc: "freebsd-net" Message-ID: <195299cfe41.d7a8e8731186.6219551516433988607@marples.name> In-Reply-To: References: <20250221075300.4466057d@thor.sb211.local> Subject: Re: rtadvd(8) How to IPv6 tokenize interface identifier 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 Importance: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:41913, ipnet:136.143.168.0/23, country:CH] X-Rspamd-Queue-Id: 4YzyFl0wxvz3v6d X-Spamd-Bar: ---- Hi ---- On Fri, 21 Feb 2025 13:31:53 +0000 Eugene Pereviazko 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