How to Determine the Current Ip from a Known MAC Address

Can I determine the current IP from a known MAC Address?

I know is old, but the simplest way in linux is:

arp -a | grep "00:1E:C9:56:3C:8E"

The point of this is to ignore if is connected in one or another network meanwhile each device can see each other.

Get IP From Mac Address With Nmap Command on Linux?

this may help;

nmap -sP....|awk -v mac="00:25:11" '/report for/{ip=$5}$0~mac{print ip}'

You just change the mac="00:25:11" part to do different MAC filtering.

If you test this line on your example, it output:

10.0.0.40

Means to get IP and MAC information from a list of known Hostnames

The arp command will show the list of MAC address and associated IP addresses of hosts known to the one you are connecting to.

ifconfig is the right tool to use (or "ip a" in some distros). Why don't you try to put a cron job in every machine to store the result of "ip a" or "ifconfig" into a tempfile and instead or executing the command in every remote host, you just donwload this file and parse in your local server?

If not, they only way to get accurate information of network adapters in a *IX box is to get into the host and ask for this info.

Get IP from MAC address. arp -a not showing device

I have tried this and it works:

for /L %N in (1,1,254) do start /b ping -n 1 -w 200 192.168.0.%N

provided the phone has ICMP enabled, you should have no problem.

How to calculate mac address from ip address

You cannot calculate the Mac address from the IP address. They originate from different sources.

  • It's generally the hardware that determines its MAC address
  • It's the configuration of the network that determines its IP address.


Related Topics



Leave a reply



Submit