Re: IPv6 networking stops on FreeBSD some time after boot

From: Dmitry Salychev <dsl_at_FreeBSD.org>
Date: Wed, 23 Sep 2026 19:04:55 UTC
Farooq Karimi Zadeh <hapu@riseup.net> writes:

> Hello
>
> I've got a VPS running 15.1-RELEASE-p1 which has got a network interface "vtnet0" and the provider supports both IPv4 and IPv6. IPv4 works
> fine on the machine all the time. However, IPv6 stops
>
> working some time after boot(10-20 minutes).
>
> The IPv6 gateway from the provider is fe80::1. This is "netstat -rn6":
>
> Routing tables
>
> Internet6:
> Destination                       Gateway                       Flags         Netif Expire
> ::/96                             link#2                        URS             lo0
> default                           fe80::1%vtnet0                UGS          vtnet0
> ::1                               link#2                        UHS             lo0
> ::ffff:0.0.0.0/96                 link#2                        URS             lo0
>
> XXXX:XXX:X:XXX::/64               link#1                        U            vtnet0
> XXXX:XXX:X:XXX::1                 link#2                        UHS             lo0
> fe80::%lo0/10                     link#2                        URS             lo0
> fe80::%vtnet0/64                  link#1                        U            vtnet0
> fe80::be24:11ff:febd:184b%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
>
> This is "ifconfig vtnet0":
>
> vtnet0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
>        
> options=ec07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS>
>
>         ether bc:24:11:bd:18:4b
>         inet xxx.xxx.xxx.xxx netmask 0xffffff80 broadcast xxx.xxx.xxx.xxx
>         inet6 fe80::be24:11ff:febd:184b%vtnet0 prefixlen 64 scopeid 0x1
>         inet6 XXXX:XXX:X:XXX::1 prefixlen 64
>         media: Ethernet autoselect (10Gbase-T <full-duplex>)
>         status: active
>         nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
>
> And "cat /etc/rc.conf | grep ipv6":
>
> ifconfig_vtnet0_ipv6="inet6 XXXX:XXX:X:XXX::1/64"
> ipv6_defaultrouter="fe80::1%vtnet0"
>
> "ping6 example.com" works for few minutes after a boot.
>
> Any hint appreciated. And let me know if more information is needed.
>
> BR,
>
> Farooq.

Could you show /etc/rc.conf (don't forget to strip off all the sensitive
info)? Do you still have the default IPv6 route when you cannot ping
anything? Can you do both `drill -4 example.com` and `drill -6
example.com`?

Regards,
Dmitry

-- 
https://wiki.freebsd.org/DmitrySalychev