Monday, November 28, 2022

Re: IPv6: ifconfig & rad messages fight disabling routes

On 2022-11-28, Geoff Steckel <gwes@oat.com> wrote:
> Short form:
>   I'm using rad to update local machines with the IPv6 address prefix
> currently assigned by Verizon. It runs on my firewall/external router.
> The router advertisement destructively changes the route and interface
> of an address on that machine.
>
> dhcpcd gets <prefix>/56 from Verizon fiber service.
> manually ifconfig interface1 inet6 <prefix>::9/56
> netstat -rn -f inet6 shows
>       <prefix/56>:: and <prefix>::9 routed via interface1
> everything works.
> rad message sent out from interface1:
>       <prefix>/56 valid 1000 preferred 10000

IPv6 stateless autoconfig on ethernet only supports /64 prefixes.

https://www.rfc-editor.org/rfc/rfc2464#section-4

An IPv6 address prefix used for stateless autoconfiguration [ACONF]
of an Ethernet interface must have a length of 64 bits.

What is supposed to happen is that dhcpcd assigns /64s to your "inside"
interfaces listed on the ia_pd line, and installs a -reject localhost
route for the wider prefix - it's your side of the link, so if you send
packets upstream they'll loop back to you, it installs the reject route
to avoid this. It's not intended that you assign delegated prefixes
manually.


--
Please keep replies on the mailing list.

No comments:

Post a Comment