ping6

Similar to the IPv4 ping, use the IPv6 ping6 command in the EXEC mode.

ping6 {ip-address | hostname} [GigabitEthernet 0-3][packetsize packetsize] [pingcount pingcount]

Syntax Description

ping

The command to ping a remote IPv6 address.

ip-address

IP address of the system to ping. Supports up to 64 alphanumeric characters.

hostname

Hostname of the system to ping. Supports up to 64 alphanumeric characters.

GigabitEthernet

Ethernet interface.

0-3

Select an Ethernet interface.

packetsize

Size of the ping packet.

packetsize

Specify the size of the ping packet; the value can be between 0 and 65507.

pingcount

Number of ping echo requests.

pingcount

Specify the number of ping echo requests; the value can be between 1 and 10.

Command Default

No default behavior or values.

Command Modes

EXEC

Usage Guidelines

The IPv6 ping6 command sends an echo request packet to an address, then awaits a reply. The ping output can help you evaluate path-to-host reliability, delays over the path, and whether you can reach a host.

The IPv6 ping6 command is similar to the existing IPv4 ping command. The ping 6 command does not support the IPv4 ping fragmentation (df in IPv4) options, but it allows an optional specification of an interface. The interface option is primarily useful for pinning with link-local addresses that are interface-specific. The packetsize and pingcount options work the same as they do with the IPv4 command.

Examples

Example 1

/admin# ping6 3ffe:302:11:2:20c:29ff:feaf:da05

PING 3ffe:302:11:2:20c:29ff:feaf:da05(3ffe:302:11:2:20c:29ff:feaf:da05) from 3ffe:302:11:2:20c:29ff:feaf:da05 eth0: 56 data bytes

64 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=0 ttl=64 time=0.599 ms

64 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=1 ttl=64 time=0.150 ms

64 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=2 ttl=64 time=0.070 ms

64 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=3 ttl=64 time=0.065 ms

 

--- 3ffe:302:11:2:20c:29ff:feaf:da05 ping statistics ---

4 packets transmitted, 4 received, 0% packet loss, time 3118ms

rtt min/avg/max/mdev = 0.065/0.221/0.599/0.220 ms, pipe 2

 

/admin#

Example 2

/admin# ping6 3ffe:302:11:2:20c:29ff:feaf:da05 GigabitEthernet 0 packetsize 10 pingcount 2

PING 3ffe:302:11:2:20c:29ff:feaf:da05(3ffe:302:11:2:20c:29ff:feaf:da05) from 3ffe:302:11:2:20c:29ff:feaf:da05 eth0: 10 data bytes

18 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=0 ttl=64 time=0.073 ms

18 bytes from 3ffe:302:11:2:20c:29ff:feaf:da05: icmp_seq=1 ttl=64 time=0.073 ms

 

--- 3ffe:302:11:2:20c:29ff:feaf:da05 ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1040ms

rtt min/avg/max/mdev = 0.073/0.073/0.073/0.000 ms, pipe 2

 

/admin#

Related Commands

Command

Description

ping

Ping a remote ip address.