discover hosts on layer 2

owning the lan

handy variable

cidr=192.168.0.0/24

ping + arp

nmap -sn $cidr -T5
arp -a

tcp + arp

arp scan against any single port - just to avoid top 1000

nmap -p0 -PR $cidr -T5

unused

arp-scan (doesnt find all hosts)

apt install arp-scan

arp-scan --localnet

HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT