How does VyOS handles IPv6 Router Advertizements?

Hi,

I’m trying to figure out how to get routes advertised via radv into the routing table. The objective is simple, define address statically but get the default route via radv. What is the right way todo it? I tried several things:

  • enable dhcpv6 on the interface
  • enable autoconf on the ipv6 address family

This kind of works but feels dirty:

  • dhcp6 has little to do with address assignment in IPv6 so, it just looks out of place to me, so not sure if it does anything at all.
  • it seems like autoconf does both address allocation and setting the default route (and possibly interferes with forwarding but I’m not sure), however I don’t want it to mess up with the address I only want the route.

I was tinkering with sysctl parameters and it seems that if I set net.ipv6.conf.all.accept_ra=2, enable forwarding and enable route solicitation it kind of works. But again I’m not sure if this is the right thing todo. So, is there a way to do it via VyOS interface? Will VyOS override sysctl setting that I put in or they will conflict in some way or get overriden?

Thanks,
-Dmitri