私のラップトップとgoogle.comの間のホップ数を確認するTraceroute

私のラップトップとgoogle.comの間のホップ数を確認するTraceroute

私はLinuxを初めて使用し、Ubuntu端末でTracerouteコマンドを学びたいと思います。端末でgoogle.comにpingコマンドを入力しましたが、結果は次のとおりです。

vscoder@vscoder-VirtualBox:~$ ping google.com
PING google.com (142.250.194.142) 56(84) bytes of data.
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=1 ttl=115 time=10.8 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=2 ttl=115 time=12.2 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=3 ttl=115 time=12.9 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=4 ttl=115 time=11.4 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=5 ttl=115 time=12.2 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=6 ttl=115 time=11.6 ms
64 bytes from del12s05-in-f14.1e100.net (142.250.194.142): icmp_seq=7 ttl=115 time=11.9 ms
^C
--- google.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 10.800/11.862/12.926/0.631 ms
vscoder@vscoder-VirtualBox:~$  

ただし、google.comパスを追跡すると、次のような結果が表示されます。

vscoder@vscoder-VirtualBox:~$ traceroute google.com
traceroute to google.com (142.250.194.142), 64 hops max
  1   10.0.2.2  0.284ms  0.299ms  0.270ms 
  2   *  *  * 
  3   *  *  * 
  4   *  *  * 
  5   *  *  * 
  6   *  *  * 
  7   *  *  * 
  8   *  *  * 
  9   *  *  * 
 10   *  *  * 
 11   *  *  * 
 12   *  *  * 
 13   *  * ^C
vscoder@vscoder-VirtualBox:~$ 

なぜホップのIPアドレスが表示されないのかわかりません。ここで私を助けてください。

ベストアンサー1

「traceroute -I google.com」を試してみましたが、うまくいきました。

vscoder@vscoder-VirtualBox:~$ traceroute -I google.com
traceroute to google.com (142.250.193.206), 64 hops max
  1   10.0.2.2  0.421ms  0.212ms  0.192ms 
  2   192.168.1.1  1.871ms  4.654ms  1.739ms 
  3   117.212.40.1  13.236ms  10.626ms  9.502ms 
  4   117.212.40.1  10.222ms  11.393ms  8.989ms 
  5   218.248.107.38  31.941ms  21.067ms  18.296ms 
  6   117.216.207.203  15.960ms  15.869ms  * 
  7   142.250.160.182  16.680ms  16.075ms  17.754ms 
  8   172.253.68.7  18.031ms  17.957ms  18.856ms 
  9   142.251.54.97  18.216ms  16.466ms  17.305ms 
 10   142.250.193.206  18.071ms  15.997ms  16.900ms 
vscoder@vscoder-VirtualBox:~$

Traceroute -I、--icmp:ICMP ECHOをプローブとして使用することを指定します。

おすすめ記事