Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ipv6 problem with ping6
Date: Fri, 06 Jan 2012 21:13:28
Message-Id: 4F076320.8030208@gmail.com
In Reply to: [gentoo-user] ipv6 problem with ping6 by Grant Edwards
1 Grant Edwards wrote:
2 > I've enabled ipv6 support in my kernel and it appears to be working on
3 > the "lo" interface:
4 >
5 > # ip -6 addr show lo
6 >
7 > 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436
8 > inet6 ::1/128 scope host
9 > valid_lft forever preferred_lft forever
10 >
11 > # ping6 -c3 ::1
12 >
13 > PING ::1(::1) 56 data bytes
14 > 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.022 ms
15 > 64 bytes from ::1: icmp_seq=2 ttl=64 time=0.021 ms
16 > 64 bytes from ::1: icmp_seq=3 ttl=64 time=0.021 ms
17 >
18 > --- ::1 ping statistics ---
19 > 3 packets transmitted, 3 received, 0% packet loss, time 1998ms
20 > rtt min/avg/max/mdev = 0.021/0.021/0.022/0.003 ms
21 >
22 > And the other interfaces all have link-local addresses:
23 >
24 > # ip -6 addr show eth1
25 > 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
26 > inet6 fe80::216:17ff:fe84:a7b3/64 scope link
27 > valid_lft forever preferred_lft forever
28 >
29 > But I can't ping6 any of the "real" interfaces (or any external
30 > address):
31 >
32 > # ping6 -c3 fe80::216:17ff:fe84:a7b3
33 >
34 > connect: Invalid argument
35 >
36 > Why can I ping "lo" at ::1 and not "eth1" at fe80::216:17ff:fe84:a7b3?
37 >
38 > I'm guessing there might other packages I have to re-emerge with the
39 > ipv6 use flag. But, I do not want to rebuild everything capable of
40 > supporting ipv6, since there are only a few selected programs that
41 > I'll be using with ipv6. I thought I might have to rebuild glibc, but
42 > it doens't list ipv6 as one of it's use flags.
43 >
44 > Any hints?
45 >
46
47 ping6 -c3 fe80::216:17ff:fe84:a7b3%eth0
48
49 Link-local addresses are only valid at the link-level scope, and you
50 have to specify which link you're referring to. Global-scope addresses
51 don't have the same limitation.
52
53 Also, for fun, try this:
54 ping6 -c3 ff02::1%eth0

Replies

Subject Author
Re: [gentoo-user] ipv6 problem with ping6 Paul Hartman <paul.hartman+gentoo@×××××.com>
[gentoo-user] Re: ipv6 problem with ping6 Grant Edwards <grant.b.edwards@×××××.com>
[gentoo-user] Re: ipv6 problem with ping6 Grant Edwards <grant.b.edwards@×××××.com>