[TriLUG] IPv6 equivalent to dhclient list

Kevin Otte nivex at nivex.net
Wed Jan 7 11:18:58 EST 2015


If you do end up querying the neighbor table, you might want to precede 
it with a ping6 -c2 ff02::1%eth0 (or whatever your LAN interface is). 
That's not a guarantee to get everyone, but most machines answer for the 
all-nodes multicast.

On 01/06/2015 09:07 PM, Aaron Joyner wrote:
> Oh, you said you didn't want to do that...  Whoops...  :)  That is the
> canonical way that I know of to get the list of ipv6 hosts.  Unless you
> want to do the truly awful idea of running DHCP for v6 hosts to get a
> leases file, it's probably what you're left with.
>
> ip -6 neigh, under the hood, is asking the kernel directly over a raw
> socket.  I didn't find any convenient interface to that data via
> /proc/sys/net.  I think you're stuck calling ip from the CGI... but why is
> that bad?
>
> On Tue, Jan 6, 2015 at 9:00 PM, Aaron Joyner <aaron at joyner.ws> wrote:
>
>> $ ip -6 neighbor


More information about the TriLUG mailing list