traceroute


The traceroute command is used to check the route of packets when travelling from the source to the destination. When the network fails, the user can use this command to troubleshooting the fault point.


Command Syntax

  •   From the ">" prompt, use the following format,

traceroute <ip-address> [vrf <mgmt-vrf | vrf-name>]

  •   From the "#" prompt, add run in front of the command,

run traceroute <ip-address> [vrf <mgmt-vrf | vrf-name>]


Parameter

Parameter

Description

<ip-address>

Specifies the domain name or IPv4/IPv6 address of the destination host.

vrf <mgmt-vrf | vrf-name>

Optional. Specifies a VRF name. The value is a string that could be mgmt-vrf or a user-defined VRF name.

  •   mgmt-vrf: management VRF is specified.
  •   vrf-name: a user-defined VRF set by using command set ip vrf <vrf-name> [description <string>].

NOTE:

  •   When a VRF name is specified, find the next hop routing information from the specified VRF domain.
  •   When no VRF is specified, find the next hop routing information from the default VRF.


Example

  •   Traceroute the gateways for the host with the IP address 10.10.50.11.
admin@Xorplus> traceroute 10.10.50.11
traceroute to 10.10.50.11 (10.10.50.11), 30 hops max, 60 byte packets
 1  bogon (10.10.51.1)  3.063 ms  3.214 ms  3.370 ms
 2  bogon (10.10.50.11)  0.195 ms  0.172 ms  0.201 ms
  • Traceroute the gateways for the host with the IP address fc00::3.
admin@Xorplus> traceroute fc00::3
traceroute to fc00::3 (fc00::3), 30 hops max, 60 byte packets
 1  bogon (FC00:1::3)  15 ms  20 ms  30 ms
 2  bogon (FC00::3)  1901 ms  1207 ms  3020 ms

Copyright © 2024 Pica8 Inc. All Rights Reserved.