Scan other device IPs in the same LAN under Ubuntu

1. Install arp-scan

sudo apt-get install arp-scan
  
  
   
   

2. Use ifconfig to view the IP address of the machine, generally wired on interface en0/eth0, wireless on wlan0

ifconfig
  
  
   
   

The arrow points to the IP address of my virtual machine

3. Check the IP of other devices in the same LAN

sudo arp-scan -I wlo1 --localnet
  
  
   
   

Note: "wlo1 should be replaced with your own network port name"

The arrow points to the IP address of my host machine.

おすすめ

転載: blog.csdn.net/luoganttcc/article/details/130448985