TIL about Subnet-Router Anycast addresses in IPv6! According to the RFC 1884, th...

@jana@social.jsteuernagel.de

TIL about Subnet-Router Anycast addresses in IPv6!

According to the RFC 1884, the IP that has 0 as the host part is treated specially as an anycast address that any router on the subnet should reply to.
I knew about the ff02::* addresses, but this was news to me.

I found some posts online describing how the implementation of this part of the spec seems to differ a lot between OSes. Some respond to ICMPv6 on the address, but don't bind daemons to the address. Some totally ignore the address and some reply and bind daemons.

FreeBSD seems to be in the “do nothing" category. Nothing binds, no ICMPv6 response. Linux does both and I did test at least the ICMPv6 part. For example on my main FreeBSD host, on the VM bridge interface, I get a response from the Alpine VM running my mail server, when I ping the SRA address (The VM has docker, so it has routing enabled).

Other tests on other systems with Linux revealed the same. Routing enabled? SRA address reaches the router and gets a response (though from the normal router address, not the SRA address).

Interestingly enough, the first ping I do took longer. 250ms, instead of 0.2ms. But only on the first one. Seems like the Linux kernel first does some auto config on the first request.

And I only found out about this, because Netbox was refusing to add a ::0 address to an interface (Which I am doing and is working).

Now, question, were others aware of this? It doesn't seem to be used for much of anything, so I'm not surprised I never saw it before, but it is cool to have learned about! :neobot_happy: