The tracert ipv6 command enables the system to trace gateways that packets pass through from the source to the destination with an IPv6 address.
tracert ipv6 [ -f first-hop-limit | -m max-hop-limit | -p port-number | -q probes | -w timeout | vpn-instance vpn-instance-name | -s size | -name | -a source-ipv6-address | -v | -nexthop nextHopAddr | -passroute | { -tc tc | -dscp dscp } | -service-class classValue ] * host-name [ -i { ifName | ifType ifNum } ]
tracert ipv6 [ -f first-hop-limit | -m max-hop-limit | -p port-number | -q probes | -w timeout | { vpn-instance vpn-instance-name [ peer peerIpv6 ] } | -s size | -name | -a source-ipv6-address | -v | -nexthop nextHopAddr | -passroute | { -tc tc | -dscp dscp } ] * host-name [ -i { ifName | ifType ifNum } ]
Parameter | Description | Value |
---|---|---|
-f first-hop-limit |
Specifies the initial hop-limit. Carried in the IPv6 header, the hop-limit field indicates the lifetime of the IPv6 packet and specifies the maximum number of devices through which the packet can pass. The hop-limit field in IPv6 packets is similar to the TTL field in IPv4 packets. The hop-limit value is set on the source and reduced by 1 each time the packet passes through one device. When the hop-limit value is reduced to 0, the packet is discarded. At the same time, an ICMPv6 Timeout packet is sent to the source. If first-hop-limit is specified and the number of hops is less 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 packet 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 through which packets passes. Use this parameter to change hop-limit. If first-hop-limit is specified, max-hop-limit must be greater than 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 ranging from 1 to 65535. The default value is 33434. |
-q probes |
Specifies the number of test packets sent in a trace test instance. In the case of poor network qualities, increase value so that a test packet can reach the destination. |
The value is an integer ranging from 1 to 65535. The default value is 3. |
-w timeout |
Specifies the period of time for waiting for a response. If a test packet reaches a gateway and times out, an asterisk (*) is displayed. In the case of poor network qualities and a low network transmission rate, increase the timeout period. |
The value is an integer ranging from 1 to 65535, in milliseconds. The default value is 5000. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters. |
-s size |
Specifies the size of a packet. |
The value is an integer that ranges from 20 to 9600. |
-a source-ipv6-address |
Specifies the source IPv6 address of an ICMPv6 echo request packet to be sent. If no source IPv6 address is specified, the IPv6 address of the outbound interface through which ICMPv6 echo request packets are sent is used as the source address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
-name |
Displays the host name of the destination address. |
- |
-v |
Displays packet details, including MPLS label information. |
- |
-nexthop nextHopAddr |
Specifies an IPv6 address for the next hop. If you have specified this parameter, the device no longer searches the routing table before sending UDP packets. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
|
-passroute |
Sends UDP packets without searching for the routing table. |
- |
-tc tc |
Specifies the traffic class of ICMPv6 Echo Request messages. You can specify traffic-class-value to control ICMPv6 Echo Request messages. |
The value is an integer that ranges from 0 to 255. The default value is <b>0</b>. |
-dscp dscp |
Specifies a DSCP value for ICMPv6 Echo Request packets to be sent. |
The value is an integer in the range from 0 to 63. The default value is <b>0</b>. |
host-name |
Specifies the name or the IPv6 address of a destination host. |
The value is a string of 1 to 255 characters. If the IPv6 address of a destination is specified, the value is in the format of X:X:X:X:X:X:X:X. |
-i ifName |
Sets the interface name for sending UDP messages. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
ifType |
Sets the interface type for sending UDP messages. |
- |
ifNum |
Sets the interface number for sending UDP messages. |
The value is a string of 1 to 63 case-insensitive characters. It cannot contain spaces. |
-service-class classValue |
In an SRv6 TE Policy group scenario, you can specify this parameter to select a path. |
Enumerated type. Range: {be,af1,af2,af3,af4,ef,cs6,cs7}. |
peer peerIpv6 |
Specifies a peer SID, that is, the address of the last hop in the SRv6 domain, in EVPN L3VPN over SRv6 BE scenarios. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
Usage Scenario
You can run the ping ipv6 command to check the connectivity of the network and then run the tracert ipv6 command to locate the faulty node.
You can specify different parameters in the tracert ipv6 command in various test scenarios:Prerequisites
Implementation Procedure
The process of the tracert ipv6 command is as follows:
Precautions
<HUAWEI> tracert ipv6 -v 2001:DB8:2::1
traceroute to 2001:DB8:2::1 30 hops max,60 bytes packet
1 2001:DB8:1::2 81 ms 1 ms 1 ms
2 2001:DB8:10::3[MPLS Label=32830/32829 Exp=0/0 S=0/1 TTL=1/1] 310 ms 1 ms 2 ms
3 2001:DB8:20::4[MPLS Label=32830/32829 Exp=0/0 S=0/1 TTL=1/1] 118 ms 2 ms 1 ms
4 2001:DB8:2::2 142 ms 1 ms 2 ms
5 2001:DB8:2::1 95 ms 2 ms 2 ms
<HUAWEI> tracert ipv6 -name -f 1 -m 3 -p 65535 -q 2 2001:db8::1
traceroute to 2001:DB8::1 (www.huawei.com) 3 hops max,60 bytes packet
1 2001:DB8::1 67 ms 14
<HUAWEI> tracert ipv6 -name -f 1 -m 3 -p 65535 -q 2 www.huawei.com
Resolved Host ( www.huawei.com -> 2001:db8::1 )
traceroute to www.huawei.com (2001:DB8::1) 3 hops max,60 bytes packet
1 2001:DB8::1 66 ms 22 ms
<HUAWEI> tracert ipv6 -f 2 -m 64 2001:db8:100::3
traceroute to vpn_out 2001:DB8:100::3 30 hops max,60 bytes packet
1 2001:DB8:200::2 26 ms 23 ms 26 ms
2 2001:DB8:300::1 47 ms 32 ms 33 ms
3 2001:DB8:400::2 63 ms 46 ms 47 ms
4 2001:DB8:100::3 78 ms 79 ms 62 ms
<HUAWEI> tracert ipv6 vpn-instance vsi6 2001:db8:100::3
traceroute to 2001:DB8:100::3 30 hops max,60 bytes packet
1 2001:DB8:200::2 26 ms 23 ms 26 ms
2 2001:DB8:100::2 3020 ms !H 3024 ms !H 4040 ms !H
<HUAWEI> tracert ipv6 -q 5 -w 8000 2001:db8:100::3
traceroute to 2001:DB8:100::3 30 hops max,60 bytes packet
1 2001:DB8:200::2 26 ms 23 ms 26 ms 30 ms 29 ms
2 2001:DB8:100::3 3020 ms 3024 ms 4040 ms 6820 ms 5584 ms
Item | Description |
---|---|
traceroute to HH:HH::HH:H | Destination IPv6 address. |
1 | Sequence number of the received ICMPv6 Echo Response packet. |
x hops max | Maximum hop-limit. |
x bytes packet | Size of a test packet. |
HH:HH::HH:H | Address of a reply. |
x ms x ms x ms | Round-Trip Time (RTT) value, in milliseconds. |
MPLS Label | MPLS label value. |
Exp | Traffic priority. |
TTL | Time to live. |