Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ipv6 ping issue
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
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1435
Location: indiana

PostPosted: Sat Feb 18, 2017 9:02 pm    Post subject: ipv6 ping issue Reply with quote

hi there,

from my gentoo box i can not ping my router nor other devices that use ipv6.
but the gentoo box obtains a ipv6 adress and is pingable from other devices. i have no firewall installed,i`d say it`s a kernel related issue
but i want to have a second opinion before building a new kernel


thanks a lot


btw :
Code:
$ ping fe80::xxxx:xxxx:xxxx:xxxx
ping: unknown host fe80::xxxx:xxxx:xxxx:xxxx




edit : i just noticed big differences in /etc/hosts(between my gentoo box and a linux running settopbox), i added :

Code:
127.0.0.1   localhost.localdomain      localhost

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
but it did not help ...
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sat Feb 18, 2017 10:47 pm    Post subject: Reply with quote

Why not use a network sniffer to get to the root cause?
Back to top
View user's profile Send private message
kurly
Apprentice
Apprentice


Joined: 02 Apr 2012
Posts: 253

PostPosted: Sat Feb 18, 2017 11:29 pm    Post subject: Reply with quote

fe80 is a link-local address which is not routable outside your LAN. Those addresses need to be scoped to a device; syntax varies, but appending %eth0 (or appropriate device) to the IP should work with ping6.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5583

PostPosted: Sun Feb 19, 2017 10:07 pm    Post subject: Reply with quote

kurly's answer is correct, but if typing %foo all the time is too much hassle you can also give your devices RFC4193 private IPs in fdxx::/56 (fd + 10 random hex digits), or just install avahi and nss-mdns to address them by name.
Back to top
View user's profile Send private message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1435
Location: indiana

PostPosted: Thu Feb 23, 2017 3:30 pm    Post subject: Reply with quote

hi,

thanks for your suggestions.

Code:
$ ping6 fe80::xxxx:xxxx:xxxx:xxx
connect: Invalid argument
any ideas ?
_________________
I do not have a Superman complex, for I am God not Superman :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 42558
Location: 56N 3W

PostPosted: Thu Feb 23, 2017 4:22 pm    Post subject: Reply with quote

Mgiese,

Code:
ping6 fe80::2e0:4cff:fe69:1509 -I eth0

Link local IPv6 addresses are not routable, so you need to give an interface that the packets are to be sent over.
Link local addresses are also self assigned, not allocated by your router.

If you have a real IPv6 address that can be used on the internet, it will start with a 2.
Then you need an IPv6 firewall somewhere too as there is no NAT to hide you from the big bad internet.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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