android+tracert命令详解,tracert 命令详解(示例代码)

android+tracert命令详解,tracert 命令详解(示例代码)tracert 命令详解 HowtoUsetheT ICMP echopacketst Int

tracert 命令详解

How to Use the TRACERT Utility

The TRACERT diagnostic utility determines the route to a destination by sending Internet Control Message Protocol (ICMP) echo packets to the destination. In these packets, TRACERT uses varying IP Time-To-Live (TTL) values. Because each router along the path is required to decrement the packet‘s TTL by at least 1 before forwarding the packet, the TTL is effectively a hop counter. When the TTL on a packet reaches zero (0), the router sends an ICMP “Time Exceeded” message back to the source computer.

TRACERT sends the first echo packet with a TTL of 1 and increments the TTL by 1 on each subsequent transmission, until the destination responds or until the maximum TTL is reached. The ICMP “Time Exceeded” messages that intermediate routers send back show the route. Note however that some routers silently drop packets that have expired TTLs, and these packets are invisible to TRACERT.

TRACERT prints out an ordered list of the intermediate routers that return ICMP “Time Exceeded” messages. Using the -doption with the tracert command instructs TRACERT not to perform a DNS lookup on each IP address, so that TRACERT reports the IP address of the near-side interface of the routers.

In the following example of the tracert command and its output, the packet travels through two routers (157.54.48.1 and 11.1.0.67) to get to host 11.1.0.1. In this example, the default gateway is 157.54.48.1 and the IP address of the router on the 11.1.0.0 network is at 11.1.0.67.

The command:

C:\>tracert 11.1.0.1

The output from the command:

Tracing route to 11.1.0.1 over a maximum of 30 hops

—————————————————

1 2 ms 3 ms 2 ms 157.54.48.1

2 75 ms 83 ms 88 ms 11.1.0.67

3 73 ms 79 ms 93 ms 11.1.0.1

Trace complete.

How to Use TRACERT to Troubleshoot

You can use TRACERT to find out where a packet stopped on the network. In the following example, the default gateway has found that there is no valid path for the host on 22.110.0.1. Probably, either the router has a configuration problem, or the 22.110.0.0 network does not exist, reflecting a bad IP address.

The command:

C:\>tracert 22.110.0.1

The output from the command:

Tracing route to 22.110.0.1 over a maximum of 30 hops

—————————————————–

1 157.54.48.1 reports: Destination net unreachable.

Trace complete.

TRACERT is useful for troubleshooting large networks where several paths can lead to the same point or where many intermediate components (routers or bridges) are involved.

How to Use TRACERT Options

There are several command-line options that you can use with TRACERT, although the options are not usually necessary for standard troubleshooting.

The following example of command syntax shows all of the possible options:

tracert -d -h maximum_hops-j host-list-w timeouttarget_host

What the parameters do:

-d

Specifies to not resolve addresses to host names

-h maximum_hops

Specifies the maximum number of hops to search for the target

-j host-list

Specifies loose source route along the host-list

-w timeout

Waits the number of milliseconds specified by timeout for each

reply

target_host

Specifies the name or IP address of the target host

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/225599.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月17日 上午8:57
下一篇 2026年3月17日 上午8:57


相关推荐

  • N8n Merge 节点详解

    N8n Merge 节点详解

    2026年3月15日
    2
  • 使用instsrv和srvany注册windows系统服务

    使用instsrv和srvany注册windows系统服务1、下载配置instsrv和srvany下载地址:https://dl.pconline.com.cn/download/558946.html根据电脑属性复制文件:32位操作系统:将两个文件放入C:\Windows\System32文件夹下即可64位操作系统:除放入System32文件夹下,还需放入C:\Windows\SysWOW64文件夹下2、jar包和bat运行文件在同一目录下3、追加服务win+r打开运行窗口、输入cmd进入DOS窗口执行命令:instsrvr

    2022年6月14日
    48
  • Idea激活码最新教程2023.2.4版本,永久有效激活码,亲测可用,记得收藏

    Idea激活码最新教程2023.2.4版本,永久有效激活码,亲测可用,记得收藏Idea 激活码教程永久有效 2023 2 4 激活码教程 Windows 版永久激活 持续更新 Idea 激活码 2023 2 4 成功激活

    2025年5月27日
    7
  • 2011年年终珠三角为主的各种工种收入大全「建议收藏」

    2011年年终珠三角为主的各种工种收入大全「建议收藏」返回顶部 20楼2011-12-0508:35:13东莞。4300/月,所谓财务主管,老婆3200/月,所谓采购主管,小孩9个月,存款现在6000块,穿35块的皮鞋,280块的山寨手机。这日子是怎么过的啊!!无房贷无车贷,也就是无房无车!!我会计2200元包食.我老公6000多元不包食住.没房没车.一个小孩子在深圳读幼儿园.到现在存款只有几千元.

    2025年11月8日
    5
  • spring使用aspectj_你可知晓

    spring使用aspectj_你可知晓【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权)http://blog.csdn.net/javazejian/article/details/54629058出自【zejian的博客】关联文章:关于SpringIOC(DI-依赖注入)你需要知道的一切关于SpringAOP(AspectJ)你该知晓的一切本篇是年后第一篇博文,由于博主用了不少

    2022年8月11日
    11
  • 数据结构之图的创建(邻接表)

    数据结构之图的基本概念中了解了图的基本概念,接下来对图的代码实现进行详解。邻接无向图1.邻接表无向图介绍邻接表无向图是指通过邻接表表示的无向图。上面的图G1包含了"A,B,C,D,

    2021年12月19日
    58

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号