免费注册 查看新帖 |

Chinaunix

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

[网络管理] 帮忙看一下,为什么traceroute会有两个相同的IP? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-14 10:42 |只看该作者 |倒序浏览
记得早上好象发过了,不过找不到了,只好再发一遍。真的很着急想知道这个原因
这个图,第3跳和第4跳,,,
可能是什么原因引起的?知道的请指点一下

[ 本帖最后由 chatgirl 于 2007-9-14 10:47 编辑 ]

20070914_a7b59ae7d5778f6902a7jWcp4v2OcCuX.jpg (18.63 KB, 下载次数: 108)

20070914_a7b59ae7d5778f6902a7jWcp4v2OcCuX.jpg

论坛徽章:
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-09-14 10:50 |只看该作者
猜一下:
可能中间有无编址IP之类的链路。

论坛徽章:
0
3 [报告]
发表于 2007-09-14 11:00 |只看该作者
谢谢版主关注,我不知道什么是无编址ip,google了一下,资料也很少,基本上没发现什么,大概看了一下,我的理解就是点对点的链路,两边都没有IP地址的?如果是这样的话,对我来说那段链路应该是透明的吧,就好象arp代理,我应该感觉不到有那个存在,也就是那个ip不应该出现2次啊,不知道我理解的对不对。

论坛徽章:
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-09-14 11:04 |只看该作者
你的理解是对的。但是无编址,不是说本身没有IP,而是说它使用的是别的接口的IP。

我只是猜的,没有验证过,有时间我给你验证一下。

论坛徽章:
0
5 [报告]
发表于 2007-09-14 11:07 |只看该作者
可以这么解释吗:

那个路由器对TTL=1 or 2的包均丢弃

So,你的两个报文均被他回复(icmp TTL exceed)

论坛徽章:
0
6 [报告]
发表于 2007-09-14 11:14 |只看该作者
还是没怎么明白。你的意思是,第3跳的那个接口,是物理存在的,但是本身没有IP,或者说被配置成“借用”其他借口的IP,是这个意思吗?
我记得traceroute的原理是发送每次ttl都+1的数据包,对不对?
那样的话,经过第3跳和第4跳,应该数据包的ttl都被-1了吧,可是下面这张图,我到第5跳被-的ttl还是4啊,如果说第3跳或者第4跳的接口改变了数据包的ttl,那traceroute也应该看不到的。是不是这样?
不知道回复怎么发图了,我帖一下结果
发送ttl为3的

ping -n 1 -i 3 125.32.9.1
Reply from 125.32.9.234: TTL expired in transit.

ttl为4的
ping -n 1 -i 4 125.32.9.1
Reply from 125.32.9.1: bytes=32 time=2ms TTL=251

论坛徽章:
0
7 [报告]
发表于 2007-09-14 11:16 |只看该作者
sorry回复完才看见楼上的,不过刚好我回复的有结果
如果象你说的那样,ttl为4的也应该是expired ?是这样吗

图在这


[ 本帖最后由 chatgirl 于 2007-9-14 11:18 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2007-09-14 11:29 |只看该作者
traceroute 125.32.9.1看看走的路
未必一样

论坛徽章:
0
9 [报告]
发表于 2007-09-14 11:33 |只看该作者
原帖由 hahasasa 于 2007-9-14 11:29 发表
traceroute 125.32.9.1看看走的路
未必一样




果然,看来和这个没关系了。
可是还是不理解为什么那个IP会出现两次。
如果象你说的,对ttl 1和2的都丢弃,应该会出现这种情况吧。
可是,有的时候就不是这样的,有的时候同样是trace  sina.com.cn,那个IP就只出现一次。
那这种情况,是路由变了?
另外期待版主的验证结果。

[ 本帖最后由 chatgirl 于 2007-9-14 11:39 编辑 ]

论坛徽章:
0
10 [报告]
发表于 2007-09-14 11:37 |只看该作者
无编址?不是这么说的吧,我理解在cisco里有项技术跟说的这个无编址差不多。。。
What is an Unnumbered Interface?

Consider the network shown below. Router A has a serial interface S0 and an Ethernet interface E0.

Router A's Ethernet 0 interface can be configured with an IP address as shown below:

    interface Ethernet0
    ip address 172.16.10.254 255.255.255.0

Logically, to enable IP on interface S0, you would need to configure a unique IP address on it. However, it is also possible to enable IP on the Serial interface and bring it up without assigning a unique IP address to it. This is done by borrowing an IP address already configured on one of the router's other interfaces. To do this, the ip unnumbered interface mode command is used as shown below.

    interface Serial 0
    ip unnumbered Ethernet 0

The ip unnumbered <type> <number> interface mode command borrows the IP address from the specified interface to the interface on which the command has been configured. Use of the ip unnumbered command results in the IP address being shared by two interfaces. Thus, in our example, the IP address which was configured on the Ethernet interface is also assigned to the Serial interface, and both interfaces involved function normally. This can be verified using the output of the show ip interface brief command, as shown below:

    RouterA# show ip interface brief

    Interface    IP-Address      OK?    Method   Status   Protocol
    Ethernet0    172.16.10.254   YES    manual   up       up
    Serial0      172.16.10.254   YES    manual   up       up

但trace的结果应该和这个没有关系的。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP