Friday, 6 October 2017

Getting MAC address of any device in LAN from Ubuntu/Linux.

Getting MAC Address of any system from Ubuntu is very easy from Linux/Ubuntu. In some cases it is very hard to find any system when it does not ping and is on same network. To get MAC address of any device it should be turned on and should be on same network.

The ARP Scan Tool (also called ARP Sweep or MAC Scanner) is a great tool to find MAC address of any device in LAN.

So, you require to install arp-scan tool in your system. You can install it from terminal by just typing -

sudo apt-get install arp-scan

After installing arp-scan you will have to run it from terminal to find MAC address of any device. 

sudo arp-scan 172.16.16.51



You can also find the MAC address of multiple PCs at same time using arp-scan tool. All PCs must be connected through LAN.


To find MAC address of multiple PCs, just type in terminal -

sudo arp-scan <starting ip address>-<ending ip address>

for example-

arp-scan 172.16.16.101-172.16.16.185

above command will give the MAC address of all PCs having IP address in between given range in command, also sure that all PCs must be turn on.

You can find many more options that you can do it from arp-scan.

No comments:

Post a Comment

Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...