From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RjHEG-0003wW-8e for garchives@archives.gentoo.org; Fri, 06 Jan 2012 21:21:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE83421C173; Fri, 6 Jan 2012 21:21:22 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by pigeon.gentoo.org (Postfix) with ESMTP id DFBA921C026 for ; Fri, 6 Jan 2012 21:20:22 +0000 (UTC) Received: by wibhq2 with SMTP id hq2so1649110wib.40 for ; Fri, 06 Jan 2012 13:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; bh=YZzzpRRlyxoB1F4axbnjn/62p9swT6lyo2ZQ/N7FYuk=; b=JJs9bpXDVBEIXNp/c0WorbY7vm8oUgoAiwAhDv5Dc8mwcpaJuFPGOjWTH7044mEPDl kScWIoSyH0kuIHWox/iRiH0DABNIUShBR3KTSxll+iW8cmx4cOOXsvYDDxwDI2+HEf4Q Nw07PlrhUzW2mJjsDXqE6NWfNTJHRS5E23bXg= Received: by 10.180.76.131 with SMTP id k3mr10014250wiw.2.1325884822188; Fri, 06 Jan 2012 13:20:22 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Sender: paul.hartman@gmail.com Received: by 10.227.58.74 with HTTP; Fri, 6 Jan 2012 13:20:01 -0800 (PST) In-Reply-To: <4F076320.8030208@gmail.com> References: <4F076320.8030208@gmail.com> From: Paul Hartman Date: Fri, 6 Jan 2012 15:20:01 -0600 X-Google-Sender-Auth: Xe-v6v0mSG6nS8Rt07zNg7T5wyU Message-ID: Subject: Re: [gentoo-user] ipv6 problem with ping6 To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 7b2bfeb2-7961-4ea3-a5f1-397203ec16a9 X-Archives-Hash: 53bbec16163aa927942b6210414bb94f On Fri, Jan 6, 2012 at 3:09 PM, Michael Mol wrote: > Grant Edwards wrote: >> I've enabled ipv6 support in my kernel and it appears to be working on >> the "lo" interface: >> >> =A0 =A0# ip -6 addr show lo >> >> =A0 =A01: lo: mtu 16436 >> =A0 =A0 =A0 =A0inet6 ::1/128 scope host >> =A0 =A0 =A0 =A0 =A0 valid_lft forever preferred_lft forever >> >> =A0 =A0# ping6 -c3 ::1 >> >> =A0 =A0PING ::1(::1) 56 data bytes >> =A0 =A064 bytes from ::1: icmp_seq=3D1 ttl=3D64 time=3D0.022 ms >> =A0 =A064 bytes from ::1: icmp_seq=3D2 ttl=3D64 time=3D0.021 ms >> =A0 =A064 bytes from ::1: icmp_seq=3D3 ttl=3D64 time=3D0.021 ms >> >> =A0 =A0--- ::1 ping statistics --- >> =A0 =A03 packets transmitted, 3 received, 0% packet loss, time 1998ms >> =A0 =A0rtt min/avg/max/mdev =3D 0.021/0.021/0.022/0.003 ms >> >> And the other interfaces all have link-local addresses: >> >> =A0 =A0# ip -6 addr show eth1 >> =A0 =A03: eth1: mtu 1500 qlen 1000 >> =A0 =A0 =A0 =A0inet6 fe80::216:17ff:fe84:a7b3/64 scope link >> =A0 =A0 =A0 =A0 =A0 valid_lft forever preferred_lft forever >> >> But I can't ping6 any of the "real" interfaces (or any external >> address): >> >> =A0 =A0# ping6 -c3 fe80::216:17ff:fe84:a7b3 >> >> =A0 =A0connect: Invalid argument >> >> Why can I ping "lo" at ::1 and not "eth1" at fe80::216:17ff:fe84:a7b3? >> >> I'm guessing there might other packages I have to re-emerge with the >> ipv6 use flag. But, I do not want to rebuild everything capable of >> supporting ipv6, since there are only a few selected programs that >> I'll be using with ipv6. =A0I thought I might have to rebuild glibc, but >> it doens't list ipv6 as one of it's use flags. >> >> Any hints? >> > > ping6 -c3 fe80::216:17ff:fe84:a7b3%eth0 > > Link-local addresses are only valid at the link-level scope, and you > have to specify which link you're referring to. Global-scope addresses > don't have the same limitation. and to see the scope you can view the output of ifconfig, see something in there like this next to each address: scopeid 0x0 scopeid 0x20