Ip Addressing and Subnetting Workbook-Student-V2.0
Ip Addressing and Subnetting Workbook-Student-V2.0
IP
101
11111
11
111
1 11
1 11
1111111
11 1 11 1
11 11
1111 1
111 11
11111 1
1111
111
1 11
Addressing
and
Subnetting
Workbook
Version 2.0
10010101
00011011 10000110
11010011 Student Name:
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 C 255.255.255.0
Inside Cover
Binary To Decimal Conversion
128 64 32 16 8 4 2 1 Answers Scratch Area
1 0 0 1 0 0 1 0 146 128 64
16 32
0 1 1 1 0 1 1 1 119 2 16
146 4
1 1 1 1 1 1 1 1 2
1
1 1 0 0 0 1 0 1 119
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
10.250.1.1 A
_____
_____
150.10.15.0 B
192.14.2.0 _____
148.17.9.1 _____
193.42.1.1 _____
126.8.156.0 _____
220.200.23.1 _____
230.230.45.58 _____
177.100.18.4 _____
119.18.45.0 _____
249.240.80.78 _____
199.155.77.56 _____
117.89.56.45 _____
215.45.45.0 _____
199.200.15.0 _____
95.0.21.90 _____
33.0.0.0 _____
158.98.80.0 _____
219.21.56.0 _____ 3
Network & Host Identification
Circle the network portion Circle the host portion of
of these addresses: these addresses:
177.100.18.4 10.15.123.50
119.18.45.0 171.2.199.31
209.240.80.78 198.125.87.177
199.155.77.56 223.250.200.222
117.89.56.45 17.45.222.45
215.45.45.0 126.201.54.231
192.200.15.0 191.41.35.112
95.0.21.90 155.25.169.227
33.0.0.0 192.15.155.2
158.98.80.0 123.102.45.254
217.21.56.0 148.17.9.155
10.250.1.1 100.25.1.1
150.10.15.0 195.0.21.98
192.14.2.0 25.250.135.46
148.17.9.1 171.102.77.77
193.42.1.1 55.250.5.5
126.8.156.0 218.155.230.14
220.200.23.1 10.250.1.1
4
Network Addresses
Using the IP address and subnet mask shown write out the network address:
188.10.18.2 188.10.0.0
_____________________________
255.255.0.0
10.10.48.80 10.10.48.0
_____________________________
255.255.255.0
192.149.24.191 _____________________________
255.255.255.0
150.203.23.19 _____________________________
255.255.0.0
10.10.10.10 _____________________________
255.0.0.0
186.13.23.110 _____________________________
255.255.255.0
223.69.230.250 _____________________________
255.255.0.0
200.120.135.15 _____________________________
255.255.255.0
27.125.200.151 _____________________________
255.0.0.0
199.20.150.35 _____________________________
255.255.255.0
191.55.165.135 _____________________________
255.255.255.0
28.212.250.254 _____________________________
255.255.0.0
5
Host Addresses
Using the IP address and subnet mask shown write out the host address:
188.10.18.2 0.0.18.2
_____________________________
255.255.0.0
10.10.48.80 0.0.0.80
_____________________________
255.255.255.0
222.49.49.11 _____________________________
255.255.255.0
128.23.230.19 _____________________________
255.255.0.0
10.10.10.10 _____________________________
255.0.0.0
200.113.123.11 _____________________________
255.255.255.0
223.169.23.20 _____________________________
255.255.0.0
203.20.35.215 _____________________________
255.255.255.0
117.15.2.51 _____________________________
255.0.0.0
199.120.15.135 _____________________________
255.255.255.0
191.55.165.135 _____________________________
255.255.255.0
48.21.25.54 _____________________________
255.255.0.0
6
Default Subnet Masks
Write the correct default subnet mask for each of the following addresses:
177.100.18.4 255.255.0.0
_____________________________
119.18.45.0 255.0.0.0
_____________________________
191.249.234.191 _____________________________
223.23.223.109 _____________________________
10.10.250.1 _____________________________
126.123.23.1 _____________________________
223.69.230.250 _____________________________
192.12.35.105 _____________________________
77.251.200.51 _____________________________
189.210.50.1 _____________________________
88.45.65.35 _____________________________
128.212.250.254 _____________________________
193.100.77.83 _____________________________
125.125.250.1 _____________________________
1.1.10.50 _____________________________
220.90.130.45 _____________________________
134.125.34.9 _____________________________
95.250.91.99 _____________________________
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:
1AND1=1
1AND0=0
0AND1=0
0AND0=0
Sample:
IP Address: 192.100.10.33
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 192.100.10.0 and divide it into five smaller
networks (192.100.10.16, 192.100.10.32, 192.100.10.48, 192.100.10.64, 192.100.10.80)
the outside world still sees the network as 192.100.10.0, 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.
IP Address: 192.100.10.0
Custom Subnet Mask: 255.255.255.240
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
How to determine the number of subnets and
the number of hosts per subnet
Two formulas can provide this basic information:
s s
Number of subnets = 2 (Second subnet formula: Number of subnets = 2 - 2)
h
Number of hosts per subnet = 2 - 2
Both formulas calculate the number of hosts or subnets based on the number of binary
bits used. For example if you borrow three bits from the host portion of the address use
the number of subnets formula to determine the total number of subnets gained by
3
borrowing the three bits. This would be 2 or 2 x 2 x 2 = 8 subnets
To determine the number of hosts per subnet you would take the number of binary bits
used in the host portion and apply this to the number of hosts per subnet formula If five
5
bits are in the host portion of the address this would be 2 or 2 x 2 x 2 x 2 x 2 = 32 hosts.
When dealing with the number of hosts per subnet you have to subtract two addresses
from the range. The first address in every range is the subnet number. The last address
in every range is the broadcast address. These two addresses cannot be assigned to
any device in the network which is why you have to subtract two addresses to find the
number of usable addresses in each range.
For example if two bits are borrowed for the network portion of the address you can easily determine the
number of subnets and hosts per subnets using the two formulas.
195.223.50.0 0 000000
In some instances the first and last subnet range of addresses are reserved. This is similar
to the first and last host addresses in each range of addreses.
The first range of addresses is the zero subnet. The subnet number for the zero
subnet is also the subnet number for the classful subnet address.
The last range of addresses is the broadcast subnet. The broadcast address for the
last subnet in the broadcast subnet is the same as the classful broadcast address.
10
Class C Address unsubnetted:
195. 223 . 50 . 0
195.223.50.0 to 195.223.50.255
Notice that the subnet and
Class C Address subnetted (2 bits borrowed): broadcast addresses match.
195.223.50.0 0 000000
The primary reason the the zero and broadcast subnets were not used had to do pirmarily with
the broadcast addresses. If you send a broadcast to 195.223.255 are you sending it to all 255
addresses in the classful C address or just the 62 usable addresses in the broadcast range?
The CCNA and CCENT certification exams may have questions which will require you to
determine which formula to use, and whehter or not you can use the first and last subnets.
Use the chart below to help decide.
Bottom line for the CCNA exams; if a question does not give you any clues as to whether or
not to allow these two subnets, assume you can use them.
s
This workbook has you use the number of subnets = 2 formula.
11
Custom Subnet Masks
Problem 1
Number of needed subnets 14
Number of needed usable hosts 14
Network Address 192.10.10.0
Address class __________
C
Default subnet mask 255.255.255.0
_______________________________
Custom subnet mask 255 . 255 . 255 . 240
_______________________________
Total number of subnets ___________________
16
Total number of host addresses ___________________
16
Number of usable addresses ___________________
14
Number of bits borrowed ___________________
4
Show your work for Problem 1 in the space below.
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
create the custom subnet mask. 32 Subtract 2 for the number of
14
+16 usable hosts.
240
12
Custom Subnet Masks
Problem 2
Number of needed subnets 1000
Number of needed usable hosts 60
Network Address 165.100.0.0
Address class __________
B
Default subnet mask _______________________________
255.255.0.0
Custom subnet mask 255 . 255 . 255 . 192
_______________________________
Total number of subnets ___________________
1,024
Total number of host addresses ___________________
64
Number of usable addresses ___________________
62
Number of bits borrowed ___________________
10
Show your work for Problem 2 in the space below.
65,53632,76816,3848,1924,0962,0481,024512
Number of
. 256 128 64 32 16 8 4 2
Hosts -
16,38432,76865,536
Number of
Subnets - 2 4 8 16 32 64 128 256.
512102420484,0968,192
Binary values - 128 64 32 16 8 4 2 1. 128 64 32 16 8 4 2 1
Number of
. 256 128 64 32 16 8 4 2
Hosts -
16,38432,76865,536
Number of
Subnets - 2 4 8 16 32 64 128 256.
512102420484,0968,192
Binary values - 128 64 32 16 8 4 2 1. 128 64 32 16 8 4 2 1
148.75.0 0 0 0 0 0 00.00000000
128 128
64 +64
32 192 64 hosts.Observe the total number of
Add the binary value
16 -2 Subtract 2 for the number of
numbers to the left of the line to 8
create the custom subnet mask. 4 62 usable hosts.
2
1024
+1 Subtract 2 for the total number of
-2 subnets to get the usable number of
255 subnets.
1,022
14
Custom Subnet Masks
Problem 4
Number of needed subnets 6
Number of needed usable hosts 30
Network Address 195.85.8.0
195.85.8. 0 0 0 0 0 0 0 0
15
Custom Subnet Masks
Problem 5
Number of needed subnets 6
Number of needed usable hosts 30
Network Address 210.100.56.0
210.100.56. 0 0 0 0 0 0 0 0
16
Custom Subnet Masks
Problem 6
Number of needed subnets 126
Number of needed usable hosts 131,070
Network Address 118.0.0.0
4,194,3042,097,1521,048,576524,288262,144131,07265,536
Number of Hosts
32,76816,3848,1924,0962,0481,024512
. 256 128 64 32 16 8 4 2
-
Number of 65,536 131,072262,144524,2881,048,5762,097,1524,194,304
118.00000000.00000000.00000000
17
Custom Subnet Masks
Problem 7
Number of needed subnets 2000
Number of needed usable hosts 15
Network Address 178.100.0.0
65,53632,76816,3848,1924,0962,0481,024512
Number of
.256128 6432 16 8 4 2
Hosts -
16,38432,76865,536
Number of
Subnets - 2 4 8 16 32 64 128 256.
512102420484,0968,192
Binary values - 128 64 32 16 8 4 2 1. 128 64 32 16 8 4 2 1
178.100.00000000.00000000
18
Custom Subnet Masks
Problem 8
Number of needed subnets 3
Number of needed usable hosts 45
Network Address 200.175.14.0
19
Custom Subnet Masks
Problem 9
Number of needed subnets 60
Number of needed usable hosts 1,000
Network Address 128.77.0.0
20
Custom Subnet Masks
Problem 10
Number of needed usable hosts 60
Network Address 198.100.10.0
21
Custom Subnet Masks
Problem 11
Number of needed subnets 250
Network Address 101.0.0.0
22
Custom Subnet Masks
Problem 12
Number of needed subnets 5
Network Address 218.35.50.0
23
Custom Subnet Masks
Problem 13
Number of needed usable hosts 25
Network Address 218.35.50.0
24
Custom Subnet Masks
Problem 14
Number of needed subnets 10 Network
Address 172.59.0.0
25
Custom Subnet Masks
Problem 15
Number of needed usable hosts 50 Network
Address 172.59.0.0
26
Custom Subnet Masks
Problem 16
Number of needed usable hosts 29
Network Address 23.0.0.0
27
Subnetting
Problem 1
Number of needed subnets 14
Number of needed usable hosts 14
Network Address 192.10.10.0
Address class __________
C
Default subnet mask 255.255.255.0
_______________________________
Custom subnet mask 255 . 255 . 255 . 240
_______________________________
Total number of subnets ___________________
16
Total number of host addresses ___________________
16
Number of usable addresses ___________________
14
Number of bits borrowed ___________________
4
28
Show your work for Problem 1 in the space below.
192.10.10.0 0 0 0 0 0 0 0
(1) 0 0 0 0 192.10.10.0 to 192.10.10.15
(2) 0 0 0 1 192.10.10.16 to 192.10.10.31
(3) 0 0 1 0 192.10.10.32 to 192.10.10.47
(4) 0 0 1 1 192.10.10.48 to 192.10.10.63
(5) 0 1 0 0 192.10.10.64 to 192.10.10.79
(6) 0 1 0 1 192.10.10.80 to 192.10.10.95
(7) 0 1 1 0 192.10.10.96 to 192.10.10.111
(8) 0 1 1 1 192.10.10.112 to 192.10.10.127
(9) 1 0 0 0 192.10.10.128 to 192.10.10.143
(10) 1 0 0 1 192.10.10.144 to 192.10.10.159
(11) 1 0 1 0 192.10.10.160 to 192.10.10.175
(12) 1 0 1 1 192.10.10.176 to 192.10.10.191
(13) 1 1 0 0 192.10.10.192 to 192.10.10.207
(14) 1 1 0 1 192.10.10.208 to 192.10.10.223
(15) 1 1 1 0 192.10.10.224 to 192.10.10.239
(16) 1 1 1 1 192.10.10.240 to 192.10.10.255
128
64 16
32 16
Custom subnet
+16 Usable subnets
-2 -2
240 14
mask
Usable hosts 14
The binary value of the last bit borrowed is the range. In this
problem the range is 16.
Problem 2
Number of needed subnets 1000
Number of needed usable hosts 60
Network Address 165.100.0.0
Address class __________
B
Default subnet mask _______________________________
255.255.0.0
Custom subnet mask 255 . 255 . 255 . 192
_______________________________
Total number of subnets ___________________
1,024
Total number of host addresses ___________________
64
Number of usable addresses ___________________
62
Number of bits borrowed ___________________
10
30
65,536 32,768 16,384 8,192 4,096 2,048 1,024 512
Number of . 256 128 64 32 16 8 4 2
Hosts -
1024 2048 4,096 8,192 16,384 32,768 65,536
Number of 512
32
Show your work for Problem 3 in the space below.
256 128 64 32 16 8 4 2 - Number of
Number of Hosts
195. 223 . 50 . 0 0 0 0 0 0 0 0
33
Subnetting
Problem 4
Number of needed subnets 750
Network Address 190.35.0.0
34
Show your work for Problem 4 in the space below.
35
Subnetting
Problem 5
Number of needed usable hosts 6 Network
Address 126.0.0.0
36
Show your work for Problem 5 in the space below.
37
Subnetting
Problem 6
Number of needed subnets 10
Network Address 192.70.10.0
38
Show your work for Problem 6 in the space below.
39
Subnetting
Problem 7
Network Address 10.0.0.0 /16
40
Show your work for Problem 7 in the space below.
41
Subnetting
Problem 8
Number of needed subnets 5
Network Address 172.50.0.0
42
Show your work for Problem 8 in the space below.
43
Subnetting
Problem 9
Number of needed usable hosts 28 Network
Address 172.50.0.0
44
Show your work for Problem 9 in the space below.
45
Subnetting
Problem 10
Number of needed subnets 45
Network Address 220.100.100.0
46
Show your work for Problem 10 in the space below.
47
Subnetting
Problem 11
Number of needed usable hosts 8,000
Network Address 135.70.0.0
48
Show your work for Problem 11 in the space below.
49
Subnetting
Problem 12
Number of needed usable hosts 45
Network Address 198.125.50.0
50
Show your work for Problem 12 in the space below.
51
Subnetting
Problem 13
Network Address 165.200.0.0 /26
52
Show your work for Problem 13 in the space below.
53
Subnetting
Problem 14
Number of needed usable hosts 16
Network Address 200.10.10.0
54
Show your work for Problem 14 in the space below.
55
Subnetting
Problem 15
Network Address 93.0.0.0 \19
56
Show your work for Problem 15 in the space below.
57
Practical Subnetting 1
Based on the information in the graphic shown, design a network addressing scheme that
will supply the minimum number of subnets, and allow enough extra subnets and hosts
for 100% growth in both areas. Circle each subnet on the graphic and answer the
questions below.
IP Address 172.16.0.0
F0/0
Router A S0/0/0 S0/0/1 F0/1
F0/0 Router B
Marketing Management
172.16.0 0 0 00000.00000000
x1.0
60
59
Practical Subnetting 2
Based on the information in the graphic shown, design a network addressing scheme that
will supply the minimum number of hosts per subnet, and allow enough extra subnets
and hosts for 30% growth in all areas. Circle each subnet on the graphic and answer the
questions below.
IP Address 135.126.0.0
F0/0 S0/0/0 S0/0/1
Router A
F0/1 Router C
20 Hosts
Science Lab
10 Hosts English Department
15 Hosts B
Address class
Custom subnet mask 255.255.255.224
5
Minimum number of subnets needed _________
Hosts -
512 1024 2048 4,096 8,192 16,384 32,768 65,536
Number of
S0/0/1
Router A
F0/0 Sales
Administrative
Router B 185 Hosts
Marketing
50 Hosts
62
Show your work for Problem 3 in the space below.
63
Practical Subnetting 4
Based on the information in the graphic shown, design a network addressing scheme that will
supply the minimum number of subnets, and allow enough extra subnets and hosts for 70%
growth in all areas. Circle each subnet on the graphic and answer the questions below.
IP Address 135.126.0.0
F0/0 S0/0/0 S0/0/1
Router A
S0/0/1
F0/0Router B
S0/0/0
65
Practical Subnetting 5
Based on the information in the graphic shown, design a network addressing scheme that
will supply the minimum number of hosts per subnet, and allow enough extra subnets
and hosts for 100% growth in all areas. Circle each subnet on the graphic and answer the
questions below.
IP Address 210.15.10.0
F0/0 F0/1
10 Hosts 18 Hosts
English classroom
Art Classroom
15 Hosts
12 Hosts
66
Show your work for Problem 5 in the space below.
67
Practical Subnetting 6
Based on the information in the graphic shown, design a network addressing scheme that will
supply the minimum number of subnets, and allow enough extra subnets and hosts for 20%
growth in all areas. Circle each subnet on the graphic and answer the questions below.
Science Building
225 Hosts
68
Show your work for Problem 6 in the space below.
69
Practical Subnetting 7
Based on the information in the graphic shown, design a network addressing scheme that
will supply the minimum number of hosts per subnet, and allow enough extra subnets
and hosts for 125% growth in all areas. Circle each subnet on the graphic and answer the
questions below.
IP Address 177.135.0.0 S0/0/0
Router A S0/0/0 F0/0
F0/0 Router B
F0/1
Administration
Research Deployment
Marketing 33 Hosts Sales 135 Hosts 63 Hosts
75 Hosts 255 Hosts
Address class _____________________________
Custom subnet mask _____________________________
Minimum number of subnets needed _________
+_________
Extra subnets required for 125% growth
(Round up to the next whole number)
=_________
Total number of subnets needed
70
Show your work for Problem 7 in the space below.
71
Practical Subnetting 8
Based on the information in the graphic shown, design a network addressing scheme that will
supply the minimum number subnets, and allow enough extra subnets and hosts for 85%
growth in all areas. Circle each subnet on the graphic and answer the questions below.
IP Address 192.168.1.0
F0/0 S0/0/0 F0/1
Router A
S0/0/1
F0/0 Router B
New York
8 Hosts
Boston
72
Show your work for Problem 8 in the space below.
73
Practical Subnetting 9
Based on the information in the graphic shown, design a network addressing scheme that
will supply the minimum number of hosts per subnet, and allow enough extra subnets
and hosts for 15% growth in all areas. Circle each subnet on the graphic and answer the
questions below.
IP Address 148.55.0.0
S0/0/0 S0/0/1 F0/1
Router A
Router B
S0/0/1 F0/0
S0/0/0 Dallas
Router C
1500 Hosts
F0/0 S0/0/1
Router D S0/0/0
75
Practical Subnetting 10
Based on the information in the graphic shown, design a network addressing scheme that will
supply the minimum number of subnets, and allow enough extra subnets and hosts for
110% growth in all areas. Circle each subnet on the graphic and answer the questions below.
IP Address 172.16.0.0
Sales Marketing
56 Hosts
115 Hosts
F0/0 S0/0/0 F0/0
Router A
S0/0/1
Router B
F0/1
Management Research
25 Hosts 35 Hosts
77
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.
79
Visualizing Subnets Using
The Box Method
/24
255.255.255.0
256 Hosts
1 Subnet
/25
255.255.255.128
128 Hosts
2 Subnets
/26
255.255.255.192
64 Hosts
4 Subnets
80
Split each individual square and you
get eight subnets with 32 addresses,
/27
255.255.255.224
32 Hosts
8 Subnets
Split the boxes in half again and
you get sixteen subnets with
sixteen addresses,
/28
255.255.255.240
16 Hosts
16 Subnets
The next split gives you thirty two
subnets with eight addresses,
/29
255.255.255.248
8 Hosts
32 Subnets
The last split gives sixty four subnets
with four addresses each,
/30
255.255.255.252
4 Hosts
64 Subnets
81
Class A Addressing Guide
# of Bits Subnet Total # of Total # of Usable # of
____
____
____
____
____
____
____
____
CIDR
____
____
__
82
Inside Cover