Using the ping6 command you can find the link-local address of ipv6 hosts out of an interface using:
ping6 -I eth0 ff02::1
This will ping everything in the subnet and so you can see what is out there. This can be viewed in ndp
.
Is it possible to ping everything in a prefix so you can determine the global-scope unicast addresses of hosts? Note that this assumes that the ipv6 addresses are statically assigned rather than auto-configured from a rad
- so we can't just work it out from a mac address.
In ipv4 terms, this would be functionally equivalent to ping -b 192.168.1.0/24
Lets say our prefix is 2001:470:1f09:131::/64
, am looking for a way of doing something like:
ping6 -b 2001:470:1f09:131::/64
(I know that -b
is buffer size, this for illustration only)
Note that this is OpenBSD which doesn't support an IP address in -I:
-I interface
Source packets with the given interface address. This flag ap-
plies if the ping destination is a multicast address, or link-lo-
cal/site-local unicast address.