Linux traceroute Command Detailed

Source: Internet
Author: User
Tags traceroute command

Traceroute we can know what path the information from your computer to the other end of the Internet host is walking. Of course, each time a packet arrives at a similar destination (destination) by a similar starting point (source), the path may be different, but basically the route is the same.

Common Command Parameters
Options:-4 use ipv4-6 with ipv6-d--debug Enable s                              Ocket level debugging-f--dont-fragment does 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--ICM P use ICMP ECHO for tracerouting-t--tcp with 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 be tried SimultaneousLy (default is)-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 (Increm                              Ented by each probe, default was 33434), or initial seq for "ICMP" (incremented as well, Default from 1), or some constant destination port for other methods  (with default of $ for "TCP", + + for "UDP", etc.) -T tos--tos=tos Set the TOS (IPV4 type of service) or TC (IPv6 traffic Class) Val UE for outgoing packets-l flow_label--flowlabel=flow_label use specified Flow_label for I                             Pv6 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 a attached network-s src_addr--source=src_addr use so Urce src_addr for outgoing packets-z sendwait--sendwait=sendwait Minimal time interval be                              Tween probes (default 0).  If the value is more than ten, then it specifies a number in milliseconds, else it's a number of seconds (float point values allowed too)-e--extensions Show ICMP extension                        S (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 U Se 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)-P prot--protocol=prot use raw Packet of protocol prot for Tracerou Ting--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
Common Command Display

Multi-Command use

Traceroute-n-M 5-q 4-w 3 www.baidu.com

Description:-n Display IP address, do not check host name,-m set hop number

-Q 4 Send 4 packets per gateway-W sets the waiting response time for the external probe packet to 3 seconds

Basic UDP port settings used by probe packet 6888

Traceroute-p 6888 www.baidu.com

Bypass the normal routing table and send directly to a network-attached host

Traceroute-r www.baidu.com

Linux traceroute Command Detailed

Related Article

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.