LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mac to ip address in linux box (https://www.linuxquestions.org/questions/linux-newbie-8/mac-to-ip-address-in-linux-box-807346/)

salimshahzad 05-12-2010 05:25 AM

Mac to ip address in linux box
 
hello

i am searching on google and net where mostly tools that find from ip to mac address resolve. but vice versa not find

how can i convert the mac address to ip. is there any software,utility and tools

i do have mac address 00E0D80D2D30

regards

vikas027 05-12-2010 05:43 AM

Quote:

Originally Posted by salimshahzad (Post 3965578)
hello

i am searching on google and net where mostly tools that find from ip to mac address resolve. but vice versa not find

how can i convert the mac address to ip. is there any software,utility and tools

i do have mac address 00E0D80D2D30

regards

There is no way of converting MAC to IP. Both are two different things.
MAC address is the address of the Ethernet Card which can not be changed
and
IP is something which you can change and defines your machine uniquely in a network.

retired1af 05-12-2010 09:58 AM

Quote:

Originally Posted by vikas027 (Post 3965591)
There is no way of converting MAC to IP. Both are two different things.
MAC address is the address of the Ethernet Card which can not be changed
and
IP is something which you can change and defines your machine uniquely in a network.


Actually, you can change the MAC address of your NIC. ;) However, you are correct in stating that it can not be converted to an IP address.

catkin 05-12-2010 10:12 AM

Perhaps "convert" is not the right word. From salimshahzad's other thread, the question might better be phrased "How to find out the IP address for a MAC address on the LAN?" and I think the answer is arp -n but I'm not sure, especially if the other device's IP is not on the same subnet or VLAN.

TB0ne 05-12-2010 10:15 AM

Quote:

Originally Posted by catkin (Post 3965823)
Perhaps "convert" is not the right word. From salimshahzad's other thread, the question might better be phrased "How to find out the IP address for a MAC address on the LAN?" and I think the answer is arp -n but I'm not sure, especially if the other device's IP is not on the same subnet or VLAN.

You're right, but if you use a span-port on the router/switch, or run something like Etherape (which does ARP-table poisoning), you can see things that aren't on your same VLAN/Subnet. But based on his other thread, he's trying to do this via a cross-over cable, which will give nothing. That device is probably trying to grab a DHCP address to configure itself, but it's isolated right now. And the OP never answered the other question about whether or not it has a USB port on it. It's just a UPS....

ajeetsinghraina 05-12-2010 11:55 AM

Catkin..I do think the question should be the same.

vikas027 05-12-2010 09:58 PM

Quote:

Originally Posted by retired1af (Post 3965807)
Actually, you can change the MAC address of your NIC. ;) However, you are correct in stating that it can not be converted to an IP address.

How can we change this, could you please elaborate me ?

TB0ne 05-13-2010 06:26 AM

Quote:

Originally Posted by vikas027 (Post 3966514)
How can we change this, could you please elaborate me ?

Read the man page on ifconfig. Pay attention to the "hw" flag. You just specify the new HW (MAC) address on the command line.

jefro 05-13-2010 03:28 PM

Use wireshark.


All times are GMT -5. The time now is 11:45 AM.