I'm not sure if this is what you're looking for. Use your PC's built-in scientific calculator to convert between decimal and hex then use the following procedures.
To convert the more common "dotted decimal" IP address into its hex equivalent, convert each of the four groups of numbers in the IP address into hex. If the resulting hex number is only one digit, add a leading zero to it. Then append all four hex numbers together. For example, take the IP address 10.0.2.254. Convert each set of four numbers into hex, and add a leading zero where necessary:
10 = A or 0A
0 = 0 or 00
2 = 2 or 02
254 = FE or FE
Therefore, the IP address 10.0.2.254 in hex is: 0A0002FE
Orlando Palomar Jr
CCIE# 11206, CCNP
CIPT Operations Specialist
Phil-Data Business Systems, Inc.
Converting IP address to MAC address is done dynamically through a protocol called ARP (Address Resolution Protocol). There is no way of "calculating" the MAC address from a given IP address.
ARP just asks (with a broadcast) who has IP address x.x.x.x and the box which has it eventually answers with it's MAC address.
Do a ping to an IP address and when you get a response do "arp -a" to show the corresponding MAC address.
i understand ARP.. but i need to be able to convert multicast IP addresses [224.0.0.0 - 239.255.255.255] to MAC [layer 2] addresses, without any calculations... for instance, Orlando gave a good example.. but how about if it's a Class D type network..?..
thanks all for your help anyway.. i'll scour the web for more information on this..
If I remember this correctly, I think I learned the procedure when I was still studying for my BCMSN. Anyway, you may correct me if I'm wrong. The following (as I remember) is how you convert a multicast address into an L2 MAC address.
It goes something like this:
For instance, for the multicast address 231.11.12.13, the L2 MAC address would be 01-00-5E-0B-0C-0D
Multicast MAC addresses would always start with "01-00-5E". The remaining values are obtained by converting the last three octets and converting them into HEX. (The first octet is dropped).
ie.
11 = 0B
12 = 0C
13 = 0D Orlando Palomar Jr
CCIE# 11206, CCNP
CIPT Operations Specialist
Phil-Data Business Systems, Inc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.