ipv6 gateway and subnet issue on vps server

I'm having problems trying to add an ipv6 subnet, or even a single address, to my server. I have a /64 assigned, and my gateway is on a /48. I can get ipv6 internet access working with a few different configurations, but I can't get a working second address or subnet. I'm pretty certain it's a routing problem, and I'm not sure what else to try at this point.

Warning..(and apologies) this is a long post! I decided to overshare rather than not include something. I numbered each configuration attempt, so hopefully that helps keep it organized.

Code:
uname -a
FreeBSD george 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64

# 1
Doesn't get an ipv6 address.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 accept_rtadv"
rtsold_enable="YES"

# 2
Doesn't work.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ipv6_defaultrouter="fe80::1%vtnet0"

# 3
I asked my provider and they gave me the gateway below.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ipv6_defaultrouter="2602:fed2:7116::1"

ifconfig -a inet6
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
    inet6 fe80::216:3eff:feac:4cea%vtnet0 prefixlen 64 scopeid 0x1
    inet6 2602:fed2:7116:706b::1 prefixlen 64
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

ping -6 -c3 google.com
ping: UDP connect: No route to host

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

It looks like the gateway doesn't get added to the routing table, maybe because it's a different subnet.
I can get ipv6 connectivity if I manually add the route.

Code:
doas route -6 add 2602:fed2:7116::1 -iface vtnet0
doas route -6 add default 2602:fed2:7116::1

# 4
Changed my address to /48 (even though it's /64).
Connection works, but I cannot get a 2nd address working.

Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/48"
ipv6_defaultrouter="2602:fed2:7116::1"

ifconfig -a inet6
vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=4c07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,TXCSUM_IPV6>
    inet6 fe80::216:3eff:feac:4cea%vtnet0 prefixlen 64 scopeid 0x1
    inet6 2602:fed2:7116:706b::1 prefixlen 48
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

ping -6 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::1 --> 2607:f8b0:4023:1002::66
16 bytes from 2607:f8b0:4023:1002::66, icmp_seq=0 hlim=109 time=5.298 ms
16 bytes from 2607:f8b0:4023:1002::66, icmp_seq=1 hlim=109 time=8.998 ms
16 bytes from 2607:f8b0:4023:1002::66, icmp_seq=2 hlim=109 time=4.951 ms

--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 4.951/6.416/8.998/1.831 ms

Add a second address.

Code:
doas ifconfig vtnet0 inet6 2602:fed2:7116:706b::2/48 alias
## results are the same if I use '...::2/64 alias'

ping -S 2602:fed2:7116:706b::2 -6 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2607:f8b0:4023:1002::66

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           2602:fed2:7116::1             UGS      vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116::/48               link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
2602:fed2:7116:706b::2            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 5
Using the link local address. Again, it appears the gateway doesn't get added to the routing table.
Code:
vi /etc/rc.conf
ipv6_ifconfig_vtnet0="fe80::216:3eff:feac:4cea%vtnet0"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::1/64"
ipv6_defaultrouter="2602:fed2:7116::1"
ipv6_gateway_enable="YES"

ping -6 -c3 google.com
ping: UDP connect: No route to host

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 6
Using static routes. It works, but I can't add an address.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ipv6_static_routes="vps1"
ipv6_route_vps1="2602:fed2:7116::1 -iface vtnet0"
ipv6_defaultrouter="2602:fed2:7116::1"

ping -6 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::1 --> 2607:f8b0:4023:1004::8a
16 bytes from 2607:f8b0:4023:1004::8a, icmp_seq=0 hlim=111 time=4.148 ms
16 bytes from 2607:f8b0:4023:1004::8a, icmp_seq=1 hlim=111 time=10.082 ms
16 bytes from 2607:f8b0:4023:1004::8a, icmp_seq=2 hlim=111 time=5.093 ms

--- google.com ping statistics ---
3 packets transmitted, 3 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 4.148/6.441/10.082/2.604 ms

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           2602:fed2:7116::1             UGS      vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116::1                 link#1                        UHS      vtnet0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

Adding an address.

Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::2/64"
ipv6_static_routes="vps1"
ipv6_route_vps1="2602:fed2:7116::1 -iface vtnet0"
ipv6_defaultrouter="2602:fed2:7116::1"

ping -6 -S 2602:fed2:7116:706b::2 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2607:f8b0:4023:1002::64

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           2602:fed2:7116::1             UGS      vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116::1                 link#1                        UHS      vtnet0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
2602:fed2:7116:706b::2            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 7
2 static routes, and added ::2 address alias
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::2/64"
ipv6_static_routes="vps1 vps2"
ipv6_route_vps1="2602:fed2:7116::1 -iface vtnet0"
ipv6_route_vps2="2602:fed2:7116:706b::1 -iface vtnet0"
ipv6_defaultrouter="2602:fed2:7116::1"

ping -6 -S 2602:fed2:7116:706b::2 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2607:f8b0:4023:1002::65

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           2602:fed2:7116::1             UGS      vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116::1                 link#1                        UHS      vtnet0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
2602:fed2:7116:706b::2            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 8
Static routes with gateway subnet, and default interface.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::2/64"
ipv6_static_routes="vps"
ipv6_route_vps="2602:fed2:7116:: -prefixlen 48 -iface vtnet0"
ipv6_defaultrouter="2602:fed2:7116::1"
ipv6_default_interface="vtnet0"

ping -6 -S 2602:fed2:7116:706b::2 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2607:f8b0:4023:1002::66

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           2602:fed2:7116::1             UGS      vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116::/48               link#1                        US       vtnet0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
2602:fed2:7116:706b::2            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 9
Using different gateway link local address.

Getting the address.
Code:
ping -6 ff02::2%vtnet0
PING(56=40+8+8 bytes) fe80::216:3eff:feac:4cea%vtnet0 --> ff02::2%vtnet0
16 bytes from fe80::ae1f:6bff:feac:5af%vtnet0, icmp_seq=0 hlim=64 time=0.755 ms

Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ipv6_defaultrouter="fe80::ae1f:6bff:feac:5af%vtnet0"

ping -6 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::1 --> 2607:f8b0:4023:1004::64

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           fe80::ae1f:6bff:feac:5af%vtnet0 UGS    vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0

# 10
Static routes with link local address.
Code:
vi /etc/rc.conf
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::1/64"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::2/64"
ipv6_static_routes="vps"
ipv6_route_vps="fe80::ae1f:6bff:feac:5af -iface vtnet0"
ipv6_defaultrouter="fe80::ae1f:6bff:feac:5af%vtnet0"

ping -6 -c3 google.com
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::1 --> 2607:f8b0:4023:1004::8b

--- google.com ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss


netstat -rn6
Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             link#2                        URS         lo0
default                           fe80::ae1f:6bff:feac:5af%vtnet0 UGS    vtnet0
::1                               link#2                        UHS         lo0
::ffff:0.0.0.0/96                 link#2                        URS         lo0
2602:fed2:7116:706b::/64          link#1                        U        vtnet0
2602:fed2:7116:706b::1            link#2                        UHS         lo0
2602:fed2:7116:706b::2            link#2                        UHS         lo0
fe80::%lo0/10                     link#2                        URS         lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::216:3eff:feac:4cea%lo0      link#2                        UHS         lo0
fe80::ae1f:6bff:feac:5af%vtnet0   link#1                        UHS      vtnet0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         link#2                        URS         lo0
 
  1. Hosting/VPS providers usually don't use SLAAC.
  2. Might work but depends on the provider, some require a different kind of configuration
  3. Is apparently the solution your provider uses.
  4. is a failure from the start. Don't mess around with the prefixlen. You've been assigned a /64, not a /48
  5. link-local address is already assigned to the interface. And it doesn't work because #3.
  6. is the correct solution. See #3
  7. why the second route? It's an implied route attached to lo0 you are forcing to vtnet0?
  8. bigger routing mess. Just stick to #3 and #6.
  9. You've sent a ping to a multicast address and a router responded. Doesn't mean it's the correct one. It just happens to be active at that time.
  10. please stop abusing link-local addresses.
 
Hiroo,

Thanks for the suggestion. When I do that, I lose all internet connectivity. I don't know if order in /etc/rc.conf matters, as I have my ipv4 settings first. More importantly, from
ifconfig(8)
Code:
up      Mark an interface “up”.  This may be used to enable an interface
        after an “ifconfig down”.  It happens automatically when setting
        the first address on an interface.  If the interface was reset
        when previously marked down, the hardware will be re-initialized.
The interface should be marked up automatically, so I don't see how adding ifconfig_vtnet0="up" would change anything. But for some reason it kills my connection.


SirDice,

Thanks for commenting on each attempt. I thought #6 was the right direction. I don't understand why the routing table looks the same for both ::1 and ::2 adresses, and one of them works, but the other doesn't. I think investigating with traceroute6(8) is my next step. I did some testing before, but wasn't documenting it.

I should also mention, I reached out to my provider about ipv6 (not working on FreeBSD) and they told me autconf should just work. I reached out again, and they gave me the gateway address, and changed my ipv6 /64 subnet because there was something wrong before, but they didn't say what. Anyway.. everything posted is with the new address they gave me.
 
It dawned on me that I haven't tried testing the ::2 address alone to make sure that works. It does! Then I reversed my setup, so that ::2 is the main ip and ::1 is the alias.

Code:
ifconfig_vtnet0_ipv6="inet6 2602:fed2:7116:706b::2/64"
ifconfig_vtnet0_alias0="inet6 2602:fed2:7116:706b::1/64"
ipv6_static_routes="vps1"
ipv6_route_vps1="2602:fed2:7116::1 -iface vtnet0"
ipv6_defaultrouter="2602:fed2:7116::1"

I get the same results as #6, as this is the same configuration. The main ip now set to ::2 works, but the alias address on ::1 does not.

Going back to the original config of ::1 main IP and ::2 alias, I used traceroute6(8) and magically the alias address started to work. I haven't timed it, but after a few minutes, it stops working again.

Here's the output of ping(8) and tcpdump(1) on both IP's, before running traceroute6(8)

Code:
ping -6 -S 2602:fed2:7116:706b::1 -c 1 freebsd.org
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::1 --> 2610:1c1:1:606c::50:15
16 bytes from 2610:1c1:1:606c::50:15, icmp_seq=0 hlim=51 time=42.244 ms

--- freebsd.org ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 42.244/42.244/42.244/0.000 ms

in another terminal

Code:
doas tcpdump src 2602:fed2:7116:706b::1
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on vtnet0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
08:17:52.652140 IP6 2602:fed2:7116:706b::1 > wfe0.nyi.freebsd.org: ICMP6, echo request, id 1011, seq 0, length 16
08:17:52.662728 IP6 2602:fed2:7116:706b::1.47890 > dns.quad9.net.domain: 38129+ PTR? 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.6.0.7.6.1.1.7.2.d.e.f.2.0.6.2.ip6.arpa. (90)
08:17:53.669792 IP6 2602:fed2:7116:706b::1.46602 > dns.quad9.net.domain: 38129+ PTR? 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.b.6.0.7.6.1.1.7.2.d.e.f.2.0.6.2.ip6.arpa. (90)
08:17:57.472446 IP6 2602:fed2:7116:706b::1 > 2602:fed2:7116::1: ICMP6, neighbor solicitation, who has 2602:fed2:7116::1, length 32
^C
4 packets captured
4878 packets received by filter
0 packets dropped by kernel

with the 2nd address

Code:
ping -6 -S 2602:fed2:7116:706b::2 -c 1 freebsd.org
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2610:1c1:1:606c::50:15

--- freebsd.org ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss

and

Code:
doas tcpdump src 2602:fed2:7116:706b::2
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on vtnet0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
08:25:34.121902 IP6 2602:fed2:7116:706b::2 > wfe0.nyi.freebsd.org: ICMP6, echo request, id 1083, seq 0, length 16
^C
1 packet captured
4977 packets received by filter
0 packets dropped by kernel

Now I run traceroute6(8) for a few seconds, terminate it, and test the 2nd address again.

Code:
traceroute6 -s 2602:fed2:7116:706b::2 freebsd.org
traceroute6 to freebsd.org (2610:1c1:1:606c::50:15) from 2602:fed2:7116:706b::2, 64 hops max, 28 byte packets
 1  2602:2c8::1  6.708 ms  2.776 ms  2.032 ms
 2  * * *
 3  *^C

Here's ping(8) and tcpdump(1)

Code:
ping -6 -S 2602:fed2:7116:706b::2 -c 1 freebsd.org
PING(56=40+8+8 bytes) 2602:fed2:7116:706b::2 --> 2610:1c1:1:606c::50:15
16 bytes from 2610:1c1:1:606c::50:15, icmp_seq=0 hlim=52 time=38.379 ms

--- freebsd.org ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 38.379/38.379/38.379/0.000 ms


doas tcpdump src 2602:fed2:7116:706b::2
tcpdump: verbose output suppressed, use -v[v]... for full protocol decode
listening on vtnet0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
08:32:44.511876 IP6 2602:fed2:7116:706b::2 > wfe0.nyi.freebsd.org: ICMP6, echo request, id 1166, seq 0, length 16
^C
1 packet captured
7134 packets received by filter
0 packets dropped by kernel

The output from tcpdump(1) looks the same as before, but now I have internet connectivity on ::2. It still shows 1 packet vs 4 packets on the ::1 adddress.

I thought that was strange, so I tested using curl(1) and verified the connection comes to life on 2602:fed2:7116:706b::2 for a few minutes after running traceroute6(8).

Before traceroute6(8), there is no connection.

Code:
curl -Is --connect-timeout 10 --interface 2602:fed2:7116:706b::2 https://www.freebsd.org/ | awk '/HTTP/'

After traceroute6(8).

Code:
curl -Is --connect-timeout 10 --interface 2602:fed2:7116:706b::2 https://www.freebsd.org/ | awk '/HTTP/'
HTTP/1.1 200 OK

Any suggestions on where to go from here?
 
Btw, which VPS provider are you using ? Could you try adding this to /etc/rc.conf and reboot:

Code:
ipv6_activate_all_interfaces="YES"
 
Don't need it, as long as you have a corresponding ifconfig_<interface>_ipv6 in /etc/rc.conf.
 
Back
Top