Hi,
i am working on a project where i have to write a script to find out MAC addresses of the systems with given IP address.
Can anybody tell me which command i can use to find MAC address if you know IP address of the machine.
Thanks
User with root privileges:
ifconfig -a
Should give you ip address and mac address for all interfaces in your system.
Yes, i tried this one. but it gives me information (including MAC address) of ethernet interfaces only. but there are number of systems connected to it having ip address for e.g. 192.147.0.1 - 192.147.0.20 , 20 systems altogether. and i need to find MAC address for them individually...any help would be appreciated..
Thanks
Try 'arp -a'.
i checked arp -a it worked but fetching only systems present in my subnet. how to fetch info about everything?? is there a different command for it??