Good Morning Everyone
$ ndisc6 2001:4f8:3:2e::1 eth0 Soliciting 2001:4f8:3:2e::1 (2001:4f8:3:2e::1) on eth0... Target link-layer address: 00:11:BC:A5:48:00
from 2001:4f8:3:2e::1
Do note that if the address does not exist you get what you showed:
$ ndisc6 2001:4f8:3:2e::2 eth0 Soliciting 2001:4f8:3:2e::2 (2001:4f8:3:2e::2) on eth0... Timed out. Timed out. Timed out. No response.
My goal is to have an equivalent to "arping -U <my-ipv4-configured-on-eth0> -I eth0" to do a "Unsolicited ARP mode, update your neighbours". When I run "ndisc6 <ipv6-of-a-neighbor> eth0" I get the response. But when I do a "ndisc6 <my-ipv6-configured-on-my-eth0> eth0" I get the "Timed out". Maybe I don't understand it correctly =(
'ip nei' can be used to look at the current entries, it does not allow for sending a ND solication, but effectively one can also do:
in one shell: tcpdump -i eth0 icmp6 in another: ping6 -i eth0 <address>
should give you the packets too unless it is cached, but then you can remove it with 'ip nei flush ...' to force it to be cached again.
Note that 'ip -4 nei' is effectively showing the ARP tables, while 'ip -6 nei' is for the ND based information.
Thanks! I like the "ip" tool more and more... =)
gcc -o ndping ndping.c -Wall -lnet -lpcap ndping.c: In function ‘callback’: ndping.c:65: error: ‘LIBNET_ICMPV6_NS_H’ undeclared (first use in this function)
You need to install the libnet headers for that to work.
I've installed "libpcap0.8-dev" and "libnet1-dev" (debian squeeze). Maybe I miss another -dev package, but I can't find which one is missing =(
Cheers, Tobias
PS: I thought I should cleanup the list and write a new message to not "penetrate" the thread "hosting for 1 powersupply with lan port" anymore =) Sorry for the inconvience and for switching the language in the thread.