ping

Sends Internet Controller Message Protocol (ICMP) echo messages to a user-specified location

Supported on the following devices:

Note

Note

This command and its syntax is common to both the User Executable and Privilege Executable configuration modes.

Syntax

ping <IP/HOSTNAME> {count <1-10000>|dont-fragment {count|size}|size <1-64000>|
source [<IP>|pppoe|vlan <1-4094>|wwan]}

Parameters

ping <IP/HOSTNAME> {count <1-10000>|dont-fragment {count|size}|size <1-64000>|
source [<IP>|pppoe|vlan <1-4094>|wwan]}

<IP/HOSTNAME>

Specify the destination IP address or hostname. When entered without any parameters, this command prompts for an IP address or a hostname.

count <1-10000>

Optional. Sets the pings to the specified destination

  • <1-10000> – Specify a value from 1 - 10000. The default is 5.

dont-fragment {count|size}

Optional. Sets the don‘t fragment bit in the ping packet. Packets with the dont-fragment bit specified are not fragmented. When a packet, with the dont-fragment bit specified, exceeds the specified maximum transmission unit (MTU) value, an error message is sent from the device trying to fragment it.

  • count <1-10000> – Optional. Sets the pings to the specified destination from 1 - 10000. The default is 5.

  • size <1-64000> – Optional. Sets the ping payload size from 1 - 64000 bytes. The default is 100 bytes.

size <1-64000>

Optional. Sets the ping payload size in bytes

  • <1-64000> – Specify the ping payload size from 1 - 64000. The default is 100 bytes.

source [<IP>|pppoe| vlan <1-4094>|wwan] Optional. Sets the source address or interface name. This is the source of the ICMP packet to the specified destination.
  • <IP> – Specifies the source IP address
  • pppoe – Selects the PPP over Ethernet interface
  • vlan <1-4094> – Selects the VLAN interface from 1 - 4094
  • wwan – Selects the wireless WAN interface

Examples

ap510-133B38#ping 10.234.160.5
PING 10.234.160.5 (10.234.160.5) 100(128) bytes of data.
108 bytes from 10.234.160.5: icmp_seq=1 ttl=64 time=0.283 ms
108 bytes from 10.234.160.5: icmp_seq=2 ttl=64 time=0.314 ms
108 bytes from 10.234.160.5: icmp_seq=3 ttl=64 time=0.314 ms
108 bytes from 10.234.160.5: icmp_seq=4 ttl=64 time=0.310 ms
108 bytes from 10.234.160.5: icmp_seq=5 ttl=64 time=0.312 ms

--- 10.234.160.5 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.283/0.306/0.314/0.022 ms
ap510-133B38#
nx9500-6C8809>ping 10.234.160.36 source vlan 1
PING 10.234.160.36 (10.234.160.36) from 10.234.160.5 vlan1: 100(128) bytes of data.
108 bytes from 10.234.160.36: icmp_seq=1 ttl=64 time=4.44 ms
108 bytes from 10.234.160.36: icmp_seq=2 ttl=64 time=0.532 ms
108 bytes from 10.234.160.36: icmp_seq=3 ttl=64 time=0.513 ms
108 bytes from 10.234.160.36: icmp_seq=4 ttl=64 time=0.587 ms
108 bytes from 10.234.160.36: icmp_seq=5 ttl=64 time=0.596 ms

--- 10.234.160.36 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3998ms
rtt min/avg/max/mdev = 0.513/1.334/4.443/1.554 ms
nx9500-6C8809>