Pages

Tuesday, March 1, 2011

Multicast MAC address conversion

Multicast MAC address starts with 0100.5e and the range is from 0100.5e00.0000 through 0100.5e7f.ffff. Here is how we convert multicast IP address to MAC address.

  1. Convert IP address into binary. Note that the first 4 bits are always 1110.
  2. Replace first 4 bits with 0100.5e
  3. Replace the next 5 bits with 0
  4. Copy the last 23 bits of the binary IP address 
  5. Convert last 24 bits to Hexadecimal digits.

Example 





















Practice

239.1.1.1      
         1110 | 1111 | 0000 | 0001 | 0000 | 0001 | 0000 | 0001

         0100.5e01.0101

224.12.34.45   
         1110 | 0000 | 0000 | 1100 | 0010 | 0010 | 0010 | 1101
         0100.5e0c.222d

235.220.2.1
         1110 | 1011 | 1101 | 1100 | 0000 | 0010 | 0000 | 0001
         0100.5e5c.0201


No comments:

Post a Comment