convert ip address to mac-ddress for wireless

Unanswered Question
Jul 30th, 2009
User Badges:

hello guys, i feel really silly for asking this question, but i have forgotten how to convert ip address to mac-address. can some help or provide a link for me to read?

thanks guys

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
dancampb Thu, 07/30/2009 - 10:12
User Badges:
  • Cisco Employee,

Just go to the default gateway for the subnet, ping the IP address you want to find the mac address for, then check the arp table.

sammmmmmm22 Thu, 07/30/2009 - 14:27
User Badges:

Thank but thats is not what i was looking for. I need to know the actual maths. i could do it about 10 months ago, but its all gone from my now :-(


i need to be given an ip address and be able to give the mac-address equivalent of it.

jeromehenry_2 Thu, 07/30/2009 - 14:53
User Badges:
  • Silver, 250 points or more

There is no direct conversion, IP addresses are chosen by the network administrator and can be changed easily, MAC addresses are assigned to each NIC and are not supposed to be changed.

The only exception is multicast addresses, where multicast IP addresses and the equivalent multicast MAC address are related: see here for the conversion rule:

http://routemyworld.com/2009/03/04/ip-multicast-to-mac-address-mapping/


Now what you CAN do is convert your IP address, which is expressed in decimal, into its hex form (the MAC address is in hex format). To do so, convert your IP address to binary (the above link will show you how). Each byte is then 8 digits. Convert each group of 4 digits into its hex form (so 2 hex digits per byte), and you get your IP address in the same format as a MAC address. For example:

10.1.1.10 -> 00001010.00000001.00000001.00001010 -> 0a.01.0a.01 in hex.

A shortcut is to use your Windows calc to convert from decimal to hex...


sammmmmmm22 Thu, 07/30/2009 - 16:58
User Badges:

Thanks, i can see how i was gettting everything upside down now. now i can see it clearly lol

Thanks a mill

Actions

This Discussion