Skip to content

Instantly share code, notes, and snippets.

@NaqeebAnsari
Last active February 8, 2017 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NaqeebAnsari/9e857fe3ec4f5a3e5c8bd33b219b82b0 to your computer and use it in GitHub Desktop.
Save NaqeebAnsari/9e857fe3ec4f5a3e5c8bd33b219b82b0 to your computer and use it in GitHub Desktop.
Last login: Wed Feb 8 10:01:00 on console
360-MACMINIs-Mac-mini-3:~ Apple$ ping to ipv6
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern]
[-S src_addr] [-s packetsize] [-t timeout][-W waittime]
[-z tos] host
ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait]
[-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
[-s packetsize] [-T ttl] [-t timeout] [-W waittime]
[-z tos] mcast-group
Apple specific options (to be specified before mcast-group or host like all options)
-b boundif # bind the socket to the interface
-k traffic_class # set traffic class socket option
-K net_service_type # set traffic class socket options
-apple-connect # call connect(2) in the socket
-apple-time # display current time
360-MACMINIs-Mac-mini-3:~ Apple$ ping6 ipv6.google.com
ping6: getaddrinfo -- nodename nor servname provided, or not known
360-MACMINIs-Mac-mini-3:~ Apple$ ping6 localhost
PING6(56=40+8+8 bytes) ::1 --> ::1
16 bytes from ::1, icmp_seq=0 hlim=64 time=0.127 ms
16 bytes from ::1, icmp_seq=1 hlim=64 time=0.112 ms
16 bytes from ::1, icmp_seq=2 hlim=64 time=0.129 ms
16 bytes from ::1, icmp_seq=3 hlim=64 time=0.097 ms
16 bytes from ::1, icmp_seq=4 hlim=64 time=0.093 ms
16 bytes from ::1, icmp_seq=5 hlim=64 time=0.122 ms
16 bytes from ::1, icmp_seq=6 hlim=64 time=0.155 ms
16 bytes from ::1, icmp_seq=7 hlim=64 time=0.129 ms
16 bytes from ::1, icmp_seq=8 hlim=64 time=0.108 ms
16 bytes from ::1, icmp_seq=9 hlim=64 time=0.092 ms
^C
--- localhost ping6 statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.092/0.116/0.155/0.019 ms
360-MACMINIs-Mac-mini-3:~ Apple$ ping6 host.domain.com
PING6(56=40+8+8 bytes) 2001:2::aab1:3508:f9d7:6eed:75c3 --> 2001:2:0:1baa::4260:a25c
^C
--- host.domain.com ping6 statistics ---
15 packets transmitted, 0 packets received, 100.0% packet loss
360-MACMINIs-Mac-mini-3:~ Apple$ ping6 IPv6-address
ping6: getaddrinfo -- nodename nor servname provided, or not known
360-MACMINIs-Mac-mini-3:~ Apple$ ping6 2001:4860:b002::68
PING6(56=40+8+8 bytes) 2001:2::aab1:3508:f9d7:6eed:75c3 --> 2001:4860:b002::68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment