Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ping in IPv6: am I doing something wrong?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 595

PostPosted: Wed Jan 05, 2011 4:46 am    Post subject: Ping in IPv6: am I doing something wrong? Reply with quote

I'm busy configuring my home network for IPv6 support. I've got everything compiled with the "ipv6" USE-flag, I'm running kernels with IPv6 support, and I'm busy testing basic connectivity (ie. pinging everything).

Pinging localhost works:

Code:
# ping6 ::1
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.015 ms


Pinging across the network doesn't, but the error it gives isn't network-related:

Code:
# ping6 fe80::203:baff:fe93:b161
connect: Invalid argument


Neither does pinging the local system via the network IP address:

Code:
# ping6 fe80::21e:8cff:fe3e:4cb9
connect: Invalid argument


Any idea what's going wrong here?
Back to top
View user's profile Send private message
wswartzendruber
Veteran
Veteran


Joined: 23 Mar 2004
Posts: 1261
Location: Idaho, USA

PostPosted: Wed Jan 05, 2011 5:34 am    Post subject: Reply with quote

Anything starting with fe80 is known as link-local. Think of it as a loopback for each individual adapter. I don't get the rationale, but that's what the IP gods decided on thirteen years ago.

Are those the only IPv6 addresses your interfaces have?
Back to top
View user's profile Send private message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 595

PostPosted: Wed Jan 05, 2011 7:02 am    Post subject: Reply with quote

Right now, yes. I'm trying to get this whole IPv6 thing figured out.

A fe80 address being some flavor of loopback wouldn't explain the second failure, though: it should be possible for a computer to use that address to ping itself, right?
Back to top
View user's profile Send private message
Alcap0ne
n00b
n00b


Joined: 09 Sep 2004
Posts: 43

PostPosted: Wed Jan 05, 2011 4:21 pm    Post subject: Reply with quote

You have to specify the interface when pinging your link-local address.

Code:
ping6 -I eth0 <addr>
or
ping6 <addr>%eth0
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum