I've successfully reinstalled my OVH VPS with FreeBSD, so I'm well into unsupported territory here. Before reinstalling I did verify IPv6 works as expected under Linux.
OVH's IPv6 configuration is a bit interesting. You can find the full instructions here, but the short version is:
IP: 2607:5300:201:3000::6714
Prefix: 128
Gateway: 2607:5300:201:3000::1
Obviously since the gateway (nor anything else) falls within the prefix, a static route is needed. I've attempted to model it with the configuration in /etc/rc.conf
However if I attempt to ping the gateway, I get this
The resulting routing table looks right to me
However if I change up my configuration to expand my prefix to include the gateway
My routing table becomes
Everything is fine, and IPv6 works great. I don't love this solution though, since I can't actually reach all addresses in that /112 without going through the gateway, and it seems like the original solution should work (in fact it does on Linux).
Does anyone have any thoughts on what the problem might be?
OVH's IPv6 configuration is a bit interesting. You can find the full instructions here, but the short version is:
IP: 2607:5300:201:3000::6714
Prefix: 128
Gateway: 2607:5300:201:3000::1
Obviously since the gateway (nor anything else) falls within the prefix, a static route is needed. I've attempted to model it with the configuration in /etc/rc.conf
Code:
ipv6_default_interface="vtnet0"
ifconfig_vtnet0_ipv6="inet6 2607:5300:201:3000::6714 prefixlen 128"
ipv6_static_routes="gateway default"
ipv6_route_gateway="-host 2607:5300:201:3000::1 -interface vtnet0"
ipv6_route_default="default 2607:5300:201:3000::1"
However if I attempt to ping the gateway, I get this
Code:
# ping6 2607:5300:201:3000::1
PING6(56=40+8+8 bytes) 2607:5300:201:3000::6714 --> 2607:5300:201:3000::1
ping6: sendmsg: No buffer space available
ping6: wrote 2607:5300:201:3000::1 16 chars, ret=-1
ping6: sendmsg: No buffer space available
ping6: wrote 2607:5300:201:3000::1 16 chars, ret=-1
^C
--- 2607:5300:201:3000::1 ping6 statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss
The resulting routing table looks right to me
Code:
...
default 2607:5300:201:3000::1 UGS vtnet0
...
2607:5300:201:3000::1 fa:16:3e:a6:85:f2 UHS vtnet0
2607:5300:201:3000::6714 link#1 UHS lo0
...
However if I change up my configuration to expand my prefix to include the gateway
Code:
ifconfig_vtnet0_ipv6="inet6 2607:5300:201:3000::6714 prefixlen 112"
ipv6_defaultrouter="2607:5300:201:3000::1"
My routing table becomes
Code:
...
default 2607:5300:201:3000::1 UGS vtnet0
...
2607:5300:201:3000::/112 link#1 U vtnet0
2607:5300:201:3000::6714 link#1 UHS lo0
...
Everything is fine, and IPv6 works great. I don't love this solution though, since I can't actually reach all addresses in that /112 without going through the gateway, and it seems like the original solution should work (in fact it does on Linux).
Does anyone have any thoughts on what the problem might be?