$ arp -a
gateway (192.168.0.1) at xx:xx:xx:xx:xx:79 [ether] on eth0
nmap -sn 192.168.0.0/24
sudo apt install arping -y
#!/bin/bash
for ip in 192.168.0.{1..254}; do
ping -c 1 -W 1 $ip | grep "64 bytes" &
done
arp -n
arp -e
sudo apt-get install arp-scan
sudo arp-scan --interface=eth0 --localnet
nmap -sn 192.168.0.255/24
nmap -sn 192.168.1.1-254/24 | egrep "scan report" | awk '{print $5}'
sudo apt install nast
sudo nast -m