Using traceroute to solve TCP/IP problems in Linux

Source: Internet
Author: User

[Email protected] ~]# traceroute

Usage:

traceroute [ -46DFITNREAUV] [-F First_ttl] [-G gate,...] [-I device] [-M Max_ttl] [-N Squeries] [-P Port] [-T TOS] [-L Flow_label] [-W waittime] [-Q Nqueries] [-S SRC_ADDR] [-Z sendwait] host [Packetlen]

Options:

-4 Use IPv4

-6 Use IPv6

-D--debug Enable socket level debugging

-F--dont-fragment do not fragment packets

-F First_ttl--first=first_ttl

Start from the First_ttl hop (instead from 1)

-G gate,...--Gateway=gate,...

Route packets through the specified gateway

(maximum 8 for IPV4 and 127 for IPV6)

-I--icmp use ICMP ECHO for tracerouting

-T--tcp use TCP SYN for tracerouting

-I. Device--interface=device

Specify a network interface to operate with

-M Max_ttl--max-hops=max_ttl

Set the max number of hops (Max TTL to IS

reached). Default is 30

-N squeries--sim-queries=squeries

Set the number of probes to is tried

Simultaneously (default is 16)

-N Do not resolve IP addresses to their domain names

-P Port--port=port Set the destination port to use. It is either

Initial UDP port value for "default" method

(incremented by each probe, default is 33434), or

Initial seq for "ICMP" (incremented as well,

Default from 1), or some constant destination

Port for other methods (with default of

"TCP", for "UDP", etc.)

-T tos--tos=tos Set the TOS (IPV4 type of service) or TC (IPv6

Traffic class) value for outgoing packets

-L Flow_label--flowlabel=flow_label

Use specified Flow_label for IPV6 packets

-W waittime--wait=waittime

Set the number of seconds to wait for response to

A probe (default is 5.0). Non-integer (float

Point) values allowed too

-Q nqueries--queries=nqueries

Set the number of probes per each hop. Default is

3

-R Bypass The normal routing and send directly to a

Host on an attached network

-S Src_addr--source=src_addr

Use source src_addr for outgoing packets

-Z sendwait--sendwait=sendwait

Minimal time interval between probes (default 0).

If the value is more than ten, then it specifies a

Number in milliseconds, else it is a number of

Seconds (float point values allowed too)

-e--extensions Show ICMP extensions (if present), including MPLS

-a--as-path-lookups Perform as path lookups in routing registries and

Print results directly after the corresponding

Addresses

-m name--module=name use specified module (either builtin or external)

For traceroute operations. Most methods has

Their shortcuts ('-I ' means '-m ICMP ' etc.)

-O OPTS,...--options=opts,...

Use module-specific option OPTS for the

Traceroute module. Several OPTS Allowed,

separated by comma. If OPTS is ' help ', print info

About available options

--sport=num use source port num for outgoing packets. implies

'-N 1 '

-U--udp use UDP-particular port for tracerouting

(instead of increasing the port per each probe),

Default port is 53

-ul use Udplite for tracerouting (default dest port

Is 53)

-P prot--protocol=prot use raw Packet of protocol prot for Tracerouting

--MTU Discover MTU along the path being traced. implies

'-f-n 1 '

--back Guess The number of hops in the backward path and

Print if it differs

-V--version Print version info and exit

--help Read this Help and exit


Arguments:

+ Host the host to Traceroute

Packetlen the full packet length (default was the length of an IP

Header plus 40). Can is ignored or increased to a minimal

Allowed value


This article is from "Try to be brave" blog, declined reprint!

Using traceroute to solve TCP/IP problems in Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.