mac

Commands for Show
571
Usage Guide: When the ping command is entered without any parameters, interactive
configuration mode will be invoked. And ping parameters can be entered interactively.
Example:
Example 1: To ping with default parameters.
Switch#ping 10.1.128.160
Type ^c to abort.
Sending 5 56-byte ICMP Echos to 10.1.128.160, timeout is 2 seconds.
...!!
Success rate is 40 percent (2/5), round-trip min/avg/max = 0/0/0 ms
In the example above, the switch is made to ping the device at 10.1.128.160. The
command did not receive ICMP reply packets for the first three ICMP echo requests
within default 2 seconds timeout. The ping failed for the first three tries. However, the last
two ping succeeded. So the success rate is 40%. It is denoted on the switch “.” for ping
failure which means unreachable link, while “!” for ping success, which means reachable
link.
Example 2: Use ping command with source address configuration, and leave other
fields to default.
Switch#ping src 10.1.128.161 10.1.128.160
Type ^c to abort.
Sending 5 56-byte ICMP Echos to 10.1.128.160, using source address 10.1.128.161,
timeout is 2 seconds.
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 ms
In the example above, 10.1.128.161 is configured as the source address of the ICMP
echo requests, while the destination device is configured to be at 10.1.128.160. The
command receives all the ICMP reply packets for all of the five ICMP echo requests. The
success rate is 100%. It is denoted on the switch “.” for ping failure which means
unreachable link, while “!” for ping success, which means reachable link.
Example 3: Ping with parameters entered interactively.
Switch#ping
VRF name
Target IP address10.1.128.160
Use source address option[n]: y
Source IP address: 10.1.128.161
Repeat count [5]: 100