8
-f
first
-
ttl
: Specifies the TTL of the first packet sent to the destination. The value range is 1 to 255, and
the default is 1. It must be no greater than the value of the
max
-
ttl
argument.
-m
max
-
ttl
: Specifies the maximum number of hops allowed for a probe packet. The value range is 1
to 255, and the default is 30. It must be no smaller than the value of the
first
-
ttl
argument.
-p
port
: Specifies an invalid UDP port of the destination. The value range is 1 to 65535, and the
default is 33434.
-q
packet-number
: Specifies the number of probe packets to send per hop. The value range is 1 to
65535, and the default is 3.
-t
tos
: Specifies the ToS value of probe packets. The value range is 0 to 255, and the default is 0.
-vpn-instance
vpn-instance-name
: Specifies the MPLS L3VPN instance to which the destination
belongs, where the
vpn-instance-name
argument is a case-sensitive string of 1 to 31 characters. If
the destination is on the public network, do not specify this option.
-w
timeout
: Specifies the timeout time in milliseconds of the reply packet for a probe packet. The
value range is 1 to 65535, and the default is 5000.
host
: Specifies the IP address or host name of the destination. The host name is a case-insensitive
string of 1 to 253 characters. It can contain letters, digits, and special characters such as hyphen (-),
underscore (_), and dot (.).
Usage guidelines
After identifying network failure with the
ping
command, use the
tracert
command to locate failed
nodes.
The output from the
tracert
command includes IP addresses of all the Layer 3 devices that the
packets traverse from source to destination. Asterisks (* * *) are displayed if the device cannot reply
with an ICMP error message. The reason might be the destination is unreachable or sending ICMP
timeout/destination unreachable packets is disabled.
To abort the tracert operation during the execution of the command, press
Ctrl+C
.
Examples
# Display the path that the packets traverse from source to destination (1.1.2.2).
<Sysname> tracert 1.1.2.2
traceroute to 1.1.2.2 (1.1.2.2), 30 hops at most, 40 bytes each packet, press CTRL_C to
break
1 1.1.1.2 (1.1.1.2) 673 ms 425 ms 30 ms
2 1.1.2.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> tracert 192.168.0.46
traceroute to 192.168.0.46(192.168.0.46), 30 hops at most, 40 bytes each 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 3 Command output
Field Description
traceroute to 1.1.2.2 (1.1.2.2)
Display the route that the IP packets traverse from the current device to the
device whose IP address is 1.1.2.2.