From owner-freebsd-net@freebsd.org Sat Feb 27 18:34:46 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 F3E7A5500B8 for ; Sat, 27 Feb 2021 18:34:45 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DnwDP4xW7z3lKq for ; Sat, 27 Feb 2021 18:34:45 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mailman.nyi.freebsd.org (Postfix) id A995054FFD2; Sat, 27 Feb 2021 18:34:45 +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 A95E5550305 for ; Sat, 27 Feb 2021 18:34:45 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnwDP20Jbz3lbR; Sat, 27 Feb 2021 18:34:44 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id f89d88e2; Sat, 27 Feb 2021 18:34:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=2PyaMnVFMb6/Zw wFBctSvIGQOaE=; b=R0LKw6VLECLes3u/zSGJFma4yXQ+K8kgp5omxIAs91qlgk RLT1iS6LVONdaJi8GEvffaWG9WNT3tIWty5sI39qBo0nKhcN8eVzVzt6WFDe2VRZ yAc5GLZJpUYSD9DBE/da9AoXcEmpRSOokuLnsHB8KsxzBTysYUV8gv+TsVZk7jDe Cy1wltzwoyqwk1bxGnY8kXcpvwBlL2jnISi7a7nEMs8be/1djUqgtrEg30H2SzGI MEhLfB8O3xsg71aV24BP+twmCCc2eGypZnVDlNiDF7Bdd5aG6toiKELU1/uVECwU ctK5r98Nr1tD40wLt++TIuyethl+3y6rktoaMjSA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=Uk+AopIx W3rVNPhEJuh/xQBUv40dvRAlan14nonCNKIgF4fBe9Aer5Z0N6Bg96iONfEtvqid 07L1nBUU6kVmGBTpf9/plDlMSZS1clf7Sx4axk1o25lgSJDcJ2ZttBEbJuUgLDha eIGCwe+cP46M673f2EuIyBG27spqWYFVCkSKzQaMtwJjyXxSFEdgINQMfOWZaxnv QYYpQ1sYnTOIJWaVfCiZNp586A7E7eK1Rpv9TGnoO2N5GPNsNtwnI3/G6sQ4mD1+ Q1pkXK63uxWMOkSIfGNwJK+F7C53RdwETzMAR8ZPm3PhULR9/YKqLhDeW7gISXwG /kKGQ8huXYXazA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id c1c17d4b (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Sat, 27 Feb 2021 18:34:32 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: accept_rtadv From: Michael Gmelin In-Reply-To: Date: Sat, 27 Feb 2021 19:34:31 +0100 Cc: net@freebsd.org Message-Id: References: To: Doug Hardie X-Mailer: iPhone Mail (18D52) X-Rspamd-Queue-Id: 4DnwDP20Jbz3lbR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] 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:34:46 -0000 > On 27. Feb 2021, at 19:21, Doug Hardie wrote: >=20 > =EF=BB=BF >>> 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 r= c.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 ign= ored. 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 hav= e ipv4 configured on that interface too though. >>=20 >> Do you have anything else in your rc.conf (especially any other ifconfig l= ines)? >>=20 >> If not, could you try adding >>=20 >> ifconfig_bge0=3D"up" >> etc. >=20 > ### IPv6 Setup ### Well, here you set "ifconfig_bge0_ipv6" to one value > ifconfig_bge0_ipv6=3D"inet6 accept_rtadv" And there you overwrite it with a new value=20 > ifconfig_bge0_ipv6=3D"inet6 fec2::210 prefixlen 64" Therefore, the first line has no effect at all. You can double check this by calling sysrc ifconfig_bge0_ipv6 Setting all things in one config setting might work (haven=E2=80=99t tried i= t myself), like in ifconfig_bge0_ipv6=3D"inet6 fec2::210 prefixlen 64 accept_rtadv" -m >=20 > ipv6_static_routes=3D"lan1 lan2" > ipv6_route_lan1=3D"fec1:: -prefixlen 64 fec2::205" > ipv6_route_lan2=3D"fec2:: -prefixlen 64 fec2::205" >=20 > That is all associated with IPv6. IPv4 is configured and used. >=20 > -- Doug >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"