(usagi-users 03318) Re: How do I do ARP for IPv6 in USAGI?

Sharmila <[email protected]>
Newsgroups gmane.linux.ipv6.usagi.users
Message-ID <[email protected]>
Hi Patrick,
I can only answer the following question.

>Basically, I want to map the destination machine's
>IPv6 address (the other side of the network) to its
>MAC address.  How should I do it?


You can add the IPv6Address and corresponding MAC Address as below:

  Add neighbors using "ip"

    ip -6 neigh add <IPv6 address> lladdr <link-layer address> dev <device>
       e.g: (At the prompt) ip -6 neigh add fec0::1 lladdr 
02:01:02:03:04:05 dev eth0

The following are For your information

  Displaying neighbors using "ip"

       ip -6 neigh show
       fe80::201:23ff:fe45:6789 dev eth0 lladdr 00:01:23:45:67:89 router 
nud reachable


  Delete neighbors using "ip"

    ip -6 neigh del <IPv6 address> lladdr <link-layer address> dev <device>
       e.g: ip -6 neigh del fec0::1 lladdr 02:01:02:03:04:05 dev eth0

Hope this would be of help to you.

Regards,
Sharmila

At 04:46 PM 4/20/2005, Patrick Lam wrote:
>Hi,
>
>I noticed that the original arp does not work for
>IPv6.  Then I realized that the arp functionality in
>IPv6 is replaced by neighbor discovery (is this
>right??).
>
>Is neighbor discovery implemented in USAGI yet?  Can
>anyone give me a pointer to find the module(s) related
>to it?
>
>Basically, I want to map the destination machine's
>IPv6 address (the other side of the network) to its
>MAC address.  How should I do it?
>
>Thanks very much in advance.
>
>Regards,
>
>Patrick
>
>_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.