- Convert IP address into binary. Note that the first 4 bits are always 1110.
- Replace first 4 bits with 0100.5e
- Replace the next 5 bits with 0
- Copy the last 23 bits of the binary IP address
- 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