有什么命令可以像tracerouter一样显示整条链路上的物理地址?

22 views
Skip to first unread message

adream

unread,
Aug 21, 2015, 8:08:26 AM8/21/15
to shlug
tracerouter IP 可以显示到目标IP整个链路上网关的IP地址,哪有什么命令可以显示这整个链路上所有网关的MAC地址吗?谢谢

Chaos Eternal

unread,
Aug 21, 2015, 9:03:48 AM8/21/15
to sh...@googlegroups.com
不可能。
mac地址过了网关就不会让你看到了。

2015-08-21 20:08 GMT+08:00 adream <adre...@gmail.com>:
> tracerouter IP 可以显示到目标IP整个链路上网关的IP地址,哪有什么命令可以显示这整个链路上所有网关的MAC地址吗?谢谢
>
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout

Jerry Ling

unread,
Aug 21, 2015, 10:21:50 AM8/21/15
to shlug
能把链路上的IP地址逐个用别的工具获取MAC地址吗

Sent from myMail for iOS


Friday, August 21, 2015, 20:08 +0800 from adream <adre...@gmail.com>:
tracerouter IP 可以显示到目标IP整个链路上网关的IP地址,哪有什么命令可以显示这整个链路上所有网关的MAC地址吗?谢谢

August

unread,
Aug 21, 2015, 10:32:06 AM8/21/15
to sh...@googlegroups.com

如果网关和网关之间有N个交换机,你怎么知道哪个是路由哪个是交换机?

Bill Ryan

unread,
Aug 21, 2015, 9:08:17 PM8/21/15
to sh...@googlegroups.com
MAC 地址只能局部有效,基于 ICMP 的实现是拿不到的
from: billryan

Xu Xin

unread,
Aug 21, 2015, 11:55:12 PM8/21/15
to sh...@googlegroups.com
倒是有协议可以做二层的 trace,不过一般只有城域级别的交换机才会支持。

- Xin

Shell Xu

unread,
Aug 23, 2015, 11:50:30 AM8/23/15
to shlug
有。行政命令。

2015-08-21 20:08 GMT+08:00 adream <adre...@gmail.com>:
tracerouter IP 可以显示到目标IP整个链路上网关的IP地址,哪有什么命令可以显示这整个链路上所有网关的MAC地址吗?谢谢

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout



--
彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
blog: http://shell909090.org/blog/

adream

unread,
Aug 24, 2015, 9:15:22 AM8/24/15
to shlug
这位同学,你真逗。
首先谢谢各位的回复,这个是基础知识的问题,基础不够硬 。。。
我原先一直以为互联网上mac地址才是唯一,因为如果家里有路由器的话,个人的电脑基本都是192.168.0.X或192.168.1.X,所有不应该是通过IP地址唯一寻址的,所以才问了这个个问题。
后来我查了资料,发现家里路由器都是有NAT,这样就解释清楚了。
最后,还是非常感谢各位的回复。

August

unread,
Aug 25, 2015, 2:42:44 AM8/25/15
to sh...@googlegroups.com
互联网上mac地址的确唯一,IP地址也唯一,不唯一的IP地址是内网IP.
只是mac地址是二层的,没法通过三层的工具来找...
Best Regards
August

Chaos Eternal

unread,
Aug 25, 2015, 8:52:24 AM8/25/15
to sh...@googlegroups.com
mac地址不保证唯一的。

李帅

unread,
Aug 25, 2015, 11:15:54 PM8/25/15
to sh...@googlegroups.com
mac不出局域网,在局域网碰撞概率还是比较小的

Shell Xu

unread,
Aug 25, 2015, 11:22:52 PM8/25/15
to shlug
其实这也分。如果在同一个二层范围内大量使用同类设备,在碰到广播风暴前就有可能碰到碰撞。

2015-08-26 11:15 GMT+08:00 李帅 <lishua...@gmail.com>:
mac不出局域网,在局域网碰撞概率还是比较小的

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问https://groups.google.com/d/optout

Shell Xu

unread,
Aug 25, 2015, 11:25:44 PM8/25/15
to shlug
特别注解一下,我刚算了一下。如果一个子网内有1000台同类设备,碰撞概率大约是万分之6。

Jackie Mao

unread,
Aug 26, 2015, 12:27:06 AM8/26/15
to 上海LUG
MAC 碰撞了随便改一个呗....

adream

unread,
Aug 26, 2015, 9:12:57 AM8/26/15
to shlug
同一类设备应该仅仅只是来自同家厂商而已,48位的MAC地址,前24为表示厂商,那么MAC地址重叠的概率是 1000/(2^24)=0.000059605。
所以碰撞的概率是万分之0.6,不是万分之6

Shell Xu

unread,
Aug 26, 2015, 1:03:17 PM8/26/15
to shlug
确实算错了,是十万分之六。

李扬

unread,
Sep 1, 2015, 11:11:41 PM9/1/15
to Shanghai Linux User Group
mac地址在设计上是按照每硬件一个地址来的,如果这个不唯一,802.3跑不通了。
当然是可以改的,这个就像山寨手机用同一个串号一样,不是设计初衷。

在 2015年8月25日星期二 UTC+8下午8:52:24,Chaos Eternal写道:
mac地址不保证唯一的。

2015-08-25 14:42 GMT+08:00 August <tan.a...@gmail.com>:
> 互联网上mac地址的确唯一,IP地址也唯一,不唯一的IP地址是内网IP.
> 只是mac地址是二层的,没法通过三层的工具来找...
>
> 2015-08-24 21:15 GMT+08:00 adream <adre...@gmail.com>:
>>
>> 这位同学,你真逗。
>> 首先谢谢各位的回复,这个是基础知识的问题,基础不够硬 。。。
>>
>> 我原先一直以为互联网上mac地址才是唯一,因为如果家里有路由器的话,个人的电脑基本都是192.168.0.X或192.168.1.X,所有不应该是通过IP地址唯一寻址的,所以才问了这个个问题。
>> 后来我查了资料,发现家里路由器都是有NAT,这样就解释清楚了。
>> 最后,还是非常感谢各位的回复。
>>
>> 在 2015年8月23日 下午11:49,Shell Xu <shell...@gmail.com>写道:
>>>
>>> 有。行政命令。
>>>
>>> 2015-08-21 20:08 GMT+08:00 adream <adre...@gmail.com>:
>>>>
>>>> tracerouter IP 可以显示到目标IP整个链路上网关的IP地址,哪有什么命令可以显示这整个链路上所有网关的MAC地址吗?谢谢
>>>>
>>>> --
>>>> -- You received this message because you are subscribed to the Google
>>>> Groups Shanghai Linux User Group group. To post to this group, send email to
>>>> sh...@googlegroups.com. To unsubscribe from this group, send email to
>>>> shlug+un...@googlegroups.com. For more options, visit this group at
>>>> https://groups.google.com/d/forum/shlug?hl=zh-CN
>>>> ---
>>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
>>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
>>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>>
>>>
>>>
>>>
>>> --
>>> 彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。
>>> blog: http://shell909090.org/blog/
>>> twitter: @shell909090
>>> about.me: http://about.me/shell909090
>>>
>>> --
>>> -- You received this message because you are subscribed to the Google
>>> Groups Shanghai Linux User Group group. To post to this group, send email to
>>> sh...@googlegroups.com. To unsubscribe from this group, send email to
>>> shlug+un...@googlegroups.com. For more options, visit this group at
>>> https://groups.google.com/d/forum/shlug?hl=zh-CN
>>> ---
>>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
>>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
>>> 要查看更多选项,请访问https://groups.google.com/d/optout
>>
>>
>> --
>> -- You received this message because you are subscribed to the Google
>> Groups Shanghai Linux User Group group. To post to this group, send email to
>> sh...@googlegroups.com. To unsubscribe from this group, send email to
>> shlug+un...@googlegroups.com. For more options, visit this group at
>> https://groups.google.com/d/forum/shlug?hl=zh-CN
>> ---
>> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
>> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
>> 要查看更多选项,请访问https://groups.google.com/d/optout
>
>
>
>
> --
> Best Regards
> August
>
> --
> -- You received this message because you are subscribed to the Google Groups
> Shanghai Linux User Group group. To post to this group, send email to
> sh...@googlegroups.com. To unsubscribe from this group, send email to
> shlug+un...@googlegroups.com. For more options, visit this group at
> https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。
> 要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+unsubscribe@googlegroups.com
> 要查看更多选项,请访问https://groups.google.com/d/optout
Reply all
Reply to author
Forward
0 new messages