IP Addressing and Subnetting Guide
IP Addressing and Subnetting Guide
1010100
10011000 10001111100
1011100101011100
101100011101001
1011110100011010
00001010010110010
1001010101100111
1111010101000101
1101001101010011
001010010101010
1010101000110010
010101001011000
110101100011010
11010100001011
001010100110
1001010010
IP Addressing
and
Subnetting
Workbook
Version 1.2
11111110
10010101
00011011
10000110
11010011
IP Address Classes
Class A 1 – 127 (Network 127 is reserved for loopback and internal testing)
Leading bit pattern 0 00000000.00000000.00000000.00000000
Network . Host . Host . Host
Class B [Link]
Class C [Link]
1 1 1 1 0 1 1 0
0 0 0 1 0 0 1 1
1 0 0 0 0 0 0 1
0 0 1 1 0 0 0 1
0 1 1 1 1 0 0 0
1 1 1 1 0 0 0 0
0 0 1 1 1 0 1 1
0 0 0 0 0 1 1 1
00011011
10101010
01101111
11111000
00100000
01010101
00111110
00000011
11101101
11000000
1
Decimal To Binary Conversion
Use all 8 bits for each problem
128 64 32 16 8 4 2 1 = 255 Scratch Area
1 1 1 0 1 1 1 0
_________________________________________ 238 238 34
-128 -32
0 0 1 0 0 0 1 0
_________________________________________ 34 110 2
-64 -2
_________________________________________ 123 46 0
-32
_________________________________________ 50 14
-8
_________________________________________ 255 6
-4
_________________________________________ 200 2
-2
_________________________________________ 10 0
_________________________________________ 138
_________________________________________ 1
_________________________________________ 13
_________________________________________ 250
_________________________________________ 107
_________________________________________ 224
_________________________________________ 114
_________________________________________ 192
_________________________________________ 172
_________________________________________ 100
_________________________________________ 119
_________________________________________ 57
_________________________________________ 98
_________________________________________ 179
_________________________________________ 2
2
Address Class Identification
Address Class
[Link] A
_____
[Link] B
_____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
[Link] _____
3
Network & Host Identification
Circle the network portion Circle the host portion of
of these addresses: these addresses:
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
[Link] [Link]
4
Network Addresses
Using the IP address and subnet mask shown write out the network address:
[Link] 188 . 10 . 0 . 0
_____________________________
[Link]
[Link] 10 . 10 . 48 . 0
_____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
5
Host Addresses
Using the IP address and subnet mask shown write out the host address:
[Link] 0 . 0 . 18 . 2
_____________________________
[Link]
[Link] 0 . 0 . 0 . 80
_____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
[Link] _____________________________
[Link]
6
Default Subnet Masks
Write the correct default subnet mask for each of the following addresses:
[Link] 255 . 0 . 0 . 0
_____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
[Link] _____________________________
7
ANDING With
Default subnet masks
Every IP address must be accompanied by a subnet mask. By now you should be able to look
at an IP address and tell what class it is. Unfortunately your computer doesn’t think that way.
For your computer to determine the network and subnet portion of an IP address it must
“AND” the IP address with the subnet mask.
ANDING Equations:
1 AND 1 = 1
1 AND 0 = 0
0 AND 1 = 0
0 AND 0 = 0
Sample:
Address Class: C
Network Portion: 192 . 100 . 10 . 33
Host Portion: 192 . 100 . 10 . 33
In order for you computer to get the same information it must AND the IP address with
the subnet mask in binary.
Network Host
ANDING with the default subnet mask allows your computer to figure out the network
portion of the address.
8
ANDING With
Custom subnet masks
When you take a single network such as [Link] and divide it into five smaller networks
([Link], [Link], [Link], [Link], [Link]) the outside
world still sees the network as [Link], but the internal computers and routers see five
smaller subnetworks. Each independent of the other. This can only be accomplished by using
a custom subnet mask. A custom subnet mask borrows bits from the host portion of the
address to create a subnetwork address between the network and host portions of an IP
address. In this example each range has 14 usable addresses in it. The computer must still
AND the IP address against the custom subnet mask to see what the network portion is and
which subnetwork it belongs to.
Sub
Network Network Host
IP Address: 1 1 0 0 0 0 0 0 . 1 1 0 0 1 0 0 . 0 0 0 0 1 0 1 0 . 0 0 1 0 0 0 0 1 (192 . 100 . 10 . 33)
In the next set of problems you will determine the necessary information to determine the
correct subnet mask for a variety of IP addresses.
9
Custom Subnet Masks
Problem 1
Number of needed usable subnets 14
Number of needed usable hosts 14
Network Address [Link]
C
Address class __________
16
Total number of subnets ___________________
14
Number of usable subnets ___________________
16
Total number of host addresses ___________________
14
Number of usable addresses ___________________
4
Number of bits borrowed ___________________
Number of
256 128 64 32 16 8 4 2 - Hosts
Number of
Subnets - 2 4 8 16 32 64 128 256
128 64 32 16 8 4 2 1 - Binary values
192 . 10 . 10 . 0 0 0 0 0 0 0 0
128
16 Observe the total number of
Add the binary value
64 hosts.
numbers to the left of the line to
-2
32
14
create the custom subnet mask. Subtract 2 for the number of
+16
usable hosts.
240
16
-2
Subtract 2 for the total number of
subnets to get the usable number of
14
subnets.
10
Custom Subnet Masks
Problem 2
Number of needed usable subnets 1000
Number of needed usable hosts 60
Network Address [Link]
B
Address class __________
255 . 255 . 0 . 0
Default subnet mask _______________________________
1,024
Total number of subnets ___________________
1,022
Number of usable subnets ___________________
64
Total number of host addresses ___________________
62
Number of usable addresses ___________________
10
Number of bits borrowed ___________________
32,
16,3
4,0
2,0
1,02
8,19
512
536
768
Number of
84
96
48
. 256 128 64 32 16 8 4 2
2
Hosts -
65,
32,
16,3
4,0
102
204
8,19
536
512
Number of
768
84
96
165 . 100 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
128 128
64 +64
32 192 64
Observe the total number of
16 hosts.
Add the binary value
numbers to the left of the line to 8 -2
62
Subtract 2 for the number of
create the custom subnet mask.
4 usable hosts.
2 1024
+1 Subtract 2 for the total number of
-2
255
subnets to get the usable number of
1,022
subnets.
11
Custom Subnet Masks
255 . 255 . 0 . 0
Default subnet mask _______________________________
1,024
Total number of subnets ___________________
1,022
Number of usable subnets ___________________
64
Total number of host addresses ___________________
62
Number of usable addresses ___________________
10
Number of bits borrowed ___________________
32,
16,3
4,0
2,0
1,02
8,19
512
536
768
Number of
84
96
48
. 256 128 64 32 16 8 4 2
2
Hosts -
65,
32,
16,3
4,0
102
204
8,19
536
512
Number of 768
84
96
148 . 75 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
128 128
64 +64
32 192 64
Observe the total number of
16 hosts.
Add the binary value
numbers to the left of the line to 8 -2
62
Subtract 2 for the number of
create the custom subnet mask.
4 usable hosts.
2 1024
+1 Subtract 2 for the total number of
-2
255
subnets to get the usable number of
1,022
subnets.
12
Custom Subnet Masks
Problem 4
Number of needed usable subnets 6
Number of needed usable hosts 30
Network Address [Link]
Number of
256 128 64 32 16 8 4 2 - Hosts
Number of
Subnets - 2 4 8 16 32 64 128 256
128 64 32 16 8 4 2 1 - Binary values
210 . 100 . 56 . 0 0 0 0 0 0 0 0
13
Custom Subnet Masks
Problem 5
Number of needed usable subnets 6
Number of needed usable hosts 30
Network Address [Link]
Number of
256 128 64 32 16 8 4 2 - Hosts
Number of
Subnets - 2 4 8 16 32 64 128 256
128 64 32 16 8 4 2 1 - Binary values
195 . 85 . 8 . 0 0 0 0 0 0 0 0
14
Custom Subnet Masks
Problem 6
Number of needed usable subnets 126
Number of needed usable hosts 131,070
Network Address [Link]
2,09
1,04
52
262
131
65,5
32,7
16,3
4,0
2,0
1,02
4,2
4,30
8,19
8,57
7,15
Number of
,07
,144
512
. 256 128 64 32 16 8 4 2
36
96
48
84
Hosts
68
-
88
2
2
2
4
4
6
1,04
2,09
4,19
262
52
131
65,5
32,7
16,3
1,02
2,0
4,0
4,2
4,30
8,19
8,57
7,15
Number of
,07
,144
512
.
36
48
96
84
68
2
4
4
6
118. 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
15
Custom Subnet Masks
Problem 7
Number of needed usable subnets 2000
Number of needed usable hosts 15
Network Address [Link]
32,
16,3
4,0
2,0
1,02
8,19
512
536
768
Number of
84
96
48
. 256 128 64 32 16 8 4 2
2
Hosts -
65,
32,
16,3
4,0
102
204
8,19
536
512
Number of
768
84
96
178 . 100 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
16
Custom Subnet Masks
Problem 8
Number of needed usable subnets 1
Number of needed usable hosts 45
Network Address [Link]
17
Custom Subnet Masks
Problem 9
Number of needed usable subnets 60
Number of needed usable hosts 1,000
Network Address [Link]
18
Custom Subnet Masks
Problem 10
Number of needed usable hosts 60
Network Address [Link]
19
Custom Subnet Masks
Problem 11
Number of needed usable subnets 250
Network Address [Link]
20
Custom Subnet Masks
Problem 12
Number of needed usable subnets 5
Network Address [Link]
21
Custom Subnet Masks
Problem 13
Number of needed usable hosts 25
Network Address [Link]
22
Custom Subnet Masks
Problem 14
Number of needed usable subnets 10
Network Address [Link]
23
Custom Subnet Masks
Problem 15
Number of needed usable hosts 50
Network Address [Link]
24
Custom Subnet Masks
Problem 16
Number of needed usable hosts 29
Network Address [Link]
25
Subnetting
Problem 1
Number of needed usable subnets 14
Number of needed usable hosts 14
Network Address [Link]
C
Address class __________
16
Total number of subnets ___________________
14
Number of usable subnets ___________________
16
Total number of host addresses ___________________
14
Number of usable addresses ___________________
4
Number of bits borrowed ___________________
26
Show your work for Problem 1 in the space below.
Number of
256 128 64 32 16 8 4 2 - Hosts
Number of
Subnets - 2 4 8 16 32 64 128 256
128 64 32 16 8 4 2 1 - Binary values
192. 10 . 10 . 0 0 0 0 0 0 0 0
128
64
32 16 16
+16 -2 -2
240 14 14
Custom subnet Usable subnets Usable hosts
mask
The binary value of the last bit borrowed is the range. In this
problem the range is 16.
The first address in each subnet range is the subnet
The first and last range of addresses are not usable. number.
The first usable range of addresses is: [Link] to The last address in each subnet range is the subnet
[Link]. broadcast address.
27
Subnetting
Problem 2
Number of needed usable subnets 1000
Number of needed usable hosts 60
Network Address [Link]
B
Address class __________
255 . 255 . 0 . 0
Default subnet mask _______________________________
1,024
Total number of subnets ___________________
1,022
Number of usable subnets ___________________
64
Total number of host addresses ___________________
62
Number of usable addresses ___________________
10
Number of bits borrowed ___________________
28
65,
32,
16,3
4,0
2,0
8,19
1,02
Number of
768
84
96
48
4
512
536
Hosts - . 256 128 64 32 16 8 4 2
65,
32,
16,3
4,0
8,19
102
204
Number of
512
96
84
768
4
8
2
536
Subnets - 2 4 8 16 32 64 128 256.
Binary values - 128 64 32 16 8 4 2 1 . 128 64 32 16 8 4 2 1
165 . 100 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
64 .
(Invalid range) 0 [Link] to [Link]
Usable -2 1 [Link] to [Link]
128
hosts 62 1 0 [Link] to [Link]
1024 64 1 1 [Link] to [Link]
Usable -2 32
16 1 . 0 0 [Link] to [Link]
subnets 1,022
1 . 0 1 [Link] to [Link]
8 1 . 1 0 [Link] to [Link]
4 1 . 1 1 [Link] to [Link]
128 2
Custom
1 0 . 0 0 [Link] to [Link]
subnet mask +64 +1
192 255 1 0 . 0 1 [Link] to [Link]
1 0 . 1 0 [Link] to [Link]
1 0 . 1 1 [Link] to [Link]
The binary value of the last bit borrowed is
the range. In this problem the range is 64.
1 1 . 0 0 [Link] to [Link]
The first and last range of addresses are not 1 1 . 0 1 [Link] to [Link]
usable.
1 1 . 1 0 [Link] to [Link]
The first usable range of addresses is: 1 1 . 1 1 [Link] to [Link]
[Link] to [Link]
Show your work for Problem 2 in the space below.
29
(Invalid range) [Link] to [Link]
Subnetting
Problem 3
Number of needed usable subnets 1
Network Address [Link]
30
Show your work for Problem 3 in the space below.
Number of
256 128 64 32 16 8 4 2 - Hosts
Number of
Subnets - 2 4 8 16 32 64 128 256
128 64 32 16 8 4 2 1 - Binary values
195. 223 . 50 . 0 0 0 0 0 0 0 0
31
Subnetting
Problem 4
Number of needed usable subnets 750
Network Address [Link]
32
Show your work for Problem 4 in the space below.
33
Subnetting
Problem 5
Number of needed usable hosts 6
Network Address [Link]
34
Show your work for Problem 5 in the space below.
34
Subnetting
Problem 6
Number of needed usable subnets 10
Network Address [Link]
36
Show your work for Problem 6 in the space below.
37
Subnetting
Problem 7
Network Address [Link] /16
38
Show your work for Problem 7 in the space below.
39
Subnetting
Problem 8
Number of needed usable subnets 4
Network Address [Link]
40
Show your work for Problem 8 in the space below.
41
Subnetting
Problem 9
Number of needed usable hosts 28
Network Address [Link]
42
Show your work for Problem 9 in the space below.
43
Subnetting
Problem 10
Number of needed usable subnets 45
Network Address [Link]
44
Show your work for Problem 10 in the space below.
45
Subnetting
Problem 11
Number of needed usable hosts 8,000
Network Address [Link]
46
Show your work for Problem 11 in the space below.
47
Subnetting
Problem 12
Number of needed usable hosts 45
Network Address [Link]
48
Show your work for Problem 12 in the space below.
49
Subnetting
Problem 13
Network Address [Link] /26
50
Show your work for Problem 13 in the space below.
51
Subnetting
Problem 14
Number of needed usable hosts 16
Network Address [Link]
52
Show your work for Problem 14 in the space below.
53
Subnetting
Problem 15
Network Address [Link] \19
54
Show your work for Problem 15 in the space below.
55
Valid and Non-Valid IP Addresses
Using the material in this workbook identify which of the addresses below are correct and
usable. If they are not usable addresses explain why.
IP Address: [Link] OK
________________________________
Subnet Mask: [Link] ________________________________