From owner-freebsd-questions@freebsd.org Mon Jul 19 00:07:59 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8CC38674586 for ; Mon, 19 Jul 2021 00:07:59 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) Received: from mail-01.thismonkey.com (mail-01.thismonkey.com [IPv6:2406:3400:35e:6602::a01:232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thismonkey.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GShxl5HVdz4TjQ for ; Mon, 19 Jul 2021 00:07:54 +0000 (UTC) (envelope-from freebsd-lists-5@thismonkey.com) Received: from mailhub-01.thismonkey.com (mailhub-01.thismonkey.com [IPv6:2406:3400:35e:6601:0:0:a01:11e]) by mail-01.thismonkey.com (8.15.2/8.15.2) with ESMTP id 16J07cMN091258; Mon, 19 Jul 2021 10:07:38 +1000 (EST) (envelope-from freebsd-lists-5@thismonkey.com) X-TM-Via-MX: mailhub-01.thismonkey.com Received: from utility-01.thismonkey.com (utility-01.thismonkey.com [IPv6:2406:3400:35e:6601:0:0:a01:120]) by mailhub-01.thismonkey.com (8.15.2/8.15.2) with ESMTPS id 16J07cfY088500 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 19 Jul 2021 10:07:38 +1000 (AEST) (envelope-from freebsd-lists-5@thismonkey.com) Received: from utility-01.thismonkey.com (localhost [127.0.0.1]) by utility-01.thismonkey.com (8.16.1/8.16.1) with ESMTP id 16J07crA021560; Mon, 19 Jul 2021 10:07:38 +1000 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Received: (from root@localhost) by utility-01.thismonkey.com (8.16.1/8.16.1/Submit) id 16J07bVS021466; Mon, 19 Jul 2021 10:07:37 +1000 (EST) (envelope-from freebsd-lists-5@thismonkey.com) Date: Mon, 19 Jul 2021 10:07:36 +1000 From: Scott To: Mel Pilgrim Cc: freebsd-questions@freebsd.org Subject: Re: Specifying IPv6 off-link for a subnet Message-ID: Mail-Followup-To: Mel Pilgrim , freebsd-questions@freebsd.org References: <5ea688b3-79b9-8a28-0430-5a4651207ae0@bluerosetech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5ea688b3-79b9-8a28-0430-5a4651207ae0@bluerosetech.com> X-Virus-Scanned: clamav-milter 0.102.2 at mail-01.thismonkey.com X-Virus-Status: Clean X-Rspamd-Queue-Id: 4GShxl5HVdz4TjQ X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=thismonkey.com; spf=pass (mx1.freebsd.org: domain of freebsd-lists-5@thismonkey.com designates 2406:3400:35e:6602::a01:232 as permitted sender) smtp.mailfrom=freebsd-lists-5@thismonkey.com X-Spamd-Result: default: False [-1.58 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2406:3400:35e:6602::a01:232:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[2406:3400:35e:6602::a01:232:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.78)[-0.781]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[thismonkey.com,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:10143, ipnet:2406:3400:340::/42, country:AU]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2021 00:07:59 -0000 On Wed, Jul 07, 2021 at 07:43:48PM -0700, Mel Pilgrim wrote: > On 2021-07-05 8:45, Scott wrote: > > I have manually configured IPv6 on the interfaces: > > ifconfig_vmx0_ipv6="inet6 xx::yy prefer_source accept_rtadv -autoconf no_radr" > > > > The prefix appears in the prefix list as: > > # ndp -p > > xx::/64 if=vmx0 > > flags=LO vltime=infinity, pltime=infinity, expire=Never, ref=1 > > No advertising router > > > > Here's the received RA: > > 01:26:48.355186 IP6 (class 0xe0, hlim 255, next-header ICMPv6 (58) payload length: 64) fe80::1 > ff02::1: [icmp6 sum ok] ICMP6, router advertisement, length 64 > > hop limit 64, Flags [none], pref high, router lifetime 1800s, reachable time 0ms, retrans timer 0ms > > source link-address option (1), length 8 (1): 00:00:5e:00:02:02 > > mtu option (5), length 8 (1): 9000 > > prefix info option (3), length 32 (4): xx::/64, Flags [none], valid > > time 3600s, pref. time 60s > > > > Note that there is no L flag set, so the prefix is off-link. > > You're misinterpreting what the L flag in a PIO means. > > If set, the L flag indicates the prefix can be used for on-link > determination. But if the L bit is unset, the PIO isn't making any > assertion about the prefix being on-link or off-link. More importantly, > a host must not use a PIO with L=0 to conclude a prefix is off-link. > > IOW, it is correct for a host to do nothing when it receives an RA PIO > with no flags for an already-configured prefix. > Thanks, so for the case of manually addressed devices on a private vLAN/IPPL there must be a way to specify that the configured prefix is not on-Link. From section 5 of https://tools.ietf.org/id/draft-nordmark-intarea-ippl-00.xml#n-ipv6-over-ippl: "IPv6 Neighbor Discovery RFC4861 can be used to get all the hosts on the link to send all unicast packets except those send to link-local destination addresses to the routers. That is done by setting the L-flag (on-link) to zero for all of the Prefix Information options." How does one achieve this on FreeBSD?