ip - List ALL devices on local network? -


i have tried arp -a lot , has listed some devices, not of them. ifconfig shows ip address , mac address , other useful information, doesn't show of devices on local network. there command shows ip addresses?

arp -a show mac addresses stored in local arp cache , computer connected to. when i'm trying see every device in local network have scan it. example if have 192.168.1.0/24 network can do:

$ in `seq 1 254`; ping -c 1 -q 192.168.1.$i & done 

you try ping every computer in network. of course not every computer answer ping. why can't rely on ping. need check arp cache.

$ arp -a | grep 192.168.1. | grep ether 

this command show arp cache filtered computers in network , answered on arp requests (in 99% cases full list of devices in network - remember arp entry not removed when device disconnects).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -