How can I find out how many system are connected to the local network and how can I get all IP and mac address of these systems.
Is their any command/package to show the IP details?
Can I use this command/package in our Firewall(IP Corp onLinux OS) to block unauthorized systems?
Asked
Active
Viewed 4,422 times
0

Minos
- 1,771
2 Answers
1
I don't know a way to actively scan a network for live systems, although I'm sure such tools exist.
However if you just want to know what systems are connected and which MAC address they have I would just have a look at the list of active clients on your router/DHCP server.
You can then enable MAC filtering on your firewall and white list the MAC addresses that you want.

Minos
- 1,771
1
There's a command called arp-scan
that might do the trick for you, you will need to install it first:
sudo apt-get install arp-scan
Here's a link to the man pages that will outline how to use it: http://manpages.ubuntu.com/manpages/trusty/man1/arp-scan.1.html
As an example though, you could do this:
sudo arp-scan --interface=eth0 --localnet
Where eth0
is your local ethernet device. You can find out what yours is called via ifconfig

hazrpg
- 956
nmap
. – Jos Jul 22 '14 at 13:47