Ping IPv6 IP Address With ping6 Command

by on February 12, 2008 · 8 comments· last updated at January 23, 2009

Q. I'm unable to ping an IPv6 address. I'm getting error:

ping 2001:db8::1428:57ab
ping: unknown host 2001:db8::1428:57ab

My network is configured for IPv6 with IP address. How do I ping an IPv6 address?

A. Regular ping command only works with IPv4 address. Use ping6 command to send ICMP ECHO_REQUEST to network hosts from a host or gateway.

ping to IPv6 host

Type the command as follows:
$ ping6 localhost
$ ping6 host.domain.com
$ ping6 IPv6-address
$ ping6 2001:4860:b002::68

The best way is to ping global website such as ipv6.google.com, enter:
$ ping6 ipv6.google.com
Sample output:

ping6 ipv6.google.com
PING ipv6.google.com(2001:4860:b002::68) 56 data bytes
64 bytes from 2001:4860:b002::68: icmp_seq=0 ttl=59 time=58.4 ms
64 bytes from 2001:4860:b002::68: icmp_seq=1 ttl=59 time=56.4 ms
64 bytes from 2001:4860:b002::68: icmp_seq=2 ttl=59 time=62.1 ms
64 bytes from 2001:4860:b002::68: icmp_seq=3 ttl=59 time=56.8 ms
64 bytes from 2001:4860:b002::68: icmp_seq=4 ttl=59 time=56.5 ms
64 bytes from 2001:4860:b002::68: icmp_seq=5 ttl=59 time=59.5 ms
--- ipv6.google.com ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5002ms
rtt min/avg/max/mdev = 56.443/58.329/62.150/2.045 ms, pipe 2

Read ping6 man page for more information:
$ man ping6



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 8 comments… read them below or add one }

1 dalia July 19, 2008 at 12:49 pm

ping ipv6 between windows and linux

Reply

2 dalia July 19, 2008 at 1:11 pm

ping ipv6 in windows

Reply

3 Sandi April 9, 2010 at 7:33 pm

Try pinging the loopback 127.0.0.1 and see what you get.

Reply

4 Sandi April 9, 2010 at 7:34 pm

or try ::1 which is correct for IPv6.

Reply

5 Brian May 26, 2010 at 6:38 pm

I couldn’t get PING6 to work… but noticed that PING uses PING -6 #### to work…

Reply

6 sohbet May 9, 2011 at 8:54 pm

Good and many many thanks buddy really nice great post and keep up the good work

Reply

7 Calle June 14, 2011 at 8:20 pm

On Windoze you will use ‘PING -6′, on -NIX you will use ‘PING6′.

Reply

8 Antonello June 6, 2012 at 9:15 am

I got:
$ ping6 ipv6.google.com
connect: Network is unreachable

Does it means my network didn’t give me an ipv6 address?
On http://ipv6test.google.com/ I got:

“No problems detected.
You don’t have IPv6, but you shouldn’t have problems on websites that add IPv6 support.”

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: