traceroute <host> as-path
Displays the route that packets take to a network host.
- Explicitly force IPv4 traceouting. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, traceroute will use IPv4.
- Explicitly force IPv6 traceouting. By default, the program will try to resolve the name given, and choose the appropriate protocol automatically. If resolving a host name returns both IPv4 and IPv6 addresses, traceroute will use IPv6.
- A host that is the destination for the trace. The host is specified as a name (if DNS is being used on the network), as an IPv4 or IPv6 address, or as a MAC address (format h:h:h:h:h:h:h:h).
- Performs AS path lookups in routing registries and print results directly after the corresponding addresses.
- The following entries are options. Multiple options can be included on the same command line.
- Bypasses the normal routing tables and send directly to a host on an attached network. If the host is not on a directly-attached network, an error is returned. This option can be used to ping a local host through an interface that has no route through it.
- Enables socket level debugging.
- first-ttl value
- Specifies the first time-to-live value. Defaults to 1.
- gateway address
- Routes the request through a specified gateway.
- Uses ICMP echo for the traceroute probe.
- Shows ICMP extensions (rfc4884). The general form is CLASS/TYPE: followed by a hexadecimal dump.
- interface value
- Specifies the interface that the device must use for traceroute requests.
- interval value
- Specifies the time in seconds between traceroute requests from the device.
- max-ttl value
- Specifies the maximum number of hops for the probe.
- Does not fragment the probe packets.
- num-queries number
- Specifies the number of probe packets per hop. The default is 3.
- port number
- For UDP tracing, specifies the destination port base traceroute will use (the destination port number will be incremented by each probe). For ICMP tracing, specifies the initial icmp sequence value (incremented by each probe too). For TCP specifies just the (constant) destination port to connect.
- seq-queries number
- Specifies the number of sequential probe packets.
- source-addr host
- Specifies an alternative source host by hostname, IPv4 address, or MAC address.
- Uses TCP SYN for the probes.
- tos value
- Marks the packets with the specified Type of Service (TOS) value.
- Displays the timestamp during ping output.
- wait-time value
- Specifies the time (seconds) to wait for a response from the probe. Default is 5 seconds.
Use this command to perform a “traceroute” operation for a network host. This operation uses the IP protocol time-to-live (TTL) field and attempts to elicit an Internet Control Message Protocol (ICMP) TIME_EXCEEDED response from each gateway along the path to a host to track the route that a set of packets follows. It attempts to trace the route an IP packet follows to an Internet host by launching User Datagram Protocol (UDP) probe packets with a small time to live, then listening for an ICMP “Time exceeded” reply from a gateway.
The following example illustrates a traceroute to google.com including AS path information.
vyatta@vyatta# traceroute google.com as-path traceroute to google.com (188.8.131.52), 30 hops max, 60 byte packets 1 10.18.170.1 (10.18.170.1) [*] 0.681 ms 0.529 ms 0.580 ms 2 10.31.23.6 (10.31.23.6) [*] 0.476 ms 0.433 ms 0.481 ms 3 10.254.33.1 (10.254.33.1) [*] 0.864 ms 0.831 ms 0.826 ms 4 184.108.40.206 (220.127.116.11) [AS29791/AS21948] 8.022 ms 1.183 ms 1.295 ms 5 ae6-395.edge8.sanjose1.level3.net (18.104.22.168) [AS3356] 2.106 ms 2.046 ms 2.006 ms 6 ae-1-60.edge1.sanjose3.level3.net (22.214.171.124) [AS3356] 2.887 ms * * 7 126.96.36.199 (188.8.131.52) [AS15169] 2.878 ms 2.972 ms 2.938 ms 8 184.108.40.206 (220.127.116.11) [AS15169] 3.430 ms 4.754 ms 3.460 ms 9 18.104.22.168 (22.214.171.124) [AS15169] 4.568 ms 4.516 ms 4.455 ms 10 nuq04s29-in-f14.1e100.net (126.96.36.199) [AS15169] 3.159 ms 3.134 ms 3.097 ms