ping命令ttl值
TTL不同系统下的默认值
+caption: TTL(Time To Live) 生存时间
系统 | TTL值 |
---|---|
Linux | 64 |
Linux | 128 |
UNIX | 255 |
Windows NT | 128 |
Windows 2000 | 128 |
Windows XP | 128 |
Windows 98 | 32 |
TTL含义
每经过一个路由器,TTL值减一,ttl - 1 = 路由器个数
测试样例
➜ ~ ping cnblogs.com -c 3
PING cnblogs.com (101.37.97.51) 56(84) bytes of data.
64 bytes from 101.37.97.51 (101.37.97.51): icmp_seq=1 ttl=86 time=29.9 ms
64 bytes from 101.37.97.51 (101.37.97.51): icmp_seq=2 ttl=86 time=30.5 ms
64 bytes from 101.37.97.51 (101.37.97.51): icmp_seq=3 ttl=86 time=30.1 ms
--- cnblogs.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 29.909/30.197/30.548/0.300 ms