首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从地址解析协议-a扫描中查找MAC地址

如何从地址解析协议-a扫描中查找MAC地址
EN

Stack Overflow用户
提问于 2015-09-26 01:15:00
回答 2查看 825关注 0票数 0

我正在尝试从我的wifi网络上的arp -a扫描中显示的设备中查找MAC地址。在MAC终端中调用"arp -a“的结果如何获取Mac地址?

代码语言:javascript
复制
? (10.10.40.1) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
us114-appletv.francisparker.org (10.10.40.92) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
03089mac.francisparker.org (10.10.40.236) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
02543mac.francisparker.org (10.10.41.9) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
us113-dwalcott-0.francisparker.org (10.10.41.83) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
meghans-air.francisparker.org (10.10.41.123) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
faiths-mbp-2.francisparker.org (10.10.41.132) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
09150mac.francisparker.org (10.10.41.144) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
02758mac.francisparker.org (10.10.41.219) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
02769mac.francisparker.org (10.10.41.234) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.42.99) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.42.113) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.44.44) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.44.201) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.45.77) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.45.123) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.45.151) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.46.6) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]
? (10.10.46.137) at 0:90:b:2e:bf:ff on en0 ifscope [ethernet]

谢谢!

EN

回答 2

Stack Overflow用户

发布于 2015-09-26 01:32:53

您的问题不太清楚;MAC地址在上面的输出中清楚地列出了。我假设您的意思是“如何将arp输出转换为换行符分隔的MAC地址列表?”这只是获取第四列的一个简单的cut

代码语言:javascript
复制
arp -a | cut -d' ' -f 4
票数 1
EN

Stack Overflow用户

发布于 2017-01-04 18:54:25

尝试:

代码语言:javascript
复制
arp -n xxx.xxx.xxx.xxx

例如,我的Zyxel路由器MAC地址:

代码语言:javascript
复制
arp -n 192.168.1.1

显示:

?(192.168.1.1)在en0 ifscope以太网上的c8:6c:87:xx:xx:xx

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32787420

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档