Following is an example showing how to convert a 32-bit binary IP address to dotted decimal format.
Convert the binary address 01011001000111011100110000011000.
-
First break the address into 8-bit octets:
Octet 1: 01011001
Octet 2: 00011101
Octet 3: 11001100
Octet 4: 00011000
-
Convert each octet to a decimal number.
Table 4.2. Converting a Binary Address to Dotted Decimal Format
Octet
Binary Value
Calculation
Decimal Value
1
01011001
1+8+16+64
89
2
00011101
1+4+8+16
29
3
11001100
4+8+64+128
204
4
00011000
8+16
24
-
Write out the decimal equivalent values in order from left to right. Separate the values with periods:
The address is: 89.29.204.24
No comments:
Post a Comment