Question:
I am wanting to have a simple command to resolve a MAC address to an IP. Is this even possible? I know the MAC address I am looking to get the IP address.
Answer:
This will give if the IP address if you already have the MAC/IP association in your ARP table:
1 2 |
arp -a | select-string "00-1c-87-c0-1c-5d" |% { $_.ToString().Trim().Split(" ")[0] } |
returns
1 2 |
192.168.10.95 |
If you do not have the record in your ARP table, then I don’t think that there is an easy way to do it.
One way would be to install arping and call it in a similar fashion from your Powershell script.