Ubuntu下扫描同一局域网的其他设备IP

1.安装arp-scan

sudo apt-get install arp-scan
  
  
   
   

2.使用ifconfig查看本机IP地址,一般有线在interface en0/eth0, 无线在wlan0上

ifconfig
  
  
   
   

箭头中所指是我虚拟机的IP地址

3.查看同一局域网的其他设备IP

sudo arp-scan -I wlo1 --localnet
  
  
   
   

注意:"wlo1 要换成自己的网口名"

箭头所指就是我宿主机的IP地址了。

猜你喜欢

转载自blog.csdn.net/luoganttcc/article/details/130448985