Counting active ipv6 clients on client interface?

Is there a way to get the current number of ipv6 clients on the client interface? I think some stupid solution would be

ip -6 neigh show | grep eth0.X | grep REACHABLE | wc -l

The ipv6leases is just empty, since the clients are using RA.

ubus call dhcp ipv6leases

sadly this wont work accurately without some hysteresis... clients will toggle between several states ( STALE <> DELAY <> REACHABLE etc. )

1 Like