Information Technology Reference
In-Depth Information
Using Ping on Cisco Routers
Ping can verify IP connectivity to a destination address. On Cisco routers, you can verify
connectivity by entering in the terminal the command ping ip-address . Example 6-6 shows that
the successful reply destination is represented with exclamation points. By default, five echo
messages are sent. The success rate of replies and the time to send and receive the reply is also
returned.
Example of the Basic Ping Application
Example 6-6
router5>ping 10.1.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/7/20 ms
In router enable mode, you can perform more advanced testing. Enter ping and press Enter .
Here, you can change the number of echos and the size of the datagram. By pressing y at the
Extended Commands prompt, you can change the ToS, set the Don't fragment bit, record route,
and so on. Example 6-7 shows an extended ping where the repeat count is 10, the datagram size
is changed to 500 bytes, and the data pattern is all 1s.
Example 6-7
Advanced Ping Options
router3#ping
Protocol [ip]:
Target IP address: 10.1.3.2
Repeat count [5]: 10
Datagram size [100]: 500
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]: y
Validate reply data? [no]: y
Data pattern [0xABCD]: 0xffff
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10, 500-byte ICMP Echos to 10.1.3.2, timeout is 2 seconds:
Packet has data pattern 0xFFFF
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 4/6/24 ms
Search WWH ::




Custom Search