免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 10311 | 回复: 9
打印 上一主题 下一主题

[网络管理] 如何在linux上查看某个IP走过的路由呀 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-18 14:05 |只看该作者 |倒序浏览
Linux 2.4.26

用什么命令查看呢
tracert IP,tracerout IP 都提示没有这样的命令。
请大家帮忙看看

论坛徽章:
0
2 [报告]
发表于 2006-04-18 14:17 |只看该作者
traceroute 这个是不是?
速度比tracert快多了。...

论坛徽章:
0
3 [报告]
发表于 2006-04-18 14:24 |只看该作者
试过了,不行。

test@test:/etc/traceroute 192.168.0.11
bash: traceroute: command not found
test@test:/etc/uname -r
2.4.26
test@test:/etc/uname -a
Linux test 2.4.26 #2 SMP Fri Jun 4 20:46:14 CST 2004 i686 unknown

论坛徽章:
0
4 [报告]
发表于 2006-04-18 14:26 |只看该作者
root@CO42-VM ~# whereis traceroute
traceroute: /bin/traceroute /usr/sbin/traceroute /usr/share/man/man8/traceroute.8.gz
root@CO42-VM ~#

论坛徽章:
0
5 [报告]
发表于 2006-04-18 14:30 |只看该作者
楼主用什么用户登录的? test?

论坛徽章:
0
6 [报告]
发表于 2006-04-18 14:32 |只看该作者
我在root的/bin目录下没有看到traceroute目录呀,是不是操作系统版本不一样呀
我的版本已经列出了

论坛徽章:
0
7 [报告]
发表于 2006-04-18 14:36 |只看该作者
test登录的,不过test登录后,su到超级用户呀
是不是操作系统中没有装这个工具呀
我man traceroute,结果提示:
(null): can't set the locale; make sure $LC_* and $LANG are correct
No manual entry for tracerout

论坛徽章:
0
8 [报告]
发表于 2006-04-18 14:36 |只看该作者
[root@wangw root]# whereis traceroute
traceroute: /usr/sbin/traceroute /usr/share/man/man8/traceroute.8.gz


[root@wangw root]# /usr/sbin/traceroute 202.102.192.68
traceroute to 202.102.192.68 (202.102.192.6, 30 hops max, 38 byte packets
1  192.168.0.3 (192.168.0.3)  0.939 ms  0.506 ms  0.467 ms
2  218.22.1.129 (218.22.1.129)  1.340 ms  1.374 ms  1.519 ms
3  61.190.246.81 (61.190.246.81)  1.292 ms  1.138 ms  1.605 ms

论坛徽章:
0
9 [报告]
发表于 2006-04-18 14:42 |只看该作者
看来是我这边的系统中没有安装这个工具,我看我另一台880,系统是solaris 8,这个上就有traceroute

那么我怎么才能安装这个工具呢

论坛徽章:
0
10 [报告]
发表于 2006-04-18 16:17 |只看该作者
apt-get install traceroute
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP