1.1 Day 14 Slides - Subnetting (Part 2)
1.1 Day 14 Slides - Subnetting (Part 2)
1.1 Day 14 Slides - Subnetting (Part 2)
Subnetting (Part 2)
Things we’ll cover
●
Subnetting practice questions (Class C networks)
●
Subnetting Class B networks
Subnetting
45 hosts 45 hosts
SW1 SW3
R1
45 hosts 45 hosts
SW2 SW4
192.168.1.0/24
Divide the 192.168.1.0/24 network into four subnets
that can accommodate the number of hosts required.
QUIZ
The first subnet (Subnet 1) is 192.168.1.0/26. What are the remaining
subnets?
HINT: Find the broadcast address of Subnet 1. The next address is the
network address of Subnet 2. Repeat the process for Subnets 3 and 4.
Subnet 1: Subnet 3:
192.168.1.0/26 ( )/26
Subnet 2: Subnet 4:
( )/26 ( )/26
192.168.1.0/24
Subnet 1
Subnet 1: 192.168.1.0/26
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 0 0 0 0 0 0 0
192 . 168 . 1 . 0
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 0 1 1 1 1 1 1
192 . 168 . 1 . 63
192.168.1.0 – 192.168.1.63
Subnet 2
Subnet 2: 192.168.1.64/26
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 1 0 0 0 0 0 0
192 . 168 . 1 . 64
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 0 1 1 1 1 1 1 1
192.168.1.64 – 192.168.1.127
Subnet 3
Subnet 3: 192.168.1.128/26
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 1 0 0 0 0 0 0 0
192 . 168 . 1 . 128
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 1 0 1 1 1 1 1 1
192.168.1.128 – 192.168.1.191
Subnet 4
Subnet 4: 192.168.1.192/26
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 1 1 0 0 0 0 0 0
192 . 168 . 1 . 192
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 0 0 1 . 1 1 1 1 1 1 1 1
192.168.1.192 – 192.168.1.255
QUIZ
The first subnet (Subnet 1) is 192.168.1.0/26. What are the remaining
subnets?
HINT: Find the broadcast address of Subnet 1. The next address is the
network address of Subnet 2. Repeat the process for Subnets 3 and 4.
Subnet 1: Subnet 3:
192.168.1.0/26 192.168.1.128/26
Subnet 2: Subnet 4:
192.168.1.64/26 192.168.1.192/26
192.168.1.0/24
Subnetting Trick
192 . 168 . 1 . 0
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
NETWORK HOST
PORTION PORTION
Subnetting Trick
192.168.1.64/26
192 . 168 . 1 . 64
128 64 32 16 8 4 2 1
0 1 0 0 0 0 0 0
NETWORK HOST
PORTION PORTION
Subnetting Trick
192.168.1.128/26
128 64 32 16 8 4 2 1
1 0 0 0 0 0 0 0
NETWORK HOST
PORTION PORTION
Subnetting Trick
192.168.1.192/26
128 64 32 16 8 4 2 1
1 1 0 0 0 0 0 0
NETWORK HOST
PORTION PORTION
QUIZ
The first subnet (Subnet 1) is 192.168.1.0/26. What are the remaining
subnets?
HINT: Find the broadcast address of Subnet 1. The next address is the
network address of Subnet 2. Repeat the process for Subnets 3 and 4.
Subnet 1: Subnet 3:
192.168.1.0/26 192.168.1.128/26
Subnet 2: Subnet 4:
192.168.1.64/26 192.168.1.192/26
192.168.1.0/24
Subnetting
SW1 SW4
Subnet 1:
Subnet 4:
SW2
Subnet 2:
SW5
SW3 R1
Subnet 5:
Subnet 3:
192.168.255.0/24
Divide the 192.168.255.0/24 network into five subnets of
equal size. Identify the five subnets.
Subnetting /24
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0
192 . 168 . 255 . 0
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0
192 . 168 . 255 . 0
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 1 1 1 1 1 1 1 1 . 1 0 0 0 0 0 0 0
192 . 168 . 255 . 128
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0
192 . 168 . 255 . 0
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 1 1 1 1 1 1 1 1 . 0 0 0 0 0 0 0 0
192 . 168 . 255 . 0
128 64 32 16 8 4 2 1
0 0 0 0 0 0 0 0
NETWORK HOST
PORTION PORTION
Subnetting
SW1 SW4
Subnet 1:
Subnet 4:
192.168.255.0/27
192.168.255.96/27
SW2
Subnet 2:
SW5
192.168.255.32/27
SW3 R1
Subnet 5:
Subnet 3: 192.168.255.128/27
192.168.255.64/27
192.168.255.0/24
Subnet 6: 192.168.255.160/27
Subnet 7: 192.168.255.192/27
Divide the 192.168.255.0/24 network into five subnets of
Subnet 8: 192.168.255.224/27
192.168.5.57
Identify the subnet /27
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 1 0 1 . 0 0 1 1 1 0 0 1
192 . 168 . 5 . 57
Identify the subnet /27
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 1 0 1 . 0 0 1 1 1 0 0 1
192 . 168 . 5 . 57
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 0 0 1 0 1 . 0 0 1 0 0 0 0 0
192 . 168 . 5 . 32
Identify the subnet
192.168.5.57
Identify the subnet
192.168.29.219
Identify the subnet /29
1 1 0 0 0 0 0 0 . 1 0 1 0 1 0 0 0 . 0 0 0 1 1 1 0 1 . 1 1 0 1 1 0 1 1
192 . 168 . 29 . 219
Identify the subnet /29
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 1 1 1 0 1 . 1 1 0 1 1 0 1 1
192 . 168 . 29 . 219
1 1 0 0 0.0.0.0 . 1 0 1 0 1 0 0 0 . 0 0 0 1 1 1 0 1 . 1 1 0 1 1 0 0 0
192 . 168 . 29 . 216
Identify the subnet
192.168.29.219
Subnets/Hosts (Class C)
Prefix Length Number of Subnets Number of Hosts
/25 2 126
/26 4 62
/27 8 30
/28 16 14
/29 32 6
/30 64 2
172.16.0.0/16
Subnetting Class B Networks /16
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
2x = number of subnets
(x = number of ‘borrowed’ bits)
Subnetting Class B Networks /17
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 0 0 0 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 0 0 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 0 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 0 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
Subnet mask:
1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 1 . 1 1 1 1 1 1 1 0 . 0 0 0 0 0 0 0 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 0 . 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 0 1 0 . 0 0 0 0 0 0 0 0
172 . 16 . 2 . 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 1 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 4 . 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 0 1 1 0 . 0 0 0 0 0 0 0 0
172 . 16 . 6 . 0
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 0 0 . 0 0 0 0 1 0 0 0 . 0 0 0 0 0 0 0 0
172 . 16 . 8 . 0
Subnetting Class B Networks
You have been given the 172.22.0.0/16 network. You are required to divide the
network into 500 separate subnets. What prefix length should you use?
172.22.0.0/16
Subnetting Class B Networks /25
1 0 1 0 1 1 0 0 . 0 0 0 1 0 1 1 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 22 . 0 . 0
172.18.0.0/16
Subnetting Class B Networks /24
1 0 1 0 1 1 0 0 . 0 0 0 1 0 0 1 0 . 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0
172 . 18 . 0 . 0
172.25.217.192
Identify the subnet /21
1 0 1 0 1 1 0 0 . 0 0 0 1 1 0 0 1 . 1 1 0 1 1 0 0 1 . 1 1 0 0 0 0 0 0
172 . 25 . 217 . 192
1 0 1 0 1 1 0 0 . 0 0 0 1 1 0 0 1 . 1 1 0 1 1 0 0 0 . 0 0 0 0 0 0 0 0
172 . 25 . 216 . 0
Identify the subnet
172.25.217.192
Subnets/Hosts (Class B)
Number Number
Prefix Number Prefix Number
of of
Length of Hosts Length of Hosts
Subnets Subnets
/17 2 32766 /25 512 126
QUIZ
QUIZ QUESTION 1
172.21.111.201
QUIZ QUESTION 3
192.168.91.78
QUIZ QUESTION 4