免费注册 查看新帖 |

Chinaunix

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

[网络管理] Time to live exceeded ??? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-18 18:28 |只看该作者 |倒序浏览
一個怪問題:
環境: fc6 centos 5.0   
我想把主機設成禁ping ...使用以下任何一條命令:
iptables -A INPUT -p icmp --icmp-type echo-request -j DROP
iptables -A OUTPUT p icmp --icmp-type echo-reply -j DROP


然后,我測試結果
在WIN下的是:
Pinging x.x.x.164 with 32 bytes of data:



Reply from x.x.x.168: TTL expired in transit.

Reply from x.x.x.168: TTL expired in transit.

Reply from x.x.x.168: TTL expired in transit.

Reply from x.x.x.168: TTL expired in transit.



Ping statistics for x.x.x.164:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 0ms, Maximum = 0ms, Average = 0ms



在linux 下的測試結果:

ping  x.x.x.164
PING x.x.x.164 (x.x.x.164) 56(84) bytes of data
From x.x.x.168 icmp_seq=1 Time to live exceeded
From x.x.x.168 icmp_seq=2 Time to live exceeded
From x.x.x.168 icmp_seq=3 Time to live exceeded
From x.x.x.168 icmp_seq=4 Time to live exceeded

--- x.x.x.164 ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3002ms

百思不得其解...??????(兩臺主機是在同個網段.用的redhat 4.0 做的router)..

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2007-08-18 20:04 |只看该作者
是不是有路由环路。
抓包分析一下。
另外如果把那2行去掉,什么结果。

论坛徽章:
0
3 [报告]
发表于 2007-08-19 21:31 |只看该作者
謝謝樓上的..去掉上面兩句,一切又正常了...很奇怪的..

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
4 [报告]
发表于 2007-08-20 11:01 |只看该作者
还是有地方配置不正确。
要解决的话,先帖完整的拓扑结构。特别注意有无ARP代理的地方。

论坛徽章:
0
5 [报告]
发表于 2009-07-13 09:21 |只看该作者
TTL超时?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
6 [报告]
发表于 2009-07-13 09:46 |只看该作者
检查有没有路由回环存在
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP