[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

traceroute

Syntax

traceroute host
<as-number-lookup>
<bypass-routing>
<clns>
<gateway address>
<inet | inet6>
<interface interface-name>
<logical system (all | logical-system-name)>
<mpls (ldp FEC address | rsvp label-switched-path-name)>
<no-resolve>
<routing-instance routing-instance-name>
<source source-address>
<tos value>
<ttl value>
<wait seconds>

Release Information

Command introduced before JUNOS Release 7.4. The mpls option was introduced in JUNOS Release 9.2.

Description

Display the route packets take to a specified network host. Use traceroute as a debugging tool to locate points of failure in a network.

Options

hostIP address or name of remote host.

as-number-lookup — (Optional) Display the autonomous system (AS) number of each intermediate hop on the path from the host to the destination.

bypass-routing — (Optional) Bypass the normal routing tables and send requests directly to a system on an attached network. If the system is not on a directly-attached network, an error is returned. Use this option to display a route to a local system through an interface that has no route through it.

clns — (Optional) Trace the route belonging to Connectionless Network Service (CLNS).

gateway address(Optional) Address of a router through which the route transits.

inet | inet6 — (Optional) Trace the route belonging to IPv4 or IPv6, respectively.

interface interface-name(Optional) Name of the interface over which to send packets.

logical-system (all | logical-system-name) — (Optional) Perform this operation on all logical systems or on a particular logical system.

mpls (ldp FEC address | rsvp label-switched-path name) — (Optional) Analyze the status of LDP-signalled or RSVP-signalled MPLS LSPs. You can optionally specify the FEC address for the LDP LSP or the LSP name for RSVP. You can also analyze a specific LSP by issuing the traceroute mpls rsvp lsp-name command. You can only analyze IPv4 point-to-point LSPs. IPv6 is not supported.

no-resolve — (Optional) Do not attempt to determine the hostname that corresponds to the IP address.

routing-instance routing-instance-name(Optional) Name of the routing instance for the traceroute attempt.

source source-address(Optional) Source address of the outgoing traceroute packets.

tos value(Optional) Value to include in the IP type-of-service (ToS) field. The range of values is 0 through 255.

ttl value(Optional) Maximum time-to-live value to include in the traceroute request. The range of values is 0 through 128.

wait seconds(Optional) Maximum time to wait for a response to the traceroute request.

Required Privilege Level

network

List of Sample Output

traceroute
traceroute as-number-lookup host
traceroute noresolve
traceroute (Between CE Routers, Layer 3 VPN)
traceroute (Through an MPLS LSP)

Output Fields

Table 31 describes the output fields for the traceroute command. Output fields are listed in the approximate order in which they appear.

Table 31: traceroute Output Fields

Field Name

Field Description

traceroute to

IP address of the receiver.

hops max

Maximum number of hops allowed.

byte packets

Size of packets being sent.

number-of-hops

Number of hops from the source to the named router.

router-name

Name of the router for this hop.

address

Address of the router for this hop.

Round trip time

Average round-trip time, in milliseconds (ms).

Sample Output

traceroute

user@host> traceroute santacruz
traceroute to green.company.net (10.156.169.254), 30 hops max, 40 byte packets
 1  blue23 (10.168.1.254)    2.370 ms  2.853 ms  0.367 ms
 2  red14  (10.168.255.250)  0.778 ms  2.937 ms  0.446 ms
 3  yellow (10.156.169.254)  7.737 ms  89.905 ms  0.834 ms

traceroute as-number-lookup host

user@host> traceroute as-number-lookup 10.100.1.1
traceroute to 10.100.1.1 (10.100.1.1), 30 hops max, 40 byte packets
 1  10.39.1.1 (10.39.1.1)  0.779 ms  0.728 ms  0.562 ms
 2  10.39.1.6 (10.39.1.6) [AS  32]  0.657 ms  0.611 ms  0.617 ms
 3  10.100.1.1 (10.100.1.1) [AS  10, 40, 50]  0.880 ms  0.808 ms  0.774 ms

traceroute noresolve

user@host> traceroute santacruz noresolve
traceroute to green.company.net (10.156.169.254), 30 hops max, 40 byte packets
 1  10.168.1.254  0.458 ms  0.370 ms  0.365 ms
 2  10.168.255.250  0.474 ms  0.450 ms  0.444 ms
 3  10.156.169.254  0.931 ms  0.876 ms  0.862 ms

traceroute (Between CE Routers, Layer 3 VPN)

user@host> traceroute vpn09
traceroute to vpn09.skybank.net (10.255.14.179), 30 hops max, 40 
      byte packets 
       1  10.39.10.21 (10.39.10.21)  0.598 ms  0.500 ms  0.461 ms 
       2  10.39.1.13 (10.39.1.13)  0.796 ms  0.775 ms  0.806 ms 
           MPLS Label=100006 CoS=0 TTL=1 S=1 
       3  vpn09.skybank.net (10.255.14.179)  0.783 ms  0.716 ms  0.686

traceroute (Through an MPLS LSP)

user@host> traceroute mpls1
traceroute to 10.168.1.224 (10.168.1.224), 30 hops max, 40 byte packets
 1  mpls1-sr0.company.net (10.168.200.101)  0.555 ms  0.393 ms  0.367 ms
     MPLS Label=1024 CoS=0 TTL=1
 2  mpls5-lo0.company.net (10.168.1.224)  0.420 ms  0.394 ms  0.401 ms


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]