Tracert命令,使用tracert命令不仅可以快速显示数据包到达目标主机所经过的路径(路由器),并显示到达每个节点(路由器)的时间,详细步骤:
1、点击电脑左下角任务栏上的搜索框,输入”cmd“。
![](/img.php?b=https://iknow-pic.cdn.bcebos.com/7c1ed21b0ef41bd5eaf6a38a41da81cb39db3d22?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、点击【以管理员身份运行】。
![](/img.php?b=https://iknow-pic.cdn.bcebos.com/80cb39dbb6fd52669e8e776abb18972bd4073622?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、打开cmd命令提示符。
![](/img.php?b=https://iknow-pic.cdn.bcebos.com/0824ab18972bd407666298836b899e510fb30922?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、在命令行中输入“tracert+ip地址”。例如在命令提示符中输入”tracert192.168.185.1“,回车。
![](/img.php?b=https://iknow-pic.cdn.bcebos.com/e7cd7b899e510fb357bc3ce9c933c895d1430c22?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
5、例如光猫的ip地址为192.168.1.1,那么使用”tracert192.168.1.1“命令就可以可以查询从本机到光猫所要经过的路由器的IP地址。
![](/img.php?b=https://iknow-pic.cdn.bcebos.com/b219ebc4b74543a9f2beb1b20e178a82b9011422?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)