From nobody Fri Feb 21 13:31:53 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 4YzrdR4CtKz5pqDk for ; Fri, 21 Feb 2025 13:31:55 +0000 (UTC) (envelope-from john@dnepro.net) Received: from mail.dnepro.net (mail.dnepro.net [178.219.93.45]) (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 4YzrdQ4jNJz3Jf1 for ; Fri, 21 Feb 2025 13:31:54 +0000 (UTC) (envelope-from john@dnepro.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=dnepro.net header.s=mail header.b=Z5gCpsNe; dmarc=pass (policy=quarantine) header.from=dnepro.net; spf=pass (mx1.freebsd.org: domain of john@dnepro.net designates 178.219.93.45 as permitted sender) smtp.mailfrom=john@dnepro.net Received: from [192.168.20.61] (unknown [192.168.20.61]) by mail.dnepro.net (Postfix) with ESMTPSA id E47DBF1E for ; Fri, 21 Feb 2025 15:31:58 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dnepro.net; s=mail; t=1740144718; bh=jOdN26KuLVpUSoA8vNZDeeOZrk7cJUP7jeDJyWsiOXc=; h=Date:Subject:To:References:From:In-Reply-To; b=Z5gCpsNeOmUv9EBYDXz5UAXuM9nXMwa/XrO40BuE6MPDGwQpdI0T8MftiKx/aYyMW rz6rxtnZZYpuuHGc4jQdd9Pw4cHd8fDooUUtymBBDuuMmKqHpMyVUmcApdXeaaJkYt ODUin+V5ooTML0oSgxOHRPRDTJOhJbNNcA45O0lE= Message-ID: Date: Fri, 21 Feb 2025 15:31:53 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: rtadvd(8) How to IPv6 tokenize interface identifier Content-Language: en-US To: freebsd-net@freebsd.org References: <20250221075300.4466057d@thor.sb211.local> From: Eugene Pereviazko In-Reply-To: <20250221075300.4466057d@thor.sb211.local> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-3.92 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.92)[-0.925]; DMARC_POLICY_ALLOW(-0.50)[dnepro.net,quarantine]; R_DKIM_ALLOW(-0.20)[dnepro.net:s=mail]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:51069, ipnet:178.219.80.0/20, country:UA]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[dnepro.net:+] X-Rspamd-Queue-Id: 4YzrdQ4jNJz3Jf1 X-Spamd-Bar: --- 21.02.25 08:52, A FreeBSD User пише: > Hello, > > Linux (especially OpenWRT we use) knows about a concept named "IPv6 tokenized 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) configuration 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). Am I correct that you want your host to combine predefined host part (instead of eui64) with dynamically received prefix? Like, set host part to ::DEAD:1 then receive 2001:db8:1234:4321::/64 prefix from router and get your address of 2001:db8:1234:4321::DEAD:1? Then rtadvd is not a tool for that. rtadvd is for advertising, not receiving advertisements. If I'm not mistaken You should try dhcpcd from ports or packages, specifically "slaac token" verb, as I don't know of similar feature in base system. > Linux has this feature since a while and I can not believe that FreeBSD lacks such a feature. > > Thank you very much in advance, > > O. Hartmann > > -- Eugene Pereviazko