traceroute <host> tcp-syn
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).
- Uses TCP SYN for the probes.
- The following entries are options. Multiple options can be included on the same command line.
- Performs AS path lookups in routing registries and print results directly after the corresponding addresses.
- 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.
- Specifies the first time-to-live value. Defaults to 1.
- 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.
- Specifies the interface that the device must use for traceroute requests.
- Specifies the time in seconds between traceroute requests from the device.
- Specifies the maximum number of hops for the probe.
- Does not fragment the probe packets.
- Specifies the number of probe packets per hop. The default is 3.
- 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.
- Specifies the number of sequential probe packets.
- Specifies an alternative source host by hostname, IPv4 address, or MAC address.
- Marks the packets with the specified Type of Service (TOS) value.
- Displays the timestamp during ping output.
- 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 using tcp-syn for probes.
vyatta@vyatta# traceroute google.com tcp-syn traceroute to google.com (126.96.36.199), 30 hops max, 60 byte packets 1 gateway.attlocal.net (10.0.6.1) 0.389 ms 0.341 ms 0.316 ms 2 75-25-153-214.uvs.sntcca.sbcglobal.net (188.8.131.52) 12.784 ms 12.767 ms 12.771 ms 3 76-198-128-2.lightspeed.mtvwca.sbcglobal.net (184.108.40.206) 35.539 ms 35.529 ms 35.517 ms 4 220.127.116.11 (18.104.22.168) 35.512 ms 35.503 ms 33.653 ms 5 22.214.171.124 (126.96.36.199) 38.888 ms 36.371 ms 37.952 ms 6 188.8.131.52 (184.108.40.206) 63.947 ms 63.087 ms 63.045 ms 7 * * * 8 220.127.116.11 (18.104.22.168) 28.752 ms 29.378 ms 29.368 ms 9 * * * 10 nuq04s18-in-f6.1e100.net (22.214.171.124) 29.669 ms 27.836 ms 29.669 ms