The tracert ipv6 command checks the path of packets from the source to the destination, checks IPv6 network connectivity, and locates a network fault.
tracert ipv6 [ -f first-hop-limit | -m max-hop-limit | -p port-number | -q probes | -w timeout | vpn-instance vpn-instance-name | -a source-ipv6-address | -s packetsize | -name | -v ] * host
Only S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support -v.
Parameter | Description | Value |
---|---|---|
-f first-hop-limit | Specifies the initial hop-limit. Carried in the IPv6 header, the hop-limit (time to live) indicates the lifetime of IPv6 packets and specifies the maximum number of hops that the IPv6 packets can pass through. The hop-limit field in IPv6 packets is similar to the TTL field in the IPv4 packets. The hop-limit value is set on the source and reduced by 1 each time the packet passes through a Layer 3 device. When the hop-limit value is reduced to 0 on a Layer 3 device, the Layer 3 device discards the packet and sends an ICMPv6 Timeout message to the source. If first-hop-limit is specified and the number of hops is smaller than the specified value, the hop-limit value will be greater than 0 after the packet passes through all the nodes. Therefore, no ICMPv6 Timeout message is sent to the source. If max-hop-limit is specified, the value of first-hop-limit must be smaller than the value of max-hop-limit. |
The value is an integer that ranges from 1 to 255. The default value is 1. |
-m max-hop-limit | Specifies the maximum hop-limit. Usually, the maximum hop-limit is set to the number of hops that a packet passes through. To change the hop-limit value, you need to use this parameter. If first-hop-limit is specified, the value of max-hop-limit must be greater than the value of first-hop-limit. |
The value is an integer that ranges from 1 to 255. The default value is 30. |
-p port-number | Specifies the UDP port number of the destination.
|
The value is an integer that ranges from 1 to 65535. The default value is 33434. |
-q probes | Specifies the number of tracert packets sent each time. In the case of poor network quality, you can set probes to a comparatively large value to ensure that tracert packets can reach the destination. |
The value is an integer that ranges from 1 to 65535. The default value is 3. |
-w timeout | Sets the timeout period to wait for a reply. If a tracert packet times out when reaching a gateway, an asterisk (*) is displayed. In the case of poor network quality and a low network transmission rate, you are advised to prolong the timeout period. |
The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 5000. |
vpn-instance vpn-instance-name | Specifies the name of a VPN instance for the IPv6 address family. |
The value must be an existing VPN instance name. |
-a source-ipv6-address | Specifies the source address of a tracert packet. If this parameter is not specified, the IP address of the outbound interface is used as the source IP address for sending tracert packets. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
-s packetsize | Specifies the length of an ICMPv6 Echo Request message, excluding the IP header and ICMPv6 header. |
The value is an integer that ranges from 20 to 9600, in bytes. The default value is 56. |
-name | Displays the name of the destination host. | - |
-v | Displays the MPLS label carried in the ICMP Time Exceeded packet. | By default, the MPLS label carried in the ICMP Time Exceeded is not displayed. Instead, only the path information carried in the ICMP Time Exceeded and Port-Unreachable packets is displayed. |
host | Specifies the host name or IPv6 address of the destination host. |
The value is a string of 1 to 255 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. The IPv6 address is a 32–bit string in hexadecimal format, namely, the format X:X:X:X:X:X:X:X. |
Usage Scenario
When a fault occurs on the network and the peer is an IPv6 device, you can run the ping ipv6 command to check network connectivity based on the reply message, and then run the tracert ipv6 command to locate the fault.
Prerequisites
Procedure
When receiving an IPv6 packet, each destination hop cannot find the port specified in the IPv6 packet, and therefore returns an ICMPv6 Port Unreachable message, indicating that the destination port is unreachable and the IPv6 tracert ends. In this manner, the result of each probe is displayed on the source, according to which you can find the path from the source to the destination.
Configuration Impact
If a fault occurs when you run the tracert ipv6 command, the following information may be displayed:
Precautions
By default, the ICMPv6 module is automatically enabled after you enable the IPv6 module.
# Set the number of packets to be sent to 5 and timeout period to 8000 ms, and tracert the gateways from the source to the destination at FC00::3.
<HUAWEI> tracert ipv6 -q 5 -w 8000 FC00::3
traceroute to FC00::3 30 hops max,60 bytes packet
1 FC00:1::3 26 ms 23 ms 26 ms 30 ms 29 ms
2 FC00::3 3020 ms 3024 ms 4040 ms 6820 ms 5584 ms
Item |
Description |
---|---|
traceroute to HH:HH::HH:H |
IPv6 address of the destination host. |
x hops max |
Maximum hop-limit value. |
x bytes packet |
Length of a tracert packet. |
1 2 |
Sequence number of the received ICMPv6 Echo Reply message. |
HH:HH::HH:H |
Address of the IPCMPv6 Echo Reply message. |
26 ms 23 ms 26 ms 30 ms 29 ms |
RTT, in milliseconds. |