Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the traceroute command in Linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use the traceroute command in Linux. I hope you will get something after reading this article. Let's discuss it together.

Linux commonly used command traceroute command is used to display the path between packets to the host, the traceroute command allows you to track the routing path of network packets, the default packet size is 40Bytes, the user can set separately.

Syntax traceroute [- dFlnrvx] [- f] [- g...] [- I] [- m] [- p] [- s] [- t] [- w] [host name or IP address] [packet size] parameter description:

-d uses Socket-level troubleshooting capabilities.

-f sets the size of the survival value TTL of the first detection packet.

-F setting do not leave the break bit.

-g set source routing gateways. A maximum of 8 can be set.

-I send out packets using the specified network interface.

-I use ICMP responses instead of UDP data information.

-m sets the size of the maximum survival value TTL of the detection packet.

-n directly use the IP address instead of the host name.

-p sets the communication port of the UDP transport protocol.

-r ignores the normal Routing Table and sends the packet directly to the remote host.

-s sets the IP address of the packet sent by the local host.

-t sets the TOS value of the detection packet.

-v shows the execution of the instruction in detail.

-w sets the time to wait for a return from the remote host.

-x turns on or off the correctness check of the packet.

The example shows the packet route to the destination

# traceroute www.google.comtraceroute: Warning: www.google.com has multiple addresses Using 66.249.89.99traceroute to www.l.google.com (66.249.89.99), 30 hops max 38 byte packets1 192.168.0.1 (192.168.0.1) 0.653 ms 0.846 ms 0.200 ms2 118.250.4.1 (118.250.4.1) 36.610 ms 58.438 ms 55.146 ms3 222.247.28.177 (222.247.28.177) 54.809 ms 39.879 ms 19.186 ms4 61.187.255.253 (61.187.255.253) 18.033 ms 49.699 ms 72.147 ms5 61.137.2 .177 (61.137.2.177) 32.912 ms 72.947 ms 41.809 ms6 202.97.46.5 (202.97.46.5) 60.436 ms 25.527 ms 40.023 ms7 202.97.35.69 (202.97.35.69) 40.049 ms 66.091 ms 44.358 ms8 202.97.35.110 (202.97.35.110) 42.140 ms 70.913 ms 41.144 ms9 202.97.35.14 (202.97.35) .14) 116.929 ms 57.081 ms 60.336 ms10 202.97.60.34 (202.97.60.34) 54.871 ms 69.302 ms 64.353 ms11 * 12 209.85.255.80 (209.85.255.80) 95.954 ms 79.844 ms 76.052 ms MPLS Label=385825 CoS=5 TTL=1 Song013 209.85.249.195 (209.85.249.195) 118.687 ms 120.905 ms 113.936 ms14 72.14.236.126 (72. 14.236.126) 115.843 ms 137.109 ms 186.491 ms15 nrt04s01-in-f99.1e100.net (66.249.89.99) 168.024 ms 140.551 ms 161.127 ms finished reading this article I believe you have a certain understanding of "how to use traceroute commands in Linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report