在 8.8.8.8 上运行 traceroute 1.9.4 显示
traceroute -m 30 -q 1 -w 3 -A 8.8.8.8
traceroute: invalid option -- 'A'
Try 'traceroute --help' or 'traceroute --usage' for more information.
然而,斯坦福网站上的相同命令显示了更多信息http://www-wanmon.slac.stanford.edu/cgi-bin/nph-traceroute.pl
Executing exec(traceroute -m 30 -q 1 -w 3 -A 1.1.1.1)
traceroute to 1.1.1.1 (1.1.1.1), 30 hops max, 140 byte packets
1 rtr-servcore1-serv01-webserv.slac.stanford.edu (134.79.197.130) [AS3671] 0.725 ms
2 rtr-core2-p2p-serv01-02.slac.stanford.edu (134.79.253.253) [AS3671] 0.665 ms
3 rtr-fwcore2-trust-p2p-core2.slac.stanford.edu (134.79.254.146) [AS3671] 1.444 ms
4 rtr-core1-p2p-fwcore1-untrust.slac.stanford.edu (134.79.254.137) [AS3671] 1.402 ms
5 *
6 sunncr5-ip-c-slac.slac.stanford.edu (192.68.191.233) [AS3671] 2.225 ms
7 eqxsjcr5-ip-a-sunncr5.es.net (134.55.38.146) [AS293] 2.215 ms
8 198.129.44.54 (198.129.44.54) [AS292] 2.179 ms
9 if-ae-1-2.tcore1.SQN-San-Jose.as6453.net (63.243.205.1) [AS6453] 252.809 ms
10 if-ae-12-2.tcore1.NTO-New-York.as6453.net (63.243.128.28) [AS6453] 252.866 ms
11 if-ae-7-2.tcore1.N0V-New-York.as6453.net (63.243.128.26) [AS6453] 252.106 ms
12 if-ae-2-2.tcore2.N0V-New-York.as6453.net (216.6.90.22) [AS6453] 251.617 ms
13 if-ae-4-2.tcore2.L78-London.as6453.net (80.231.131.157) [AS6453] 252.372 ms
14 if-ae-9-2.tcore2.WYN-Marseille.as6453.net (80.231.200.13) [AS6453] 248.352 ms
15 if-ae-2-2.tcore1.WYN-Marseille.as6453.net (80.231.217.1) [AS6453] 161.635 ms
16 if-ge-2-0-0.core1.N71-Fujairah.as6453.net (195.219.174.26) [AS6453] 252.793 ms
17 195.219.174.18 (195.219.174.18) [AS6453] 301.176 ms
是不是旧版本的 traceroute 功能更多?我在从 inetutils 包安装的 Ubuntu 17.04 上运行 traceroute。
我如何获取真正有用的 traceroute 版本?
我尤其希望能够获得 IP 地址提供商的 AS 编号
编辑:
以下是Usage
我本地安装的
jonathan@ubuntu ~> traceroute --usage
Usage: traceroute [-I?V] [-f NUM] [-g GATES] [-m NUM] [-M METHOD] [-p PORT]
[-q NUM] [-t NUM] [-w NUM] [--first-hop=NUM] [--gateways=GATES]
[--icmp] [--max-hop=NUM] [--type=METHOD] [--port=PORT]
[--tries=NUM] [--resolve-hostnames] [--tos=NUM] [--wait=NUM]
[--help] [--usage] [--version] HOST
答案1
traceroute
在 Ubuntu 中有一个 -A 选项。手册页对于 traceroute 17.04 说:
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]
tcptraceroute [options]
lft [options]
和
-A Perform AS path lookups in routing registries and print results
directly after the corresponding addresses.
从命令中删除功能会相当奇怪。
确保你输入的是英文,而不是从网上复制/粘贴的。- 可能不是 -。
我的系统(17.04)显示如下:
~$ traceroute -A 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
...
5 te0-0-0-1-tc1-br1.router.nl.clara.net (212.61.142.218) [AS8426] 8.755 ms 9.239 ms 9.588 ms
6 core2.ams.net.google.com (80.249.209.100) [AS1200] 10.104 ms 4.409 ms 5.527 ms
所以这是正常的。由于名称服务器的原因,我删除了前 4 个。