Using a Conversion Chart
Now you understand the basics of how decimal and binary work
and how to convert between the two. You also know a few rules you must follow
when converting IP addresses between the two formats.
You can always use a calculator to do the math of converting a
decimal number to binary, or vice versa. Because IP addresses only use decimal
numbers between 0 and 255, you can also use a binary/decimal conversion chart. A
binary/decimal conversion chart simply lists decimal numbers along with their
binary equivalents. That way, you can look in the chart and find the numbers
without using all the math covered earlier in this appendix.
For instance, to convert 100.235.1.1 to binary, you could look
in the chart and find the decimal number 100. Beside it, you would find the
8-bit binary number 01100100. You would simply write those digits down as the
first 8 binary digits. Next, you would find 235 in the chart, find the binary
value beside itnamely 11101011and write that down.
You can also use the chart to convert from binary IP addresses
to decimal. You follow the same algorithm, but instead of doing the math, you
find the 8-bit binary number in the chart and record the decimal number beside
it as the value of the IP address in that octet.
Table B-17 lists a
binary/decimal conversion chart for your reference. Note that all the binary
numbers are shown as 8-digit numbers, because when they're used for converting
IP addresses, you will want a full 8 bits for each octet.