Chinaunix首页 | 论坛 | 博客
  • 博客访问: 598186
  • 博文数量: 239
  • 博客积分: 7941
  • 博客等级: 准将
  • 技术积分: 2467
  • 用 户 组: 普通用户
  • 注册时间: 2010-07-10 12:14
个人简介

及时当勉励

文章分类

全部博文(239)

文章存档

2013年(29)

2011年(22)

2010年(188)

分类:

2010-06-15 03:16:25

    在windows 下面是tracert

    在linux 下面是traceroute

用来跟踪一个分组从源点到终点的路径
命令形式
traceroute
tracert
原理
使用UDP(unix和cisco router)
使用ICMP(Microsoft )

在ubuntu 下面直接跟IP地址,都只会显示*。要加上  -I 选项用ICMP。

hua@hua-desktop:~$ sudo traceroute hao123.com
traceroute to hao123.com (220.181.107.31), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  *^C
hua@hua-desktop:~$ sudo traceroute -I hao123.com
traceroute to hao123.com (61.135.163.90), 30 hops max, 60 byte packets
 1  61.135.163.90 (61.135.163.90)  31.233 ms  32.635 ms *
hua@hua-desktop:~$ sudo traceroute -I linux.ubuntu.com.cn
traceroute to linux.ubuntu.com.cn (173.212.231.48), 30 hops max, 60 byte packets
 1  173-212-231-48.hostnoc.net (173.212.231.48)  332.634 ms  332.732 ms  333.449 ms
hua@hua-desktop:~$


阅读(977) | 评论(0) | 转发(0) |
0

上一篇:一夜未睡

下一篇:又一晚上没有睡觉

给主人留下些什么吧!~~