Reference v4.1.0 Instruction Manual
Network OS Command Reference 537
53-1003115-01
ping
2
ping
Verifies network connectivity between a source and a destination.
Synopsis ping dest-IPv4_addr [ipv6 dest-ipv6-addr] [host-name] [count [number]] [timeout seconds]
[datagram-size bytes] [quiet] [numeric] [vrf vrf-name]
Operands dest-IPv4_addr Specifies the IPv4 address of the destination device. This parameter is
valid only with the ping command.
ipv6 dest-ipv6-addr Specifies the IPv6 address of the destination device. This parameter is
valid only with the ping command.
host-name Destination host name.
count number Specifies the number of transmissions (pings). The range is 1
through 655350.
timeout seconds Specifies the number of seconds in between transmissions. The range is 1
through 60.
datagram-size bytes Specifies the datagram-size (also known as the maximum transmission
unit, or MTU) IN bytes. The range is 36 through 9100 bytes.
quiet Prints only the first and last line of the command output.
numeric Do not lookup hostnames.
vrf vrf-name When VRF is enabled, ping is available as a debugging tool.
Defaults The default for count is 1. The default for timeout is1. The default for datagram-size is 56.
Command Modes Privileged EXEC mode
Description Use this command to probe IP connectivity to another computer or device on a TCP/IP network.
This command sends a specified number of pings with configured parameters to the specified
destination device.
Usage Guidelines None
Example To ping an IPv4 destination address:
switch# ping 172.16.4.80
Type Control-c to abort
PING 172.16.4.80 (172.16.4.80): 56 data bytes
64 bytes from 172.16.4.80: icmp_seq=0 ttl=120 time=101.466 ms
64 bytes from 172.16.4.80: icmp_seq=1 ttl=120 time=122.914 ms
64 bytes from 172.16.4.80: icmp_seq=2 ttl=120 time=145.637 ms
64 bytes from 172.16.4.80: icmp_seq=3 ttl=120 time=170.032 ms
64 bytes from 172.16.4.80: icmp_seq=4 ttl=120 time=103.036 ms
--- 172.16.4.80 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 101.466/128.617/170.032/26.188 ms
To ping an IPv4 destination address in quiet mode:
switch# ping 172.16.4.80 quiet
Type Control-c to abort
PING 172.16.4.80 (172.16.4.80): 56 data bytes
--- 172.16.4.80 ping statistics ---