IPv6 networking stops on FreeBSD some time after boot

From: Farooq Karimi Zadeh <hapu_at_riseup.net>
Date: Wed, 23 Sep 2026 16:53:49 UTC
<!DOCTYPE html>
<html style="direction: ltr;">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-charset-is-forced="true"
    bidimailui-detected-decoding-type="UTF-8" style="direction: ltr;">
    <p><font face="Vazir">Hello</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">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</font></p>
    <p><font face="Vazir">working some time after boot(10-20 minutes).</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">The IPv6 gateway from the provider is fe80::1.
        This is "netstat -rn6":</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">Routing tables<br>
        <br>
        Internet6:<br>
        Destination                       Gateway                     
         Flags         Netif Expire<br>
        ::/96                             link#2                       
        URS             lo0<br>
        default                           fe80::1%vtnet0               
        UGS          vtnet0<br>
        ::1                               link#2                       
        UHS             lo0<br>
        ::ffff:0.0.0.0/96                 link#2                       
        URS             lo0</font></p>
    <p><font face="Vazir">XXXX:XXX:X:XXX::/64               link#1     
                          U            vtnet0<br>
        XXXX:XXX:X:XXX::1                 link#2                       
        UHS             lo0<br>
        fe80::%lo0/10                     link#2                       
        URS             lo0<br>
        fe80::%vtnet0/64                  link#1                       
        U            vtnet0<br>
        fe80::be24:11ff:febd:184b%lo0     link#2                       
        UHS             lo0<br>
        fe80::%lo0/64                     link#2                       
        U               lo0<br>
        fe80::1%lo0                       link#2                       
        UHS             lo0<br>
        ff02::/16                         link#2                       
        URS             lo0</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">This is "ifconfig vtnet0":</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">vtnet0:
        flags=1008843&lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP&gt;
        metric 0 mtu 1500<br>
               
options=ec07bb&lt;RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS&gt;<br>
                ether bc:24:11:bd:18:4b<br>
                inet xxx.xxx.xxx.xxx netmask 0xffffff80 broadcast </font><font
        face="Vazir">xxx.xxx.xxx.xxx</font><br>
      <font face="Vazir">        inet6 fe80::be24:11ff:febd:184b%vtnet0
        prefixlen 64 scopeid 0x1<br>
                inet6 </font><font face="Vazir">XXXX:XXX:X:XXX::1</font><font
        face="Vazir"> prefixlen 64<br>
                media: Ethernet autoselect (10Gbase-T
        &lt;full-duplex&gt;)<br>
                status: active<br>
                nd6 options=21&lt;PERFORMNUD,AUTO_LINKLOCAL&gt;</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">And "cat /etc/rc.conf | grep ipv6":</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">ifconfig_vtnet0_ipv6="inet6 </font><font
        face="Vazir"></font><font face="Vazir">XXXX:XXX:X:XXX::1</font><font
        face="Vazir">/64"<br>
        ipv6_defaultrouter="fe80::1%vtnet0"</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">"ping6 example.com" works for few minutes
        after a boot.</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">Any hint appreciated. And let me know if more
        information is needed.</font></p>
    <p><font face="Vazir"><br>
      </font></p>
    <p><font face="Vazir">BR,</font></p>
    <p><font face="Vazir">Farooq.</font></p>
  </body>
</html>