How to connect 2 PC by IPV6 in a LAN?

5

1

I have two PC, A and B, connected by a switch.

I installed ipv6 on both of them.

Autoconfigure give them 2 IPV6 address:

A

preferred link-local fe80::21e:4fff:fec4:50f7, life infinite

B

preferred link-local fe80::221:9bff:fe32:811e, life infinite

But when I try to ping B from A:

ping6 fe80::221:9bff:fe32:811e

The system says there is no route.

But how to add the route?

lilyonwind

Posted 2009-11-03T11:11:47.317

Reputation: 105

Answers

3

1 . Use netsh interface ipv6 show interface on Host A to obtain the link-local address and the interface index for the Ethernet interface.

For example, the link-local address of Host A is FE80::210:5AFF:FEAA:20A2, and the interface index of the Ethernet interface is 4.

2 . Use netsh interface ipv6 show interface on Host B to obtain the link-local address and the interface index for the Ethernet interface.

For example, the link-local address of Host B is FE80::260:97FF:FE02:6EA5, and the interface index for the Ethernet interface is 3.

3 . From Host A, use Ping.exe to ping Host B.

For example, ping FE80::260:97FF:FE02:6EA5%4

Source

The interface index is also known as the zone index. The zone index differs by operating system. Windows example is given above. This is needed because the only routing information your hosts have is the FE80 address prefix.

For most unix like systems (Linux) use fe80::%eth0

For Mac OS X fe80::%en0

Mark

Posted 2009-11-03T11:11:47.317

Reputation: 458

@grawity This has nothing to do with "adding routes". – Mark – 2009-11-03T15:02:48.510

Feh. I really need to sleep() more. – user1686 – 2009-11-04T15:32:24.673

2

Link-local addresses (fe80::/10) usually are used with a zone index. In Windows it's the interface number (such as %4), in Unix-like systems - interface name (%eth0).

So if I was running Linux and a system was reachable through eth0 (the remote system's OS does not matter), I would use:

ping6 fe80::213:d4ff:fef4:2bc4%eth0

user1686

Posted 2009-11-03T11:11:47.317

Reputation: 283 655