android arp获取mac地址api,ARP获取另一台主机的MAC地址

[root@gc1 ~]# ping 192.168.6.111

PING 192.168.6.111 (192.168.6.111) 56(84) bytes of data.

64 bytes from 192.168.6.111: icmp_seq=1 ttl=64 time=0.382 ms

64 bytes from 192.168.6.111: icmp_seq=2 ttl=64 time=0.320 ms

某一台主机的

[root@gc1 ~]# arp -a 192.168.6.111

? (192.168.6.111) at 08:00:27:00:40:0E [ether] on eth0

全部的

[mysql@GECS1DB2 ~]$ arp -a

? (132.42.33.40) at 84:8f:69:3f:77:ae [ether] on bond01

? (132.42.33.82) at 00:1b:ed:ce:31:80 [ether] on bond01

? (132.42.33.47) at 84:8f:69:3f:e6:15 [ether] on bond01

? (132.42.33.39) at 84:8f:69:3f:77:a1 [ether] on bond01

? (132.42.33.65) at 84:8f:69:3f:f2:55 [ether] on bond01

? (132.42.33.97) at 84:8f:69:43:0e:af [ether] on bond01

? (132.42.33.64) at 84:8f:69:3f:f2:48 [ether] on bond01

? (132.42.33.43) at 84:8f:69:3f:77:bb [ether] on bond01

? (132.42.33.48) at 84:8f:69:3f:e6:22 [ether] on bond01

? (132.42.33.46) at 84:8f:69:43:a1:a2 [ether] on bond01

? (132.42.33.1) at 00:00:5e:00:01:01 [ether] on bond01

? (132.42.33.81) at 00:1b:ed:ce:57:c0 [ether] on bond01

? (132.42.33.195) at 84:8f:69:43:3f:bc [ether] on bond01

? (132.42.33.55) at 84:8f:69:3f:e5:e1 [ether] on bond01

? (132.42.33.63) at 84:8f:69:3f:f2:3b [ether] on bond01

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29096438/viewspace-1466357/,如需转载,请注明出处,否则将追究法律责任。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值