Can I determine the current IP from a known MAC Address

0 votes

I have a shell script that wakes up a machine on my local network using etherwake. I'm not sure what the IP address is after the computer is awake.

ip=$(ping -c 1 hostname | head -1 | awk '{print $3}' | sed 's/[()]//g')

Is there a way to get the IP if all I know is the MAC address?

Feb 9, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
604 views

1 answer to this question.

0 votes
ARP may be used to retrieve an IP address from a known MAC address. But first, you must update your local ARP table in order to get information from all network devices. To ping the whole LAN, send a broadcast message to your network. Type in the Command Prompt in Windows or the Terminal on macOS.
answered Feb 20, 2022 by Edureka
• 12,690 points

Related Questions In Cyber Security & Ethical Hacking

0 votes
1 answer

How do i check a ip address range whether it falls in Class A,Class B,Class C

class NetworkId{ static String findClass(String str){ int index = ...READ MORE

answered Feb 16, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
862 views
0 votes
1 answer
0 votes
1 answer

How do I set variable if a specific package version is installed in CFEngine?

Here is what you can do.Just use packagesmatching to ...READ MORE

answered Jul 12, 2018 in Other DevOps Questions by Atul
• 10,240 points
1,152 views
0 votes
2 answers

Install postgreSQL on Ubuntu

Follow the below commands to install PostgreSQL (PSQL) ...READ MORE

answered Nov 12, 2020 in Database by Prachi
• 140 points
1,221 views
0 votes
1 answer

Access progrs prompt without switching accounts

Use the following to get the postgres prompt ...READ MORE

answered Mar 22, 2019 in Database by Mahi
821 views
0 votes
1 answer

How can I force the login to a specific ip address?

Try to access the router's default page. It's ...READ MORE

answered Feb 15, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
1,420 views
0 votes
1 answer

how to find host name from IP with out login to the host

To find host name from IP you ...READ MORE

answered Feb 20, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
86,674 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP