From owner-freebsd-net@freebsd.org Sat Feb 27 18:21:21 2021 Return-Path: Delivered-To: freebsd-net@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 070FE54F76E for ; Sat, 27 Feb 2021 18:21:21 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dnvww61Xvz3kGJ for ; Sat, 27 Feb 2021 18:21:20 +0000 (UTC) (envelope-from bc979@lafn.org) Received: by mailman.nyi.freebsd.org (Postfix) id CE77C54F5D8; Sat, 27 Feb 2021 18:21:20 +0000 (UTC) Delivered-To: net@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 CE39E54F9A9 for ; Sat, 27 Feb 2021 18:21:20 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from mail.sermon-archive.info (sermon-archive.info [71.177.216.148]) by mx1.freebsd.org (Postfix) with ESMTP id 4Dnvwv5p27z3kNY for ; Sat, 27 Feb 2021 18:21:19 +0000 (UTC) (envelope-from bc979@lafn.org) Received: from [10.0.1.251] (mini [10.0.1.251]) by mail.sermon-archive.info (Postfix) with ESMTPSA id 4Dnvwr75nHz2fjRq for ; Sat, 27 Feb 2021 10:21:16 -0800 (PST) From: Doug Hardie Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: accept_rtadv Date: Sat, 27 Feb 2021 10:21:16 -0800 References: <49F826CA-266F-4A4E-AA8D-978F6F727F8C@sermon-archive.info> <409E9AFD-D9D5-4CA9-A923-F83F99885BDD@grem.de> To: net@freebsd.org In-Reply-To: <409E9AFD-D9D5-4CA9-A923-F83F99885BDD@grem.de> Message-Id: X-Mailer: Apple Mail (2.3654.60.0.2.21) X-Virus-Scanned: clamav-milter 0.103.0 at mail X-Virus-Status: Clean X-Rspamd-Queue-Id: 4Dnvwv5p27z3kNY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bc979@lafn.org designates 71.177.216.148 as permitted sender) smtp.mailfrom=bc979@lafn.org X-Spamd-Result: default: False [-1.69 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[71.177.216.148:from]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[71.177.216.148:from:127.0.2.255]; DMARC_NA(0.00)[lafn.org: no valid DMARC record]; R_SPF_ALLOW(-0.20)[+ip4:71.177.216.148/32]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.01)[0.011]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:5650, ipnet:71.177.216.0/23, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[net] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2021 18:21:21 -0000 > On 27 February 2021, at 04:37, Michael Gmelin wrote: >=20 >=20 >=20 >> On 27. Feb 2021, at 08:21, Doug Hardie wrote: >>=20 >> =EF=BB=BF=46rom the Handbook: >>=20 >> 32.9.2. Configuring IPv6 >> To configure a FreeBSD system as an IPv6 client, add these two lines = to rc.conf: >>=20 >> ifconfig_rl0_ipv6=3D"inet6 accept_rtadv" >> rtsold_enable=3D"YES" >>=20 >> This does not work. I have in rc.conf: >>=20 >> ifconfig_bge0_ipv6=3D"inet6 accept_rtadv" >> ifconfig_ue0_ipv6=3D"inet6 accept_rtadv" >> ifconfig_ue1_ipv6=3D"inet6 accept_rtadv" >>=20 >> On all three interfaces, ifconfig shows: >> nd6 options=3D21 >>=20 >> ACCEPT_RTADV is not listed and sure enough router advertisements are = ignored. I have to manually enter: >> ifconfig bge0 ipv6 accept_rtadv >> for each interface. Then ifconfig shows: >>=20 >> nd6 options=3D23 >>=20 >> and the interface now accepts router advertisements. This is a bug, = but I don't kn >> ow if it's in the code or the handbook. >>=20 >=20 > I just tried here on 12.2-p4 with em0 and it worked as expected. I do = have ipv4 configured on that interface too though. >=20 > Do you have anything else in your rc.conf (especially any other = ifconfig lines)? >=20 > If not, could you try adding >=20 > ifconfig_bge0=3D"up" > etc. ### IPv6 Setup ### ifconfig_bge0_ipv6=3D"inet6 accept_rtadv" ifconfig_bge0_ipv6=3D"inet6 fec2::210 prefixlen 64" ipv6_static_routes=3D"lan1 lan2" ipv6_route_lan1=3D"fec1:: -prefixlen 64 fec2::205" ipv6_route_lan2=3D"fec2:: -prefixlen 64 fec2::205" That is all associated with IPv6. IPv4 is configured and used. -- Doug