【问题标题】:arp command - what does it all mean? *and* getting a wireless router MAC address from IParp 命令 - 这是什么意思? *和*从 IP 获取无线路由器 MAC 地址
【发布时间】:2010-11-30 18:18:15
【问题描述】:

当我在我的 bash shell 中输入 arp -a 时,我得到如下所示的输出:

? (10.0.0.1) at 0:f0:7f:43:e8:68 on en1 ifscope [ethernet]
box1.google.com (10.0.0.3) at 0:1f:fe:fe:ca:d4 on en1 ifscope [ethernet]
box2.google.com (10.0.0.2) at 0:2:a3:45:90:bf on en1 ifscope [ethernet]
box3.google.com (10.0.0.50) at 78:e7:df:7c:34:c on en1 ifscope [ethernet]
box4.google.com (10.0.0.230) at 0:80:74:c9:50:d5 on en1 ifscope [ethernet]
box5.google.com (10.0.0.256) at 0:23:df:91:4f:9e on en1 ifscope [ethernet]
box6.google.com (10.0.0.458) at 0:15:9:89:36:68 on en1 ifscope [ethernet]
? (10.0.0.179) at 0:2a:32:f0:f4:d0 on en1 ifscope [ethernet]
box7.google.com (10.0.0.283) at 0:27:16:66:2d:ef on en1 ifscope [ethernet]
box8.google.com (10.0.0.386) at 0:13:eb:91:d8:b5 on en1 ifscope [ethernet]
box9.google.com (10.0.0.287) at 0:1c:25:10:d8:89 on en1 ifscope [ethernet]
? (10.0.0.255) at (incomplete) on en1 ifscope [ethernet]
? (172.17.122.255) at (incomplete) on vmnet8 ifscope [ethernet]
? (172.17.254.1) at 0:50:56:c0:0:1 on vmnet1 ifscope permanent [ethernet]
? (172.17.254.255) at (incomplete) on vmnet1 ifscope [ethernet]

这一切意味着什么?我大致了解我看到的是域名、IP 地址(内部 IP 地址?)和 MAC 地址。如何找到我连接的无线路由器的 MAC 地址?为什么这里有这么多条目?我想只有一台用于我的计算机,一台用于无线路由器,一台用于电缆调制解调器,然后可能还有其他一些上游的东西......但我看到的其他计算机不是我的。此外,我没有看到我的电脑。另外,我可以以某种方式使用这样的信息来查找公共无线路由器的 MAC 地址吗?如果我无法连接到上述公共路由器怎么办?

【问题讨论】:

  • 结束投票很好,但请评论原因,如果可能的话,请指导我获取有用的信息。

标签: ip-address mac-address


【解决方案1】:

猜测 10.0.0.1 看起来像网关。 为什么要查找您所在路由器的 MAC 地址? 此外,如果您无法连接到无线路由器,那么您将无法使用此命令找到它,您可以使用其他一些命令来扫描无线信号。 您在那里看不到您的计算机,因为这是您的本地 arp 表,您为什么需要知道您在哪里?你已经在那里了。

【讨论】:

  • 最终,我不想找到我所在的路由器的MAC地址,但我会想找到我周围路由器的MAC地址。如果您知道其他可以扫描无线信号的命令,请告诉我。
  • iwlist wlan0扫描编辑:误按回车,上面应该显示所有本地AP,只要wlan0是你的无线接口,否则替换。从记忆中我认为这也给了你mac地址。
【解决方案2】:

您必须匿名化输出,因为 ip-address 10.0.0.458 是不可能的,而且 mac-addresses 也可能是假的。

48 位 (EUI-48) 的 mac 地址是 6 字节长。前 3 个字节分配给供应商,您可以从 IEEE 下载一长串分配的供应商或使用在线服务,如

http://coffer.com/mac_find/

在 EN1 接口上,有一个设备的 mac 地址属于 HP Procurve,当前使用 ip-address 10.0.0.3。

问号表示无法解析主机名(使用反向 DNS 查找),“不完整”表示一段时间未在网络上看到该设备。如果它是“永久的”,则 MAC 地址不会被标记为陈旧,因此无论设备是否已通信,它都不应进入“不完整”状态。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-10
    • 2014-10-13
    • 2013-04-12
    • 1970-01-01
    • 2017-12-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多