Command Manual (For Soliton) – System Maintenance and Debugging
H3C S3100 Series Ethernet Switches
Chapter 2 Network Connectivity Test
Commands
2-4
-w timeout
: Specifies the timeout time to wait for ICMP error packets. The
timeout
argument ranges from 0 to 65,535 and defaults to 5,000 (in milliseconds).
string
: IP address of the destination host, or host name of the remote system with 1 to
20 characters.
Description
Use the
tracert
command to trace the gateways that the test packets pass through
from the source device to the destination device. This command is mainly used to
check the network connectivity and help locate the network faults.
The executing procedure of the
tracert
command is as follows: First, the source sends
a packet with the TTL of 1, and the first hop device returns an ICMP error message
indicating that it cannot forward this packet because of TTL timeout. Then, the source
resends a packet with the TTL of 2, and the second hop device also returns an ICMP
TTL timeout message. This procedure goes on and on until a packet gets to the
destination or the maximum TTL is reached. During the procedure, the system records
the source address of each ICMP TTL timeout message in order to offer the path that
the packets pass through to the destination.
If you find that the network is faulty by using the
ping
command, you can use the
tracert
command to find where the fault is in the network.
The
tracert
command can output the IP addresses of all the gateways that the packets
pass through to the destination. It outputs the string "***" if the response from a gateway
times out.
Example
# Trace the gateways that the packets pass through to the destination with IP address
18.26.0.115.
<Sysname> tracert 18.26.0.115
tracert to 18.26.0.115 (18.26.0.115), 30 hops max,40 bytes packet
1 128.3.112.1 (128.3.112.1) 0 ms 0 ms 0 ms
2 128.32.216.1 (128.32.216.1) 19 ms 19 ms 19 ms
3 128.32.206.1 (128.32.206.1) 39 ms 19 ms 19 ms
4 128.32.136.23 (128.32.136.23) 19 ms 39 ms 39 ms
5 128.32.168.22 (128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4 (128.32.197.4) 59 ms 119 ms 39 ms
7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 39 ms
8 129.140.70.13 (129.140.70.13) 80 ms 79 ms 99 ms
9 129.140.71.6 (129.140.71.6) 139 ms 139 ms 159 ms
10 129.140.81.7 (129.140.81.7) 199 ms 180 ms 300 ms
11 129.140.72.17 (129.140.72.17) 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72 (128.121.54.72) 259 ms 499 ms 279 ms