Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 10:21:16 -0800
From:      Doug Hardie <bc979@lafn.org>
To:        net@freebsd.org
Subject:   Re: accept_rtadv
Message-ID:  <D3BC7C05-E039-44B4-8FEF-4CA4E854A9CE@sermon-archive.info>
In-Reply-To: <409E9AFD-D9D5-4CA9-A923-F83F99885BDD@grem.de>
References:  <49F826CA-266F-4A4E-AA8D-978F6F727F8C@sermon-archive.info> <409E9AFD-D9D5-4CA9-A923-F83F99885BDD@grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help


> On 27 February 2021, at 04:37, Michael Gmelin <freebsd@grem.de> wrote:
> 
> 
> 
>> On 27. Feb 2021, at 08:21, Doug Hardie <bc979@lafn.org> wrote:
>> 
>> From the Handbook:
>> 
>> 32.9.2. Configuring IPv6
>> To configure a FreeBSD system as an IPv6 client, add these two lines to rc.conf:
>> 
>> ifconfig_rl0_ipv6="inet6 accept_rtadv"
>> rtsold_enable="YES"
>> 
>> This does not work.  I have in rc.conf:
>> 
>> ifconfig_bge0_ipv6="inet6 accept_rtadv"
>> ifconfig_ue0_ipv6="inet6 accept_rtadv"
>> ifconfig_ue1_ipv6="inet6 accept_rtadv"
>> 
>> On all three interfaces, ifconfig shows:
>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>> 
>> 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:
>> 
>> nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
>> 
>> 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.
>> 
> 
> 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.
> 
> Do you have anything else in your rc.conf (especially any other ifconfig lines)?
> 
> If not, could you try adding
> 
> ifconfig_bge0="up"
> etc.

### IPv6 Setup ###
ifconfig_bge0_ipv6="inet6 accept_rtadv"
ifconfig_bge0_ipv6="inet6 fec2::210 prefixlen 64"

ipv6_static_routes="lan1 lan2"
ipv6_route_lan1="fec1:: -prefixlen 64 fec2::205"
ipv6_route_lan2="fec2:: -prefixlen 64 fec2::205"

That is all associated with IPv6.  IPv4 is configured and used.

-- Doug




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D3BC7C05-E039-44B4-8FEF-4CA4E854A9CE>