ping
This topic explains the command that tests connectivity to an IPv4 address, IPv6 address, or hostname.
|
Syntax |
ping {a.b.c.d | hostname | x:x::x:x} [count number] |
|
Parameter |
|
|
Default |
No default value. |
|
Mode |
User EXEC, Privileged EXEC |
|
Usage |
Use this command to ping an IPv4 address, IPv6 address, or hostname. |
Example: This example shows how to ping a host with IPv4 address 192.168.0.111:
Switch# ping 192.168.0.111
PING 192.168.0.111 (192.168.0.111): 56 data bytes
64 bytes from 192.168.0.111: icmp_seq=0 ttl=128 time=10.0 ms
64 bytes from 192.168.0.111: icmp_seq=1 ttl=128 time=0.0 ms
64 bytes from 192.168.0.111: icmp_seq=2 ttl=128 time=0.0 ms
64 bytes from 192.168.0.111: icmp_seq=3 ttl=128 time=0.0 ms
--- 192.168.0.111 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.0/2.5/10.0 ms