ping

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

Supported in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000
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 MTU (maximum transmission unit) 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

NOC-NX9500>ping 10.234.160.13
PING 10.234.160.13 (10.234.160.13) 100(128) bytes of data.
108 bytes from 10.234.160.13: icmp_seq=1 ttl=64 time=3.61 ms
108 bytes from 10.234.160.13: icmp_seq=2 ttl=64 time=0.177 ms
108 bytes from 10.234.160.13: icmp_seq=3 ttl=64 time=0.162 ms
108 bytes from 10.234.160.13: icmp_seq=4 ttl=64 time=0.167 ms
108 bytes from 10.234.160.13: icmp_seq=5 ttl=64 time=0.170 ms

--- 10.234.160.13 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4000ms
rtt min/avg/max/mdev = 0.162/0.857/3.613/1.378 ms
NOC-NX9500>
NOC-NX9500>ping 10.234.160.11 source vlan 1
PING 10.234.160.11 (10.234.160.11) from 10.234.160.5 vlan1: 100(128) bytes of data.
108 bytes from 10.234.160.11: icmp_seq=1 ttl=64 time=6.87 ms
108 bytes from 10.234.160.11: icmp_seq=2 ttl=64 time=0.469 ms
108 bytes from 10.234.160.11: icmp_seq=3 ttl=64 time=0.448 ms
108 bytes from 10.234.160.11: icmp_seq=4 ttl=64 time=0.437 ms
108 bytes from 10.234.160.11: icmp_seq=5 ttl=64 time=0.459 ms

--- 10.234.160.11 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
rtt min/avg/max/mdev = 0.437/1.738/6.879/2.570 ms
NOC-NX9500>