• 欢迎订阅我的Youtube频道
  • 欢迎加入我的电报群

Mac os 使用nmap 和 arp 快速找到局域网其它设备的IP地址

网络技术 fennng 1个月前 (07-06) 141次浏览 0个评论

因为换了路由器, 所以家里面所有设备的 IP 都变了。 当我要用这台 MAC RDP ( 远程协助)到我的 Surface book2 的时候, 发现 IP 设备不对了。 那要怎么快速的找到那台电脑的 IP 呢?

首先, 马上想到我以前发过的一篇文章里讲到的 nmap, 于是我输入了以下命令 (你需要使用 ifconfig 命令先找出 ip 段, 一般是 eth1 网卡)。

YuFengs-Mini:~ fennng$ nmap -sn 192.168.1.0/24
Starting Nmap 7.70 ( https://nmap.org ) at 2019-07-06 12:08 NZST
Nmap scan report for router.asus.com (192.168.1.1)
Host is up (0.0069s latency).
Nmap scan report for 192.168.1.11
Host is up (0.038s latency).
Nmap scan report for android-2978145522146f5e (192.168.1.74)
Host is up (0.045s latency).
Nmap scan report for YuFengs-Mini (192.168.1.91)
Host is up (0.0013s latency).
Nmap done: 256 IP addresses (4 hosts up) scanned in 3.32 seconds

可是结果令我惊讶, 那台 PC 的 IP 地址并没有列出来, 不知道 什么原因。但是我想到扫描过的地址都会缓存在 arp 表里, 所以,我马上又运行了 arp 命令, 果然, 找到了我要的主机 CL221 的 IP, 192.168.1.204.

技多不压身呀, 多学几个命令准没错!

YuFengs-Mini:~ fennng$ arp -a
? (169.254.8.61) at c4:9d:ed:2c:45:f on en1 [ethernet]
? (192.168.1.0) at ff:ff:ff:ff:ff:ff on en1 ifscope [ethernet]
router.asus.com (192.168.1.1) at 40:b0:76:5a:4d:4c on en1 ifscope [ethernet]
? (192.168.1.2) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.3) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.4) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.5) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.6) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.7) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.8) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.9) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.10) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.11) at 28:56:5a:2d:70:c4 on en1 ifscope [ethernet]
? (192.168.1.12) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.13) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.14) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.15) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.16) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.17) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.18) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.19) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.20) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.21) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.22) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.23) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.24) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.25) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.26) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.27) at (incomplete) on en1 ifscope [ethernet]
minde-iphone (192.168.1.28) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.29) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.30) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.31) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.32) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.33) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.34) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.35) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.36) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.37) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.38) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.39) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.40) at (incomplete) on en1 ifscope [ethernet]
galaxy-s6-edge (192.168.1.41) at ec:1f:72:21:d0:1c on en1 ifscope [ethernet]
? (192.168.1.42) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.43) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.44) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.45) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.46) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.47) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.48) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.49) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.50) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.51) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.52) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.53) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.54) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.55) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.56) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.57) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.58) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.59) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.60) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.61) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.62) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.63) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.64) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.65) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.66) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.67) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.68) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.69) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.70) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.71) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.72) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.73) at (incomplete) on en1 ifscope [ethernet]
android-2978145522146f5e (192.168.1.74) at 3c:bd:3e:28:55:88 on en1 ifscope [ethernet]
? (192.168.1.75) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.76) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.77) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.78) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.79) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.80) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.81) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.82) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.83) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.84) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.85) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.86) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.87) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.88) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.89) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.90) at (incomplete) on en1 ifscope [ethernet]
yufengs-mini (192.168.1.91) at 70:73:cb:be:55:ad on en1 ifscope permanent [ethernet]
? (192.168.1.92) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.93) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.94) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.95) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.96) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.97) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.98) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.99) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.100) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.101) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.102) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.103) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.104) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.105) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.106) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.107) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.108) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.109) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.110) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.111) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.112) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.113) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.114) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.115) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.116) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.117) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.118) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.119) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.120) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.121) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.122) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.123) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.124) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.125) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.126) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.127) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.128) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.129) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.130) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.131) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.132) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.133) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.134) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.135) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.136) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.137) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.138) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.139) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.140) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.141) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.142) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.143) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.144) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.145) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.146) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.147) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.148) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.149) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.150) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.151) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.152) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.153) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.154) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.155) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.156) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.157) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.158) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.159) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.160) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.161) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.162) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.163) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.164) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.165) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.166) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.167) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.168) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.169) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.170) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.171) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.172) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.173) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.174) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.175) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.176) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.177) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.178) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.179) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.180) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.181) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.182) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.183) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.184) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.185) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.186) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.187) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.188) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.189) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.190) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.191) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.192) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.193) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.194) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.195) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.196) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.197) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.198) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.199) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.200) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.201) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.202) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.203) at (incomplete) on en1 ifscope [ethernet]
cl221 (192.168.1.204) at c4:9d:ed:2c:45:f on en1 ifscope [ethernet]
? (192.168.1.205) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.206) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.207) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.208) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.209) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.210) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.211) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.212) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.213) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.214) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.215) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.216) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.217) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.218) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.219) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.220) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.221) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.222) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.223) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.224) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.225) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.226) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.227) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.228) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.229) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.230) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.231) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.232) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.233) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.234) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.235) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.236) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.237) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.238) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.239) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.240) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.241) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.242) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.243) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.244) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.245) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.246) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.247) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.248) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.249) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.250) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.251) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.252) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.253) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.254) at (incomplete) on en1 ifscope [ethernet]
? (192.168.1.255) at ff:ff:ff:ff:ff:ff on en1 ifscope [ethernet]
? (224.0.0.251) at 1:0:5e:0:0:fb on en1 ifscope permanent [ethernet]
? (239.255.255.250) at 1:0:5e:7f:ff:fa on en1 ifscope permanent [ethernet]
YuFengs-Mini:~ fennng$

峰享技术 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Mac os 使用 nmap 和 arp 快速找到局域网其它设备的 IP 地址
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址