首页 > 系统相关 >Centos Linux跟踪路由每一跳的方法

Centos Linux跟踪路由每一跳的方法

时间:2024-09-27 11:52:44浏览次数:3  
标签:111.13 Centos 192.168 每一 211.136 ms Linux 39.156 0.0%

方法一:使用traceroute命令

(检测一次)

[root@sre01 ~]# traceroute www.baidu.com
traceroute to www.baidu.com (39.156.66.14), 30 hops max, 60 byte packets
 1  gateway (192.168.236.2)  24.103 ms  23.554 ms  23.238 ms
 2  192.168.31.1 (192.168.31.1)  30.348 ms  29.803 ms  29.589 ms
 3  10.53.0.1 (10.53.0.1)  29.396 ms  29.222 ms  28.463 ms
 4  211.136.88.189 (211.136.88.189)  27.265 ms 211.136.88.185 (211.136.88.185)  33.560 ms 211.136.88.189 (211.136.88.189)  29.006 ms
 5  111.13.121.66 (111.13.121.66)  28.788 ms 111.13.0.170 (111.13.0.170)  28.552 ms 111.13.121.66 (111.13.121.66)  38.060 ms
 6  111.13.0.174 (111.13.0.174)  50.539 ms 39.156.27.5 (39.156.27.5)  9.227 ms 111.13.0.174 (111.13.0.174)  8.922 ms
 7  39.156.67.17 (39.156.67.17)  7.991 ms 39.156.27.5 (39.156.27.5)  7.728 ms  8.175 ms
 8  39.156.67.17 (39.156.67.17)  42.225 ms * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
[root@sre01 ~]# 


方法二:使用mrt命令(持续监控)

[root@sre01 ~]# mtr www.baidu.com -n

                                                           My traceroute  [v0.85]
sre01 (0.0.0.0)                                                                                                     Fri Sep 27 11:34:20 2024
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                                    Packets               Pings
 Host                                                                                             Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 192.168.236.2                                                                                  0.0%     8    2.2   2.2   0.6   7.6   2.4
 2. 192.168.31.1                                                                                   0.0%     8    3.5   3.8   2.5   9.0   2.0
 3. 10.53.0.1                                                                                      0.0%     8   10.2   9.7   6.6  19.5   4.3
 4. ???
 5. 111.13.0.170                                                                                   0.0%     7   20.0  16.1   9.7  21.3   4.0
 6. 111.13.0.174                                                                                   0.0%     7    8.5  11.5   8.5  16.0   2.5
 7. 39.156.27.5                                                                                    0.0%     7    8.5  11.3   8.5  14.0   2.1
 8. 39.156.67.17                                                                                   0.0%     7   14.4  17.0  11.5  24.0   4.3
 9. ???
10. ???
11. ???
12. 39.156.66.18                                                                                   0.0%     7   13.7  11.6   8.6  14.1   1.8

Centos Linux跟踪路由每一跳的方法_Linux



标签:111.13,Centos,192.168,每一,211.136,ms,Linux,39.156,0.0%
From: https://blog.51cto.com/zywqs/12127465

相关文章

  • 【Linux】权限管理——专治不会设置权限而头疼
    ......
  • Centos Linux启用和禁用网卡
    禁用网卡[root@sre01~]#ifconfigens36down[root@sre01~]#ipashowens363:ens36:<BROADCAST,MULTICAST>mtu1500qdiscpfifo_faststateDOWNgroupdefaultqlen1000link/ether00:0c:29:c0:78:dbbrdff:ff:ff:ff:ff:ff启用网卡[root@sre01~]#ifconfig......
  • 【linux】linux中未配置ip,如何判断网线是否插对
    背景:机房需要新增机器,机器网口太多,只接一根线需要确定接线网口位置。1、使用ethtoolethtool是一个用于查询和控制网络接口设置的命令行工具。[root@localhost~]#ethtoolens37|grepLink    Linkdetected:no[root@localhost~]#ethtoolens33|grepLink  ......
  • Centos Linux 查看网卡的进出流量
    使用ifconfig命令[root@sre01~]#ifconfig-sIfaceMTURX-OKRX-ERRRX-DRPRX-OVRTX-OKTX-ERRTX-DRPTX-OVRFlgens331500649000414000BMRUens3615005000......
  • Centos Linux 添加静态路由
    使用ip命令添加添加网段[root@sre01~]#iprouteadd12.12.12.0/24via192.168.236.2[root@sre01~]#route-nKernelIProutingtableDestinationGatewayGenmaskFlagsMetricRefUseIface0.0.0.0192.168.236.20.0.0.0UG......
  • centos磁盘逻辑卷LVM创建
    centos磁盘逻辑卷LVM创建一、磁盘逻辑卷LVM说明二、centos磁盘使用情况三、LVM安装指南1.LVM工具安装1.yumlistlvm2.yumsearchlvm3.yumsearchpvcreate4.yumlistlvm25.yuminstalllvm22.创建物理卷2.1磁盘情况查看2.2创建物理卷(PV)3.创建卷组(VG)4.创建逻辑......
  • Centos Linux查看和设置主机名
    查看主机名使用hostname或者hostnamectl命令[root@sre01~]#hostnamesre01[root@sre01~]#hostnamectlStatichostname:sre01Iconname:computer-vmChassis:vmMachineID:75e915fb06a74c648bb373f7e884d48eBootID:618e......
  • Centos Linux为网卡配置临时的IP地址
    使用ifconfig命令配置临时IP地址[root@sre01~]#ifconfigens36ens36:flags=4163<UP,BROADCAST,RUNNING,MULTICAST>mtu1500inet172.16.156.128netmask255.255.255.0broadcast172.16.156.255inet6fe80::e778:fe94:3756:fa71prefixlen64scopei......
  • 手把手教你在Linux上构建Electron
    开发electron最大的特点就是可以使用web技术来开发跨平台应用,大部分开发都是在windows/mac上开发的electron应用,我使用的是electorn-builder来构建应用,官网提供支持在windows上使用docker来实现Linux版本的构建。可以直接在Linux服务器上完成构建:构建Linux环境的electron......
  • Centos Linux 查看网卡IP地址的方法
    方法一:通过hostname命令进查看IPv4地址[root@sre01~]#hostname-I192.168.236.100同时查看IPv6地址[root@sre01~]#hostname-ife80::efee:7ca0:acf0:ad72%ens33192.168.236.100方法二:通过ip命令[root@sre01~]#ipashowens332:ens33:<BROADCAST,MULTICAST,UP,LOWER_UP......