Create
Learn
Share

IP Addresses And Netmasking

rename
Updated 2007-02-02 23:31

IP Addresses and Net Masking

These tables are meant to make converting IP Addresses and calculating netmasks easier.

 

First thing to know is converting IP Address Octets to their binary counterparts. Each octet of an IP Address can be translated into an eight bit binary number. There are a lot of easy ways to remember this, and this is the method that is easiest for myself. Each position in the 8 bits represents a power of 2 (Binary is base 2, after all) In the eight bit numbers you will be working with you have the following powers

Eight bit binary power flashcards

PositionBinary
000000000 (This is 2 ^ 0)
000000011 (This is 2 ^ 1)
000000102 (This is 2 ^ 2)
000001004 (This is 2 ^ 3)
000010008 (This is 2 ^ 4)
0001000016 (This is 2 ^ 5)
0010000032 (This is 2 ^ 6)
0100000064 (This is 2 ^ 7)
10000000128 (This is 2 ^ 8)
memorize

 

You will notice that a "1" bit in each position represents a power of the base. In this case we are working in binary, or base 2, with 8 bits, so we have the powers of 0, 1, 2, 4, 8, 16, 32, 64, and 128.

 

Another good method to help with calculating IP address octet conversions, is to memorize the addition tables in multiples of the previously stated powers of 2. Here is a flashcard table to get you started on that.

Basic addition in powers of base 2

ProblemSolution
128 + 64192
128 + 32160
128 + 16144
128 + 8136
128 + 4132
128 + 2130
128 + 1129
64 + 3296
64 + 1680
64 + 872
64 + 468
64 + 266
64 + 165
32 + 1648
32 + 840
32 + 436
32 + 234
32 + 133
16 + 824
16 + 420
16 + 218
16 + 117
8 + 412
8 + 210
8 + 19
4 + 26
4 + 15
2 + 13
memorize

 

That was easy. Lets move on to a more challenging topic. We are now going to jump right in and test your ability to translate IP Addresses to their eight bit binary representation. If you are not very good at this yet, don't worry. There is more practice to come, this is just a tester for your own sake, to get an idea of about where you are currently.

Sample IP Address conversions

Below are a few examples of random IP Addresses for you to practice converting.

 

IP ADDRESSBinary Representation
192.168.0.1 11000000.10101000.00000000.00000001
192.168.1.0 11000000.10101000.00000001.00000000
127.0.0.1 01111111.00000000.00000000.00000001
10.10.10.1 00001010.00001010.00001010.00000001
255.255.255.0 11111111.11111111.11111111.00000000
164.128.192.1 10100100.10000000.11000000.00000001
192.168.14.5 11000000.10101000.00001110.00000101
10.124.244.12 00001010.01111100.11110100.00001100
134.51.79.167 10000110.00110011.01001111.10100111
66.98.224.78 01000010.01100010.11100000.01001110
232.224.91.10 11101000.11100000.01011011.00001010
memorize