You need to enable JavaScript to run this app.
导航

抓取网络(traceroute)

最近更新时间2024.02.29 20:16:18

首次发布时间2024.02.29 20:16:18

您可以通过 traceroute 命令跟踪数据的网络路径。

traceroute

命令语法

  • 域名

    ./tosutil traceroute domain [-s=1] [-m=1] [-w=1] [-q] [-ipv6] [-n]
    
  • IP 地址

    ./tosutil traceroute ipaddress [-s=1][-m=1] [-w=1] [-q] [-ipv6] [-n]
    

参数说明

参数名

参数类型

描述

domain

String

目标主机域名。TOS 支持的地域和访问域名,请参见地域和访问域名(Endpoint)

ipaddress

String

目标主机 IP 地址。

-s=1

String

执行 traceroute 命令时的数据包大小,单位:字节,默认为 56B。取值范围为 [1B,63KB]。

-m=1

String

执行 traceroute 命令时的最大探测次数,默认为 30 次。

-w=1

String

执行 traceroute 命令时每次探测的超时等待时间,单位:秒,默认为 5 秒。

-q

String

执行 traceroute 命令时每次探测发送的数据包个数,默认为 3 个,最大为 10 个。

-ipv6

String

解析域名时选择 IPv6 地址。

-n

String

执行 traceroute 命令时不解析 IP 地址对应的域名。

使用示例

  • 命令
./tosutil traceroute tos-cn-beijing.ivolces.com
  • 返回
Warning: tos-cn-beijing.ivolces.com has multiple ipv4 addresses; using 100.64.**.**
traceroute to 100.64.**.**, 30 hops max, 56 byte packets

1       100.64.**.** (100.64.**.**)   0 ms