2024年11月Linux下traceroute命令的使用方法(2)

发布时间:

  ⑴实例:显示IP地址,不查主机名

  ⑵命令:traceroute -n

  ⑶[rootlocalhost ~]# traceroute -n

  ⑷traceroute to (..., hops max, byte packets

  ⑸ ... . ms . ms . ms

  ⑹ ... . ms . ms . ms

  ⑺ ... . ms . ms . ms

  ⑻ ... . ms . ms . ms

  ⑼ ... . ms . ms . ms

  ⑽ ... . ms * *

  ⑾ ... . ms ... . ms . ms

  ⑿ ... . ms ... . ms ... . ms

  ⒀[rootlocalhost ~]# traceroute

  ⒁traceroute to (..., hops max, byte packets

  ⒂ ... (... . ms . ms . ms

  ⒃ ... (... . ms . ms . ms

  ⒄ ... (... . ms . ms . ms

  ⒅ ... (... . ms . ms . ms

  ⒆ ... (... . ms . ms . ms

  ⒇ bt--.bta.. (... . ms . ms ... (... . ms

  ⒈ ... (... . ms . ms . ms

  ⒉ ... (... . ms . ms . ms

  ⒊[rootlocalhost ~]#

  ⒋实例:探测包使用的基本UDP端口设置

  ⒌命令:traceroute -p

  ⒍[rootlocalhost ~]# traceroute -p

  ⒎traceroute to (..., hops max, byte packets

  ⒏ ... (... . ms . ms . ms

  ⒐ ... (... . ms . ms . ms

  ⒑ ... (... . ms . ms . ms

  ⒒ ... (... . ms . ms . ms

  ⒓ ... (... . ms !X * *

  ⒔[rootlocalhost ~]#

  ⒕实例:把探测包的个数设置为值

  ⒖命令:traceroute -q

  ⒗[rootlocalhost ~]# traceroute -q

  ⒘traceroute to (..., hops max, byte packets

  ⒙ ... (... . ms . ms . ms . ms

  ⒚ ... (... . ms . ms . ms . ms

  ⒛ ... (... . ms . ms . ms . ms

  ① ... (... . ms . ms . ms . ms

  ② ... (... . ms . ms . ms . ms

  ③ ... (... . ms bt--.bta.. (... . ms . ms *

  ④ ... (... . ms . ms . ms ... (... . ms

  ⑤ ... (... . ms . ms . ms ... (... . ms

  ⑥ * * * *

  ⑦ * * * *

  ⑧[rootlocalhost ~]#