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.12     75 ms      83 ms      88 ms      11.1.0.673     73 ms      79 ms      93 ms      11.1.0.1Trace 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 timeout target_host
What the parameters do:
 -d Specifies to not resolve addresses to host names-h maximum_hopsSpecifies the maximum number of hops to search for the target-j host-listSpecifies loose source route along the host-list-w timeoutWaits the number of milliseconds specified by timeout for eachreplytarget_hostSpecifies the name or IP address of the target host

转载于:https://www.cnblogs.com/happygirl-zjj/p/6092531.html

tracert 命令详解相关推荐

  1. 新手必看的tracert命令详解!

    网络管理常用命令 - Tracert 命令 1.Tracert简介 Tracert是测试报文从发送端到目的地所经过的路由的方法.它能够直观展现报文在转发的时候所经过的路径.Tracert基于ICMP协 ...

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

    tracert 命令详解 How to Use the TRACERT Utility The TRACERT diagnostic utility determines the route to a ...

  3. Tracert命令详解,路由跟踪命令tracert命令怎么用?网络管理员的法宝,新睿云给您详解

    Tracert(跟踪路由)是路由跟踪实用程序,用于确定 IP数据包访问目标所采取的路径.Tracert命令使用用 IP 生存时间 (TTL) 字段和 ICMP 错误消息来确定从一个主机到网络上其他主机 ...

  4. ping和tracert命令详解

    Ping 这个应该大家都会用的吧,最主要的就是检测目标主机是不是可连通.Ping程序实际就是发送一个ICMP回显请求报文给目的主机,并等待回显的ICMP应答.然后打印出回显的报文.Ping不通一个地址 ...

  5. 必须掌握的tracert命令详解

    Tracert,一个探测路由的程序,可以让我们看见IP数据报到达目的地经过的路由. 路由跟踪在线Tracert工具说明 Tracert(跟踪路由)是路由跟踪实用程序,用于确定 IP 数据报访问目标所采 ...

  6. 网络管理常用命令之五 - Tracert 命令详解(图文)

    5.tracert命令... Tracert工作原理... 不带选项... -d选项... -h选项... -w选项... 5.tracert命令 Tracert是路由跟踪程序,用于确定 IP 数据报 ...

  7. 路由跟踪命令 tracert 命令详解

    文章目录 1 概述 2 语法 2.1 进入 dos 命令 2.2 参数列表 2.3 tracert命令 1 概述 Tracert:跟踪路由 是路由跟踪实用程序,用于确定 IP数据包访问目标所采取的路径 ...

  8. 华为命令手册_网络故障排查之tracert命令详解

    1.Tracert简介 Tracert是测试报文从发送端到目的地所经过的路由的方法.它能够直观展现报文在转发的时候所经过的路径.Tracert基于ICMP协议来实现的.当网络出现故障时,用户可以使用T ...

  9. 命令提示符(cmd)中的tracert命令详解

    tracert也被称为Windows路由跟踪实用程序,在命令提示符(cmd)中使用tracert命令可以用于确定IP数据包访问目标时所选择的路径.本文主要探讨了tracert命令的各个功能. 工具/原 ...

最新文章

  1. Linux操作系统无人值守安装配置指南
  2. PLT redirection through shared object injection into a running process
  3. MySQL常见面试题与答案
  4. 路由器的分组转发算法
  5. Atitit 学历的类型大总结 目录 1. 学历的分类 2 1.1. 按照组织性质,分类为立法系统 政府系统 司法系统 部落级别 企业级别商业系统 宗教系统 个人级别 2 1.2. 按照地域性质,
  6. TG电报telegram群发软件,批量采集群成员、发消息、拉人,全自动营销工具,免费用
  7. 开源代码审计工具备忘
  8. 网易云音乐自动获取前三首歌曲名称
  9. C++实现进程通信(管道pipe)
  10. js 获取昨天的日期 getDay()方法
  11. 分享微信公众号留言评论功能开通方法
  12. error: Failed dependencies:mysql-community-client(x86-64) = 5.7.9 is needed by mysql-commu
  13. 20个CC0素材网站【自用】
  14. 第四章:商品治理五大策略
  15. python+appium 实现抖音自动化浏览
  16. RK3568平台开发系列讲解(视频篇)摄像头采集视频的相关配置
  17. 单片机节日彩灯实训报告_基于单片机的节日彩灯设计论文课程设计.doc
  18. android 5 1g内存,安卓手机1G内存绝对够用 实际体验来告诉你
  19. 从“向内求”到“向外求”,云计算企业出海的好日子开始了?
  20. 大厂必问的JVM面试题

热门文章

  1. 使用appium工具对漫画发表评论
  2. 计算机应用基础平时作业一,计算机应用基础平时作业(4).doc
  3. 支付宝生活号开发(php)
  4. 什么是接口的幂等性,如何实现接口幂等性?一文搞定
  5. 动态基址定位的改进方法
  6. php 支付宝配置,Payment:支付宝支付配置文件设置教程 - PHP
  7. OTA升级包的解释和升级方法
  8. MySQL 5.7查询sys.schema_redundant_indexes居然慢如蜗牛...
  9. 在创业公司的那些日子(一)
  10. mysql fulltext match_使用Mysql全文搜索Full-Text (fulltext和 match...against)