Monitoring the Latency of Pings to the Default IPv6 Route

Hi guys!

I am currently experiencing WAN packet loss for some seconds multiple times a day on various devices and I would like to monitor not only pings to the Google IPv4 and IPv6 DNS but also to the IPv6 default route to check if the link to the first hop on the ISP is different than his routing to the internet. I have OpenWrt 24.10.4 r28959-29397011cc running on my Cudy WR3000S v1 and my ISP is Glasfaser Ruhr and I have the 300Mbit/s download and 150Mbit/s upload contract.

Unfortunately they are using DS lite, but I managed to get it to work. The pppoe-wan6 interface uses Protocol: Virtual dynamic interface (DHCPv6 client) and every 24 hours the IPv6 address expires.

Protocol: DHCPv6 client
Prefix Delegated: 2a01:41e3:51a3:XXXX::/56
Address: 2a01:41e3:4000::1:XXXX/128
Gateway: fe80::4e73:4fff:fe22:XXXX
DNS: 2a01:41e0:10::6
DNS: 2a01:41e1:ffff:f001::4
Expires: 22h 51m 42sConnected: 1h 8m 8s

Pinging the gateway IP works fine:

root@OpenWrt:/tmp/rrd/OpenWrt# ping fe80::4e73:4fff:fe22:XXXX
PING fe80::4e73:4fff:fe22:XXXX (fe80::4e73:4fff:fe22:XXXX): 56 data bytes
64 bytes from fe80::4e73:4fff:fe22:XXXX: seq=0 ttl=64 time=6.785 ms
64 bytes from fe80::4e73:4fff:fe22:XXXX: seq=1 ttl=64 time=6.253 ms
64 bytes from fe80::4e73:4fff:fe22:XXXX: seq=2 ttl=64 time=8.010 ms
64 bytes from fe80::4e73:4fff:fe22:XXXX: seq=3 ttl=64 time=7.817 ms

I already installed Collectd and activated the ping network plugin and I would like to monitor in addition to Google IPv4 and IPv6 DNS the (changing) DHCPv6 gateway address. How can I do that?

Thank you guys :slight_smile:

You can use ping -t2 to choke at the gateway for wan device. Probably need hping if you want to time that.