traceroute srv6
Syntax
root@host> traceroute srv6 isis ? Possible completions: <host> IPv6 loopback address or SRv6 SID of remote host logical-system Name of logical system no-resolve Don't attempt to print addresses symbolically probe-icmp Use ICMP echo request for probes retries Number of times to resend probe (1..9) routing-instance Name of routing instance for traceroute attempt source Source IPv6 address to use when sending probes tos IPv6 type-of-service value (0..255) ttl Maximum time-to-live value (1..255) wait Number of seconds to wait before resending probe (5..15)
route@host> traceroute srv6 spring-te sids-stack ? Possible completions: logical-system Name of logical system nexthop-address Nexthop IP address for the traceroute packet nexthop-interface Outgoing interface for the traceroute packet no-resolve Don't attempt to print addresses symbolically probe-icmp Use ICMP echo request for probes retries Number of times to resend probe (1..9) routing-instance Name of routing instance for traceroute attempt + sids SRv6 SIDs in srv6-stack - [sid0 sid1 sid2 ... sidn(top)] source Source IPv6 address to use when sending probes tos IPv6 type-of-service value (0..255) ttl Maximum time-to-live value (1..255) wait Number of seconds to wait before resending probe (5..15)
root@host> traceroute srv6 spring-te sids-stack sids [sidvalue] nexthop-address <nh-addr> nexthop-interface <if-name> ? Possible completions: <[Enter]> Execute this command logical-system Name of logical system no-resolve Don't attempt to print addresses symbolically probe-icmp Use ICMP echo request for probes retries Number of times to resend probe (1..9) routing-instance Name of routing instance for traceroute attempt + sids SRv6 SIDs in srv6-stack - [sid0 sid1 sid2 ... sidn(top)] source Source IPv6 address to use when sending probes tos IPv6 type-of-service value (0..255) ttl Maximum time-to-live value (1..255) wait Number of seconds to wait before resending probe (5..15) | Pipe through a command
Description
Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.
An SRv6 segment is a 128-bit value Segment Identifier (SID) often used as a shorter reference for SRv6 Segment. Traceroute to a SID is used for hop-by-hop fault localization and to trace path to a SID.
Options
| logical-system |
(Optional) Specify the name of the logical system for the traceroute attempt. |
| no-resolve |
(Optional) Indicates not to attempt to print addresses symbolically. |
| probe-icmp |
(Optional) ICMP echo request for probes. |
| retries retries-number |
(Optional) Specify the number of times to resend probe values.
|
| routing-instance routing-instance-name |
(Optional) Specify the name of the routing instance for the traceroute attempt. |
| source source-address |
(Optional) Specify the source IPv6 address to use when sending probes. . |
| tos value |
(Optional) Specify the IPv6 type-of-service value.
|
| ttl value |
(Optional) Specify the maximum time-to-live value to include in the traceroute request, in seconds.
|
| wait seconds |
(Optional) Specify the number of seconds to wait before resending a probe.
|
| nexthop-address address |
Specify the nexthop IP address for the traceroute packet. |
| nexthop-interface interface-name |
Specify the outgoing interface for the traceroute packet. . |
| sids interface-name |
Specify the SRv6 SIDs in srv6-stack - [sid0 sid1 sid2 ... sidn(top)]. . |
Required Privilege Level
network
Output Fields
traceroute srv6 describes the output fields for
the traceroute srv6 isis command and the traceroute srv6
spring-te
sids-stack commands. Output fields are listed in the
approximate order in which they appear.
|
Field Name |
Field Description |
|---|---|
|
host |
IPv6 loopback address or SRv6 SID of remote host. |
|
source |
Source address used when you send probes. |
|
tos |
Value for IPv6 type-of-service. |
|
wait |
Number of seconds to wait before resending probe. |
|
destination address |
destination-address for the traceroute packet. |
|
ttl |
Maximum time to live value. |
|
retries |
Number of times to resend the probe. |
|
Source address |
Source IP address for traceroute attempt. |
|
depth |
Time to live value of the packet. |
|
probe address |
Address of the next-hop. |
|
round trip time |
Total time for a packet to travel from source to destination and back to source again. |
|
status |
Return code for reporting the result of processing the echo request by the receiver. |
|
DA |
Destination address to trace. |
|
SRH |
Updated Segment routing header. |
Sample Output
Output for ISIS SRv6
user@router>traceroute srv6 isis 3000::1
traceroute to destination 3000::1, from source abcd::128:207:222:159, 64 hops max, retries 3
1 ::10.1.1.1 3.543 ms 1.871 ms 2.793 ms
DA: 3000::1
2 ::20.1.1.2 2.610 ms 2.847 ms 2.462 ms
DA: 3000::1
3 ::30.1.1.3 4.639 ms 4.044 ms 4.303 ms
DA: 3000::1
Traceroute status: SuccessOutput for SRv6 spring-te sids-stack
user@router>traceroute srv6 spring-te sids-stack sids [4000::1 3000::1] nexthop-interface ge-0/0/0.0 nexthop-address ::10.1.1.1
traceroute to destination 4000::1, from source abcd::128:207:222:159, 64 hops max, retries 3
1 ::10.1.1.1 2.702 ms 1.617 ms 1.481 ms
DA: 3000::1
SRH: (4000::1, 3000::1, SL = 1)
2 ::20.1.1.2 2.345 ms 2.226 ms 2.381 ms
DA: 3000::1
SRH: (4000::1, 3000::1, SL = 1)
3 ::30.1.1.3 3.448 ms 2.951 ms 3.079 ms
DA: 3000::1
SRH: (4000::1, 3000::1, SL = 1)
4 ::30.1.1.2 2.911 ms 2.864 ms 3.212 ms
DA: 4000::1
5 ::20.1.1.1 4.349 ms 3.455 ms 3.921 ms
DA: 4000::1
Traceroute status: SuccessRelease Information
Command introduced in Junos OS Release 22.3R1.