command for getting ip address

Asked by aneesh

Is there any command in ubuntu for getting ip address of remote system from it known mac address ?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Soul-Sing (soulzing) said :
#1

terminal: man ip

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

ip neigh flush all > /dev/null; fping -c 1 -g -q 192.168.1.0/24 2> /dev/null; arp -n | grep "00:1B:4C:22:28:B1"

replace:

00:1B:4C:22:28:B1

But keep the quotes in for the MAC address you want to query. Should work fine.

Can you help with this problem?

Provide an answer of your own, or ask aneesh for more information if necessary.

To post a message you must log in.