Administrator Guide

ping
Test connectivity between the system and another device by sending echo requests and waiting for replies.
Syntax
ping [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] [ethernet | vrf vrf-name]
Parameters
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) 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. The default is 5.
number: from 1 to 2147483647
continuous: transmit echo request continuously
datagram size
Enter the ICMP datagram size. The range is from 36 to 15360 bytes. The default is
100.
timeout
Enter the interval to wait for an echo reply before timing out. The range is from 0
to 3600 seconds. The default is 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 a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet then the slot/port information.
For a port channel interface, enter the keywords port-channel then a
number.
For a VLAN interface, enter the keyword vlan then a number from 1 to 4094.
For a Tunnel interface, enter the keyword tunnel then a number from 1 to
16383.
tos
(IPv4 only) Enter the type of service required. The range is from 0 to 255. The
default is 0.
df-bit
(IPv4 only) Enter Y or N for the don't fragment bit in IPv4 header.
N: Do not set the don't fragment bit.
Y: Do set don't fragment bit
Default is No.
validate-reply
(IPv4 only) Enter Y or N for reply validation.
N: Do not validate reply data.
Y: Do validate reply data.
Default is No.
outgoing-
interface
(IPv6 link-local address) Enter the outgoing interface for ping packets to a
destination link-local address.
pattern
pattern
(IPv4 only) Enter the IPv4 data pattern. Range: 0-FFFF. Default: 0xABCD.
sweep-min-size
Enter the minimum size of datagram in sweep range. The range is from 52 to 15359
bytes.
118 Control and Monitoring