traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可能会不一样,但基本上来说大部分时候所走的路由是相同的。

常见命令参数

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_ttlStart 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=deviceSpecify a network interface to operate with-m max_ttl  --max-hops=max_ttlSet the max number of hops (max TTL to bereached). Default is 30-N squeries  --sim-queries=squeriesSet the number of probes to be triedsimultaneously (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 eitherinitial udp port value for "default" method(incremented by each probe, default is 33434), orinitial seq for "icmp" (incremented as well,default from 1), or some constant destinationport for other methods (with default of 80 for"tcp", 53 for "udp", etc.)-t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6traffic class) value for outgoing packets-l flow_label  --flowlabel=flow_labelUse specified flow_label for IPv6 packets-w waittime  --wait=waittimeSet the number of seconds to wait for response toa probe (default is 5.0). Non-integer (floatpoint) values allowed too-q nqueries  --queries=nqueriesSet the number of probes per each hop. Default is3-r                          Bypass the normal routing and send directly to ahost on an attached network-s src_addr  --source=src_addrUse source src_addr for outgoing packets-z sendwait  --sendwait=sendwaitMinimal time interval between probes (default 0).If the value is more than 10, then it specifies anumber in milliseconds, else it is a number ofseconds (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 andprint results directly after the correspondingaddresses-M name  --module=name      Use specified module (either builtin or external)for traceroute operations. Most methods havetheir shortcuts (`-I' means `-M icmp' etc.)-O OPTS,...  --options=OPTS,...Use module-specific option OPTS for thetraceroute module. Several OPTS allowed,separated by comma. If OPTS is "help", print infoabout available options--sport=num                 Use source port num for outgoing packets. Implies`-N 1'-U  --udp                   Use UDP to particular port for tracerouting(instead of increasing the port per each probe),default port is 53-UL                         Use UDPLITE for tracerouting (default dest portis 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 andprint if it differs-V  --version               Print version info and exit--help                      Read this help and exit

常见命令展示

多命令使用

traceroute -n -m 5 -q 4 -w 3 www.baidu.com

说明: -n 显示IP地址,不查主机名,  -m 设置跳数

-q 4每个网关发送4个数据包    -w 把对外发探测包的等待响应时间设置为3秒

探测包使用的基本UDP端口设置6888

traceroute -p 6888 www.baidu.com

绕过正常的路由表,直接发送到网络相连的主机

traceroute -r www.baidu.com

linux traceroute 命令 查看路由表相关推荐

  1. linux top命令查看内存及多核CPU的使用讲述 [转]

    2019独角兽企业重金招聘Python工程师标准>>> linux top命令查看内存及多核CPU的使用讲述 [转] FROM: http://www.lvtao.net/html/ ...

  2. linux top命令查看内存及多核CPU的使用讲述【转】

    转载一下top使用后详细的参数,之前做的笔记找不见了,转载一下,作为以后的使用参考: 原文地址:http://blog.csdn.net/linghao00/article/details/80592 ...

  3. linux按照目录大小降序排列,Linux du命令查看文件夹大小并按降序排列

    1. df -lh 2. du -s /usr/* | sort -rn 这是按字节排序 3. du -sh /usr/* | sort -rn 这是按兆(M)来排序 4.选出排在前面的10个 du ...

  4. linux ps查看完整时间,Linux ps 命令查看进程启动及运行时间

    引言 同事问我怎样看一个进程的启动时间和运行时间,我第一反应当然是说用 ps 命令啦. ps aux或ps -ef不就可以看时间吗? ps aux选项及输出说明 我们来重新复习下ps aux的选项,这 ...

  5. linux du命令 前多少个,Linux du命令查看文件夹大小并按降序排列

    1. df -lh 2. du -s /usr/* | sort -rn 这是按字节排序 3. du -sh /usr/* | sort -rn 这是按兆(M)来排序 4.选出排在前面的10个 du ...

  6. Linux命令查看子进程命令,Linux基础命令——查看进程命令

    linux是一个 多进程   多用户的操作系统 ps(显示当前进程的状态) ps -ef  查看当前linux 进程 ps -ef | grep 'mysqld'  过滤mysql的进程 (grep  ...

  7. 使用ls命令查看Linux的目录结构,linux ls命令查看目录文件详解

    首页 > Linux教程 > 常用命令 > ls 查看目录文件 linux ls命令查看目录文件详解 linux中ls命令用来查看目录中的所有文件和子目录,可选的参数比较多,本文筛选 ...

  8. linux whoami 查权限,Linux whoami命令查看当前登录用户

    玩蛇网推荐图文教程:python 列表 Linux whoami命令查看当前登录用户.在控制台的命令提示符下你会发现用户名已经被显示出来 .但有一些 shell 默认情况下不会显示你的用户名,比如cs ...

  9. 【Linux】一步一步学Linux——traceroute命令(167)

    00. 目录 文章目录 00. 目录 01. 命令概述 02. 命令格式 03. 常用选项 04. 参考示例 05. 附录 01. 命令概述 traceroute命令用于追踪数据包在网络上的传输时的全 ...

最新文章

  1. iPhone 应用开发:音频播放
  2. python要学哪些_学python都要学哪些内容?
  3. MTK:oemlock介绍
  4. war3必须安装的游戏组件_在单独的WAR组件中对SPA资源和API实现进行分区
  5. msyql 禁止远程访问
  6. 将一个二维数组合并成一个一维数组
  7. matlab计算三角格网面积,不规则平面图形的面积计算及其MATLAB实现.doc
  8. Python在线考试系统防作弊功能的思路和实现
  9. VS2008远程调试简介
  10. 手眼标定原理ur5_手眼标定实现
  11. 新版中日交流标准日本语多媒体版(全25CD)下载
  12. 服务器做中转站,搭建 git 本地中转站
  13. 【Windows无法访问指定设备,路径或文件,您可能没有合适的权限访问】
  14. 鸿蒙真机对比ios,为什么说鸿蒙与iOS、安卓不在一个赛道
  15. rap2一键部署 (包括RAP2-DELOS与RAP2-DOLORES)
  16. 二代身份证号码最后一位校验位的计算方法
  17. git 本地回退到某个版本
  18. 于博士Cadence教程内容目录
  19. 在MATLAB中调用 Python
  20. 用arduino IDE开发esp8266 wifi

热门文章

  1. Go 语言编程 — 程序结构
  2. Cinder LVM Oversubscription in thin provisioning
  3. VMware 虚拟机的虚拟磁盘编程知识点扫盲之一
  4. layer.tips定义弹出的宽度
  5. array,vector对象 数组越界检测
  6. 基于sparksql调用shell脚本运行SQL
  7. java尝试编写macd,试验顶背离底背离
  8. SQLServer 2012 报表服务部署配置(1)
  9. Hyper-v Server在线调整虚拟硬盘大小
  10. 一次使用Eclipse Memory Analyzer分析weblogic内存溢出