Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Feb 2021 19:34:31 +0100
From:      Michael Gmelin <freebsd@grem.de>
To:        Doug Hardie <bc979@lafn.org>
Cc:        net@freebsd.org
Subject:   Re: accept_rtadv
Message-ID:  <E848F5A9-9B56-4762-8F47-ED71B26ED001@grem.de>
In-Reply-To: <D3BC7C05-E039-44B4-8FEF-4CA4E854A9CE@sermon-archive.info>
References:  <D3BC7C05-E039-44B4-8FEF-4CA4E854A9CE@sermon-archive.info>

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


> On 27. Feb 2021, at 19:21, Doug Hardie <bc979@lafn.org> wrote:
>=20
> =EF=BB=BF
>>> On 27 February 2021, at 04:37, Michael Gmelin <freebsd@grem.de> wrote:
>>>=20
>>>=20
>>>=20
>>>> On 27. Feb 2021, at 08:21, Doug Hardie <bc979@lafn.org> 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<PERFORMNUD,AUTO_LINKLOCAL>
>>>=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<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
>>>=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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E848F5A9-9B56-4762-8F47-ED71B26ED001>