Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2009, 12:03 AM   #1
LQ Newbie
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
can you use PING for an IPv6 address?

IN the Redhat 5.3 distribution when you bring upo the ping man page you get a concatenation of ping and ping6. It implies that the syntax of

ping -I <interface name> <IPv6 address to be pinged>

the above command fails with a "unknown host" message. this occurs with a link local as well as a global address.

[jtr@LinuxServer-1 ~]$ ping -I eth1 3001:2234:1122:301:20c:29ff:fe41:a733
ping: unknown host 3001:2234:1122:301:20c:29ff:fe41:a733
[jtr@LinuxServer-1 ~]$

[jtr@Linux-1 ~]$ ping6 -I eth1 3001:2234:1122:301:20c:29ff:fe41:a733
PING 3001:2234:1122:301:20c:29ff:fe41:a733(3001:2234:1122:301:20c:29ff:fe41:a733) from 3001:2234:1122:101:20c:29ff:fe93:cb27 eth1: 56 data bytes
64 bytes from 3001:2234:1122:301:20c:29ff:fe41:a733: icmp_seq=0 ttl=126 time=4.23 ms

ping fails but ping6 works just fine. I use ping6 but I have been asked to research this.

My beleif is that the man page for ping/ping6 should have one more sentence added for the -I switch that states "the -I option is only for ping6 and ping does not work for IPv6 addresses.

do you think that this is a valid assumption about ping. All of the research I have done on this always indicate to use the ping6 command.

the same thing occurs being logged in as root or a regular user.


Old 12-07-2009, 12:14 AM   #2
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198

IIRC: the command you are looking for is ping6.
Old 12-07-2009, 05:36 PM   #3
Registered: Mar 2008
Posts: 21,883

Rep: Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615Reputation: 3615
If ping fails and ping6 works then it is network blocked or firewall issue or routing issue.

man ping
Old 12-08-2009, 12:40 AM   #4
LQ Newbie
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0

It appears based on what you are saying and my other research "ping" by itself does not work in Linux for V6 addresses. I can do anything I need with the "ping6" command in the V6 space. the MAN page is misleading for the -I switch or incomplete probably a better way to word it.

do you concure?



I do not think this has anything to do with a firewall. It more resembles a name resolution issue than anything based on the error shown above "ping: unknown host 3001:2234:1122:301:20c:29ff:fe41:a733".




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ipv6/ ip6tables can't ping from behind router donnied Linux - Networking 0 08-25-2008 08:25 PM
How to set IPv6 address on IPv6 router tlemons Linux - Networking 3 09-17-2007 02:25 PM
can't ping local IP address but can ping remote hosts rob_xx17 Linux - Networking 4 12-02-2006 09:39 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 05:57 AM
perl: Net::Ping and ipv6 Kostko Programming 1 05-11-2003 01:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration