PIng的记录路由功能

ping程序某些版本提供记录路由的功能

在linux 2.6内核下测试结果如下

ping -R www.baidu.com

64 bytes from 61.135.169.125: icmp_seq=5 ttl=54 time=103 ms
NOP
RR: oxdb (10.0.3.73)
localhost (10.127.254.253)
bt-227-12.bta.net.cn (202.116.227.102)
61.148.163.13
123.125.248.45
localhost (10.23.180.148)
localhost (10.23.190.5)
61.135.189.125
localhost (10.23.190.170)

这份清单对我们查看路由状况提供了很大的帮助。

windows下的ping似乎不支持这个选项。

选项:
-R 同样使用路由标头测试反向路由(仅适用于 IPv6)。




原文地址:https://www.cnblogs.com/vigarbuaa/p/2393224.html