ping
Test connectivity between the system and another device by sending echo requests and waiting for replies.
C-Series, E-Series, S-Series, Z-Series, S4810
Syntax
ping [vrf <id>] [host | ip-address | ipv6-address] [count 
{number | continuous}] [datagram-size] [timeout] [source (ip 
src-ipv4-address) | interface] [tos] [df-bit (y|n)] [validate-
reply(y|n)] [outgoing-interface] [pattern pattern] [sweep-min-
size
] [sweep-max-size] [sweep-interval] [ointerface (ip src-
ipv4-address) | interface]
Parameters
vrf
(OPTIONAL) E-Series only: Enter the VRF Instance name of the device 
to which you are testing connectivity.
host
(OPTIONAL) Enter the host name of the devices to which you are 
testing connectivity.
ip-address
(OPTIONAL) Enter the IPv4 address of the device to which you are 
testing connectivity. The address must be in the dotted decimal 
format.
ipv6-address
(OPTIONAL) E-Series only: Enter the IPv6 address, in the x:x:x:x::x 
format, to which you are testing connectivity.
NOTE: The :: notation specifies successive hexadecimal fields of 
zeros.
count
Enter the number of echo packets to be sent. Default: 5.
• number: 1- 2147483647
• continuous: transmit echo request continuously
datagram size
Enter the ICMP datagram size. Range: 36 - 15360 bytes. Default: 100.
timeout
Enter the interval to wait for an echo reply before timing out. Range: 0 
-3600 seconds. Default: 2 seconds.
source
Enter the IPv4 or IPv6 source ip address or the source interface. For 
IPv6 addresses, you may enter global addresses only. Enter the IP 
address in A.B.C.D format.
• For an 100/1000 Ethernet interface, enter the keyword 
GigabitEthernet followed by the slot/port information.
• For a 1-Gigabit Ethernet interface, enter the keyword 
GigabitEthernet followed by the slot/port information.
• For a Port Channel interface, enter the keyword port-
channel followed by a number: For the C-Series and S-
Series, the range is 1 to 128. For the E-Series, the range is 1 to 
255 for TeraScale and 1 to 512 for ExaScale.
• E-Series only: For the SONET interfaces, enter the keyword 
sonet followed by slot/port information.
126