精华内容
下载资源
问答
  • traceroute 安装及使用
    千次阅读
    2019-04-12 15:43:28

    1.pc 端下载traceroute-2.1.0-6.fc28.x86_64.rpm文件;
    https://rpmfind.net/linux/rpm2html/search.php?query=traceroute(x86-64)
    2. 将安装包上传到centos主机
    使用 rz 命令
    3.执行rpm -ivh traceroute-2.1.0-6.fc28.x86_64.rpm命令进行安装
    4.安装完成开始使用
    traceroute --hostip -6 -I

    traceroute --help

    Usage:
    traceroute [ -46dFITnreAUV ] [ -f first_ttl ] [ -g gate,… ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w waittime ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] host [ packetlen ]
    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_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 --icmp Use ICMP ECHO for tracerouting
    -T --tcp Use 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 be
    reached). Default is 30
    -N squeries --sim-queries=squeries
    Set the number of probes to be tried
    simultaneously (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 either
    initial udp port value for “default” method
    (incremented by each probe, default is 33434), or
    initial seq for “icmp” (incremented as well,
    default from 1), or some constant destination
    port 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 (IPv6
    traffic class) value for outgoing packets
    -l flow_label --flowlabel=flow_label
    Use specified flow_label for IPv6 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 an attached network
    -s src_addr --source=src_addr
    Use source src_addr for outgoing packets
    -z sendwait --sendwait=sendwait
    Minimal time interval between probes (default 0).
    If the value is more than 10, then it specifies a
    number in milliseconds, else it is a number of
    seconds (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 and
    print results directly after the corresponding
    addresses
    -M name --module=name Use specified module (either builtin or external)
    for traceroute operations. Most methods have
    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 serial8250: too much work for irq4 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 port is 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 and
    print if it differs
    -V --version Print version info and exit
    –help Read this help and exit
    常见问题:
    1.扫描路由时显示不全,如下

    traceroute 2099::10:10:254:254

    traceroute to 2099::10:10:254:254 (2099::10:10:254:254), 30 hops max, 80 byte packets
    1 2099::10:10:0:1 (2099::10:10:0:1) 1.009 ms 1.508 ms *
    2 * * *
    3 * * *
    4 * * *
    5 * * *
    6 * 2099::10:10:254:254 (2099::10:10:254:254) 0.795 ms 0.663 ms
    原因及解决办法:
    主要是因为有些节点把UDP数据包屏蔽了,所以没有返回ICMP。
    对于有HTTP服务的主机,可以用参数设置traceroute使用TCP协议进行探测,就可以获得最终节点

    更多相关内容
  • traceroute安装和使用测试端口联通

    千次阅读 2019-08-26 16:20:28
    默认Linux发现版是安装traceroute工具的,但记忆里好像7.0后变成了tracepath命令,这里我们手动安装traceroute命令工具 【下载traceroute并解压】 下载地址:https://pkgs.org/download/traceroute 下载路由跟踪,...

    默认Linux发现版是安装了traceroute工具的,但记忆里好像7.0后变成了tracepath命令,这里我们手动安装traceroute命令工具

    【下载traceroute并解压】

    下载地址:https://pkgs.org/download/traceroute
    下载路由跟踪,2.0.22-2.el7.x86_64.rpm;tar包内没找到编译工具,哪个小伙伴安装过,欢迎指教。
    在这里插入图片描述

    [安装]

    在这里插入图片描述
    由上图可知本地或远程主机端口80无法建立连接,而且在第3跳20段该端口数据流就被阻断;可考虑修改端口尝试;

    【命令使用】

    traceroute [-n] -T -p <目标端口号> Host

    参数说明:

    -n 直接使用 IP 地址而非主机名称(禁用 DNS 反查)。

    -T 通过 TCP 探测。

    -p 探测目标端口号。

    Host 目标服务器域名或 IP。
    注:Windows 环境下,您可通过 tracetcp 进行端口可用性探测。通过发送 TCP 数据包进行链路探测,以分析是否有链路中间节点对目标端口做了阻断。这之前需要先安装 winpcap library;
    下载地址:https://github.com/0xcafed00d/tracetcp/releases/tracetcp release v1.0.3
    winpcap已停止更新,下载地址:https://www.winpcap.org/install/default.htm;
    官方建议下载npcap,其本身也是基于wincap,下载地址https://nmap.org/npcap/,可以在最多5个系统上使用免费版本的Npcap(但不能在外部重新分发)(免费许可证详细信息)。它也可以在无限制系统上使用,只能与Nmap 和/或Wireshark一起使用。只需运行可执行安装程序。

    其他参数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_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  --icmp                  Use ICMP ECHO for tracerouting
      -T  --tcp                   Use TCP SYN for tracerouting (default port is 80)
      -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 be
                                  reached). Default is 30
      -N squeries  --sim-queries=squeries
                                  Set the number of probes to be tried
                                  simultaneously (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 either
                                  initial udp port value for "default" method
                                  (incremented by each probe, default is 33434), or
                                  initial seq for "icmp" (incremented as well,
                                  default from 1), or some constant destination
                                  port 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 (IPv6
                                  traffic class) value for outgoing packets
      -l flow_label  --flowlabel=flow_label
                                  Use specified flow_label for IPv6 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 an attached network
      -s src_addr  --source=src_addr
                                  Use source src_addr for outgoing packets
      -z sendwait  --sendwait=sendwait
                                  Minimal time interval between probes (default 0).
                                  If the value is more than 10, then it specifies a
                                  number in milliseconds, else it is a number of
                                  seconds (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 and
                                  print results directly after the corresponding
                                  addresses
      -M name  --module=name      Use specified module (either builtin or external)
                                  for traceroute operations. Most methods have
                                  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'
      --fwmark=num                Set firewall mark for outgoing packets
      -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 port
                                  is 53)
      -D  --dccp                  Use DCCP Request for tracerouting (default port
                                  is 33434)
      -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 and
                                  print if it differs
      -V  --version               Print version info and exit
      --help                      Read this help and exit
    Arguments:
     host          The host to traceroute to
     packetlen     The full packet length (default is the length of an IP header plus 40). 
    
    展开全文
  • traceroute 命令利用ICMP 协议定位您的计算机和目标计算机之间的所有路由器。TTL 值可以反映数据包经过的路由器或网关的数量,通过操纵独立ICMP 呼叫报文的TTL 值和观察该报文被抛弃的返回信息,traceroute命令能够...
  • traceroute-2.1.0.rar

    2021-01-06 14:08:18
    linux traceroute安装.tar.gz命令包
  • 主要介绍了Linux traceroute命令使用方法实例详解的相关资料,希望通过本文能帮助到大家,让大家理解应用这部分内容,需要的朋友可以参考下
  • traceroute rpm安装包

    2018-10-19 10:08:12
    资源是路由跟踪工具traceroute的rpm安装包,对于red hat不支持yum的系统非常便捷
  • Linux下traceroute安装和使用

    千次阅读 2021-05-26 09:11:33
    traceroute是跟踪数据包到达网络主机所经过的路由工具。其原理为试图以最小的TTL发出探测包来跟踪数据包到达目标主机所经过的网关,然后监听一个来自网关ICMP的应答。发送数据包的大小默认为40个字节。 yum ...

    traceroute是跟踪数据包到达网络主机所经过的路由工具。其原理为试图以最小的TTL发出探测包来跟踪数据包到达目标主机所经过的网关,然后监听一个来自网关ICMP的应答。发送数据包的大小默认为40个字节。 

    yum install -y traceroute

     

    SYNOPSIS
           traceroute [-46dFITUnreAV] [-f first_ttl] [-g gate,...]
                   [-i device] [-m max_ttl] [-p port] [-s src_addr]
                   [-q nqueries] [-N squeries] [-t tos]
                   [-l flow_label] [-w waittime] [-z sendwait] [-UL] [-D]
                   [-P proto] [--sport=port] [-M method] [-O mod_options]
                   [--mtu] [--back]
                   host [packet_len]
           traceroute6  [options]
    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_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  --icmp                  Use ICMP ECHO for tracerouting
      -T  --tcp                   Use TCP SYN for tracerouting (default port is 80)
      -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 be
                                  reached). Default is 30
      -N squeries  --sim-queries=squeries
                                  Set the number of probes to be tried
                                  simultaneously (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 either
                                  initial udp port value for "default" method
                                  (incremented by each probe, default is 33434), or
                                  initial seq for "icmp" (incremented as well,
                                  default from 1), or some constant destination
                                  port 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 (IPv6
                                  traffic class) value for outgoing packets
      -l flow_label  --flowlabel=flow_label
                                  Use specified flow_label for IPv6 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 an attached network
      -s src_addr  --source=src_addr
                                  Use source src_addr for outgoing packets
      -z sendwait  --sendwait=sendwait
                                  Minimal time interval between probes (default 0).
                                  If the value is more than 10, then it specifies a
                                  number in milliseconds, else it is a number of
                                  seconds (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 and
                                  print results directly after the corresponding
                                  addresses
      -M name  --module=name      Use specified module (either builtin or external)
                                  for traceroute operations. Most methods have
                                  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'
      --fwmark=num                Set firewall mark for outgoing packets
      -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 port
                                  is 53)
      -D  --dccp                  Use DCCP Request for tracerouting (default port
                                  is 33434)
      -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 and
                                  print if it differs
      -V  --version               Print version info and exit
      --help                      Read this help and exit
    Arguments:
    +     host          The host to traceroute to
          packetlen     The full packet length (default is the length of an IP
                        header plus 40). Can be ignored or increased to a minimal
                        allowed value

    实例参考:参考

    展开全文
  • kali 安装 traceroute

    千次阅读 2020-11-19 13:39:04
    0.更新软件源: sudo apt-get update 1.安装 traceroute: sudo apt-get install traceroute 2.成功,可以进行

    0.更新软件列表:

    sudo apt-get update

    【注意:若不是最近的软件列表,会出现报错:E: Unable to locate package traceroute 】

     

    1.安装 traceroute:

    sudo apt-get install traceroute

     

    2.成功,可以愉快地开始 traceroute 啦 :

    展开全文
  • 输出指令下载即可 yum install traceroute
  • 适用于Android的traceroute 在Android上使用traceroute的简单方法。 描述 Traceroute跟踪从IP网络获取的路由数据包到达给定主机的过程。 它利用IP协议的生存时间(TTL)字段,并尝试从每个网关到主机的路径引发ICMP...
  • 如何在linux中安装并使用traceroute工具 安装方法: yum install -y traceroute 使用方法: traceroute +目标主机地址 eg:#traceroute baidu.com 一般当一行出现‘ * ’号时表示断开连接,一般情况下很难复连。 ...
  • Centos7--traceroute

    千次阅读 2020-12-24 06:54:59
    通过traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点(source)到达某一同样的目的地(destination)走的路径可能会不一样,但基本上来说大部分时候所走...
  • 如何在Linux上使用traceroute命令

    千次阅读 2020-09-19 18:53:14
    Fatmawati Achmad Zaenuri/ShutterstockFatmawati Achmad Zaenuri / Shutterstock You can use the Linux traceroute command to spot the slow leg of a network packet’s journey and troubleshoot sluggish ...
  • linux下traceroute使用教程

    千次阅读 2022-03-16 17:19:41
    安装traceroute软件。执行命令"apt-get install traceroute"进行安装。 2、我们介绍traceroute软件的命令格式为 traceroute [参数选项] hostname,域名或 IP地址。 首先我们执行第一条命令为"traceroute ...
  • 1.首先安装依赖包libpcap ...2.下载tcptraceroute rpm包,并安装 rpm -ivh tcptraceroute-1.5-0.beta7.el6.rf.x86_64.rpm tcptraceroute 121.46.29.115 5810 -n -q 1 traceroute to 121....
  • 安装 npm install --save nodejs-traceroute 强制使用IPv4或IPv6 默认情况下,给出的域名将自动解析。 通过将ipv4或ipv6传递给构造函数来显式强制进行IPv4或IPv6跟踪。 使用范例 const Traceroute = require ( '...
  • Windows版本Traceroute

    千次阅读 2019-09-30 08:31:00
    Tracerert hostname 参考:http://yp.oss.org.cn/software/show_resource.php?resource_id=1057 转载于:https://www.cnblogs.com/chang290/archive/2013/04/17/3025523.html
  • traceroute.rar

    2020-06-30 11:05:48
    traceroute-2.0.22-2.el7.x86_64.rpm traceroute-2.1.0-10.fc32.x86_64.rpm rpm -ivh traceroute-2.0.22-2.el7.x86_64.rpm
  • 安装 $ npm install traceroute 用法 trace方法将始终返回流,并在完成后将调用可选的回调。 溪流 const Traceroute = require ( 'traceroute' ) ; const trace = Traceroute . trace ( 'google.com' ) ; trace . on...
  • tcptraceroutetraceroute

    千次阅读 2018-03-27 19:16:12
    1 traceroute 功能说明:显示数据包到主机间的路径。它默认发送的数据包大小是40字节。 通过traceroute我们可以知道信息从你的计算机到互联网另一端的主机是走的什么路径。当然每次数据包由某一同样的出发点...
  • 如何使用TCP Traceroute

    千次阅读 2020-10-24 20:03:01
    请遵循以下说明以运行TCP Traceroute: 对于Windows用户 对于Mac用户 对于Linux用户 对于Windows用户, Windows没有本机实用程序来运行TCP traceroute。要在Windows上运行它,您将需要安装WinPcap库并下载...
  • 官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装
  • 最近在看TCP/IP详解卷1时被traceroute和tracert命令给小小的坑了一下,原来二个是有差别的。我是在windows下面抓包的,结果死活抓不到udp包。。。。也是给自己提了个醒看书要动脑啊!!!
  • 语法:traceroute 参数 ip / 域名1、检测是否安装 traceroute rpm -qa | grep traceroute2、可以用 yum apt 进行安装 参数选项: 参数 解释说明 -4 Use IPv4 -6 Use IPv6 -d --debug 使用 Socket 层级的...
  • 官方离线安装包,亲测可用
  • 我们无论使用linux、ubuntu和unix或者是windows(tracert),traceroute命令都是会频繁用到的,traceroute指令会...一、安装1、检查是否安装traceroute工具。rpm -qa |grep traceroute2、如果没有安装,可以使用rpm...
  • 安装 自制酒 $ brew install asroute 用法 $ traceroute -a www.bhutan.gov.bt | asroute traceroute to bhutan.gov.bt (202.144.128.217), 64 hops max, 52 byte packets - > AS0 (Reserved) - > * - > BRESNAN-...
  • 输出: 代码如下: Traceroute的工作原理: Traceroute最简单的基本用法是:traceroutehostname Traceroute程序的设计是利用ICMP及IPheader的TTL(TimeToLive)栏位(field)。首先,traceroute送出一个TTL是1的...
  • 系统在涉及到跨网域实现互联互通的过程中,通常需开通相关安全策略,开通后,需验证策略端口是否正确开通,我们可能会用到telnet命令、netstate命令、traceroute命令等,执行telnet IP地址 端口(测试策略是否开通)...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 11,046
精华内容 4,418
关键字:

traceroute安装

友情链接: 练习.zip