Re: ipv6 gateway on different subnet

Peter Miller <[email protected]>
Newsgroups gmane.os.netbsd.devel.network
Message-ID <CAO5oKY+CRLJK7qdaWy+aYVjfPU7xcAkfpXAXZpnhdNNwZknoow@mail.gmail.com>
On Wed, Jan 22, 2025 at 3:23 PM Christof Meerwald <[email protected]> wrote:

> Want to try the attached patch to make NetBSD send a neighbor
> advertisement that's similar to the one Linux sends to see if that
> makes it work? (the patch seems to work on my VPS - although it
> doesn't really make a difference there)
>
> BTW, my wild guess would be that your VPS provider is too aggressively
> filtering neighbor advertisements (so only allow those that Linux
> would send).

Woot! That appears to have worked. I've waited a while to see if
anything breaks, but it's all working great.

Thank you so much everyone for your help.

/etc/rc.conf
defaultroute="23.173.152.1"

ifconfig_vioif0="
    inet 23.173.152.249 netmask 255.255.255.0
    inet6 2602:fed2:7116:d82c::1 prefixlen 64 alias
    inet6 2602:fed2:7116:d82c::2 prefixlen 64 alias
    !route add -inet6 default 2602:fed2:7116::1 -connected -ifp vioif0
"

using the link local of the gateway works fine as well now
defaultroute6="fe80::da67:d9ff:fe58:3d1b%vioif0"

-- 
Thanks
Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.