linux 不同ip 相同mac arp,linux – nmap和arp-scan不一致的IP-MAC结果
我似乎使用nmap或arp-scan從特定機(jī)器獲得IP / MAC地址的可變和不一致結(jié)果.
該機(jī)器有3個(gè)接口,這就是它所顯示的:
$uname -a
Linux showstore-81 2.6.35.13 #1 SMP PREEMPT Thu Feb 9 12:20:36 PST 2012 i686 GNU/Linux
$LC_ALL=C /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:21:ac:17:19
inet addr:192.168.81.54 Bcast:192.168.81.255 Mask:255.255.255.0
...
eth1 Link encap:Ethernet HWaddr 00:25:90:25:d0:4e
inet addr:192.168.81.129 Bcast:192.168.81.255 Mask:255.255.255.128
...
eth2 Link encap:Ethernet HWaddr 00:25:90:25:d0:4f
inet addr:169.254.1.1 Bcast:169.254.255.255 Mask:255.255.0.0
...
所以無論我使用什么工具和選項(xiàng),我都期望:
> IP .54 => MAC 00:1b:21:ac:17:19
> IP .129 => MAC 00:25:90:25:d0:4e
但是nmap -n -sP 192.168.81.0/24(nmap v.5.00)報(bào)告它反轉(zhuǎn):
Host 192.168.81.54 is up (0.000078s latency).
MAC Address: 00:25:90:25:D0:4E (Super Micro Computer)
Host 192.168.81.129 is up (0.000058s latency).
MAC Address: 00:1B:21:AC:17:19 (Intel Corporate)
并且nmap -n -sP -PR 192.168.81 / 24僅報(bào)告兩個(gè)IP上的一個(gè)MAC地址:
Host 192.168.81.54 is up (0.000081s latency).
MAC Address: 00:1B:21:AC:17:19 (Intel Corporate)
Host 192.168.81.129 is up (0.00011s latency).
MAC Address: 00:1B:21:AC:17:19 (Intel Corporate)
最后,arp-scan -l(v.1.8.1)使用兩個(gè)MAC地址報(bào)告兩次IP地址:
192.168.81.54 00:1b:21:ac:17:19 Intel Corporate
192.168.81.54 00:25:90:25:d0:4e Super Micro Computer,Inc.
192.168.81.129 00:1b:21:ac:17:19 Intel Corporate
192.168.81.129 00:25:90:25:d0:4e Super Micro Computer,Inc.
如何進(jìn)行掃描以獲得正確的結(jié)果? (我只需要IP和MAC.沒有端口掃描.)
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的linux 不同ip 相同mac arp,linux – nmap和arp-scan不一致的IP-MAC结果的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux卸载模块驱动程序,Linux设
- 下一篇: linux内核中断向量表,中断向量表