Centos7,默认没有安装traceroute命令
- 安装 traceroute
[root@172 ~]# traceroute
-bash: traceroute: command not found
[root@172 ~]# yum install traceroute -y
- 对百度网站路由查看
[root@172 ~]# traceroute www.baidu.com
traceroute to www.baidu.com (110.242.68.3), 30 hops max, 60 byte packets
1 * * *
2 11.98.104.17 (11.98.104.17) 5.542 ms * *
3 11.98.105.105 (11.98.105.105) 1.271 ms 11.98.105.125 (11.98.105.125) 1.190 ms 11.98.101.109 (11.98.101.109) 1.270 ms
4 11.48.234.253 (11.48.234.253) 1.152 ms 11.48.235.17 (11.48.235.17) 1.050 ms 10.54.249.229 (10.54.249.229) 0.956 ms
5 10.54.251.50 (10.54.251.50) 1.754 ms 103.49.77.78 (103.49.77.78) 1.551 ms 10.54.253.22 (10.54.253.22) 1.713 ms
6 116.251.127.190 (116.251.127.190) 5.903 ms 116.251.90.81 (116.251.90.81) 8.954 ms 140.205.25.209 (140.205.25.209) 7.137 ms
7 61.55.133.161 (61.55.133.161) 10.106 ms 211.90.1.33 (211.90.1.33) 10.613 ms 117.49.32.66 (117.49.32.66) 5.961 ms
8 61.182.174.66 (61.182.174.66) 16.722 ms 202.99.167.21 (202.99.167.21) 9.914 ms 218.12.255.197 (218.12.255.197) 16.418 ms
9 61.182.145.22 (61.182.145.22) 16.558 ms^C
[root@172 ~]#