Re: net.ipv6.conf.all.accept_ra=2 does not work
Nicolas Piatto <[email protected]> Tue, 04 Jan 2022 08:22:22 +0000
| Newsgroups | org.kernel.vger.lartc |
|---|---|
| Message-ID | <[email protected]> |
--------------dpP86KhA68W72jLsvIt2IO7N Content-Type: multipart/mixed; boundary="------------2vJtvIT4H5zk60PhnO5tgKeP"; protected-headers="v1" From: Nicolas Piatto <[email protected]> To: dE <[email protected]>, [email protected] Message-ID: <[email protected]> Subject: Re: net.ipv6.conf.all.accept_ra=2 does not work References: <CADofXPCVB_b+UtK8NcSQ9O5K4vnY2ZXdFX-pxTCJnT8GJK73Sw@mail.gmail.com> In-Reply-To: <CADofXPCVB_b+UtK8NcSQ9O5K4vnY2ZXdFX-pxTCJnT8GJK73Sw@mail.gmail.com> --------------2vJtvIT4H5zk60PhnO5tgKeP Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 1/4/22 09:50, dE wrote: > Hello everyone, > I'm trying to configure my machine as an IPv6 router. When I set > net.ipv6.conf.all.forwarding=3D1, the default routes get deleted, which= > is expected. But setting net.ipv6.conf.all.accept_ra=3D2 does not help > either. Set it before or after net.ipv6.conf.all.forwarding=3D1, the > default routes WILL get deleted and I've to add it manually. I've even > tried setting these in sysctl.conf and rebooted with the same effect. Hi, I got once that problem and added the default-route statically as a hotfix (I used a setup with FHRP, getting the route via RA was not a strong-requirement so I did not tshoot further) Did you try to set the `accept_ra=3D2` under the interface itself instead= of all ? reading the doc: ``` Functional default: enabled if local forwarding is disabled. disabled if local forwarding is enabled. ``` I'm wild guessing assuming that `all.accept_ra=3D2` might be overided by = a default `disabled` under the interface. Best regards, Nicolas --------------2vJtvIT4H5zk60PhnO5tgKeP-- --------------dpP86KhA68W72jLsvIt2IO7N Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBCvRLfnJ3+qPDyuPaiYL7Ln0XT4FAmHUA78ACgkQaiYL7Ln0 XT4KDwgAlfVIoMfYMF1la3ZeAf8ocjMp30BJSErRfjXpLy5cT0ibhDdKDrEd1w/3 5+UbugN4lr/SLQIeDNhyp8p/CxQRSdkUgyVBYdDlEaQmEm4LdV5WktzHvqlAdln4 +mRtSeOfmT+BoyN+PBD8XmKQ+jRIr+0c/kPh+u0CzulibY+ui2s+rFhB15H6BmMf 47Us+JSo9Kr93agXngjr2cfB1KtkyLZspalV3M1ilnz9DUH7WFx1XPbTtHQzkK5J /6PSamDUIB8GqvOXjq9FdP4lFCGReYxOkzPzWLWFFTtAJBcUU50Cqw2W3KJ8CISX qnQS9Qr/iTwC3aixu+KCBTZUD0vHuQ== =08ut -----END PGP SIGNATURE----- --------------dpP86KhA68W72jLsvIt2IO7N--