R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
8
host: IP address or host name (a string of 1 to 255 characters) of the destination.
Description
Use tracert to trace the path the packets traverse from source to destination.
After having identified network failure with the ping command, use the tracert command to determine the
failed node(s).
Output from the tracert command includes IP addresses of all the Layer 3 devices the packets traverse
from source to destination. If a device times out, asterisks (* * *) are displayed.
To abort the tracert operation during the execution of the command, press Ctrl+C.
Examples
# Display the path the packets traverse from source to destination with an IP address of 1.1.2.2.
<Sysname> system-view
[Sysname] ip ttl-expires enable
[Sysname] ip unreachables enable
[Sysname] tracert 1.1.2.2
traceroute to 1.1.2.2(1.1.2.2) 30 hops max,40 bytes packet, press CTRL_C to break
1 1.1.1.2 673 ms 425 ms 30 ms
2 1.1.2.2 580 ms 470 ms 80 ms
# Trace the path to destination 192.168.0.46 over an MPLS network.
<Sysname> system-view
[Sysname] ip ttl-expires enable
[Sysname] ip unreachables enable
[Sysname] tracert 192.168.0.46
traceroute to 192.168.0.46(192.168.0.46) 30 hops max,40 bytes packet, press CTRL_C to
break
1 192.0.2.13 (192.0.2.13) 0.661 ms 0.618 ms 0.579 ms
2 192.0.2.9 (192.0.2.9) 0.861 ms 0.718 ms 0.679 ms
MPLS Label=100048 Exp=0 TTL=1 S=1
3 192.0.2.5 (192.0.2.5) 0.822 ms 0.731 ms 0.708 ms
MPLS Label=100016 Exp=0 TTL=1 S=1
4 192.0.2.1 (192.0.2.1) 0.961 ms 8.676 ms 0.875 ms
Table 2 Command output
Field Descri
p
tion
traceroute to 1.1.2.2(1.1.2.2)
Display the route the IP packets traverse from the current device to the
device whose IP address is 1.1.2.2.
hops max
Maximum number of hops of the probe packets, which can be set
through the -m keyword.
bytes packet Number of bytes of a probe packet.
press CTRL_C to break
During the execution of the command, you can press Ctrl+C to abort
the tracert operation.
1 1.1.1.2 673 ms 425 ms 30 ms
Probe result of the probe packets whose TTL is 1, including the IP
address of the first hop and the roundtrip time of three probe packets.
Number of packets that can be sent in each probe can be set through
the -q keyword.