Subnets Practice
Subnets Practice
255.255.0.0
255.255.252.0
11111111.11111111.11111100.00000000 /22 = 1024 hosts -2 = 1022 valid hosts. (Last
borred bit falls on 4 In the magic table)
IP: 172.20.0.0
11111111.11111111.11111111.11000000 / 26
NID2: 192.168.1.128 /26
BID2: 192.168.1.191 / 26
Usable hosts: 192.168.1.129 -> 192.168.1.190
11111111.11111111.11111111.11000000 / 26
NID3: 192.168.1.192 /26
BID3: 192.168.1.255 / 26
Usable hosts: 192.168.1.193 -> 192.168.1.254
-----------------------------------------------------------------------------------
-----
Example 4: 172.24.0.0 /16 ------ 4 netwoks: 5000, 5000, 5000, 5000 hosts.
255.255.0.0
NA: 172.24.0.0 / 19
Subnet Mask: 255.255.224.0
-----------------------------------------------------------------------------------
--------------
1111111.11111111.11111111.00000000 /24
1111111.11111111.11111111.11100000 /27
-----------------------------------------------------------------------------------
--------------------
/16+
NID1:172.16.0.0 -> First network's ID will make everything 0 In the host part!
Always!
BID1:172.16.63.255
NID2:172.16.64.0
BID2:172.16.127.255
NID3:172.16.128.0
BID3:172.16.191.255
NID4:172.16.192.0
BID4:172.16.255.255 -> The last network's broadcast ID will make everything 255 In
the host part! Always!
NID1:10.0.0.0 /9
BID1:10.127.255.255
NID2:10.128.0.0 /9
BID2:10.255.255.255
Ip: 10.20.100.225
Subnet Mask: 255.11000000.00000000.00000000 /10
255.192.0.0 /10
Ip: 172.10.21.21 /24 - Class B, but class B Is /16 that means here 8 bit have
been borrowed.
the 24th bit comes Into the 3rd octet. Now, place value Is 1 and
that
means we need to add 1 to the 3rd octect to keep getting
subsequent network Id.
SM: 255.255.255.0
11111111.11111111.11111111.00000000 /24
NID1: 172.10.0.0
BID1: 172.10.0.255
NID2: 172.10.1.0
BID2: 172.10.1.255
NID3: 172.10.2.0
BID3: 172.10.2.255
.
.
.
until we reach 172.10.21.21
Is this 172.10.21.21 in between the last NID: 172.10.21.0 and Last BID:
172.10.21.255? -> Yes!
11111111.00000000.00000000.00000000 /8
11111111.11111111.11111110.00000000 /23
NID1: 10.0.0.0
BID1: 10.0.1.255
NID2: 10.0.2.0
BID2: 10.0.3.255
NID3: 10.0.4.0
BID3: 10.0.5.255
until:
10.1.254.0 and BID: 10.1.255.255
Next netowork:
10.2.0.0 and BID: 10.2.1.255
10.2.2.0 and BID: 10.2.3.255
Until I reaches
10.210.0.0 and BID: 10.210.1.255
next goes again
10.210.2.0 and BID: 10.210.3.255
10.210.4.0 and BID: 10.210.5.255
'
'
'
Until finally reach In what we are interested:
10.210.170.0 and BID: 10.210.171.255
IMPORTANT: Another way to answers this questions Is: Because we know changes are
happening on the 3rd octect.
We could've started at 10.210.0.0 and BID: 10.210.1.255 and next: 10.210.2.0 and
BID: 10.210.3.255 an so on,
until we reach 10.210.170.0 and BID: 10.210.171.255
===================================================================================
======================
Good examples:
128 64 32 16 8 4 2 1
#1
20.120.47.225/13
13 means 13%8 = 5 so we have to borrow 5 bit in 2nd octet
5 bit means there are 8 network in between, so the answer is :
Network ID : 20.120.0.0
Broadcast ID : 20.127.255.255
#2
220.20.17.5/27
27 means 27%8 = 3 so we have to borrow 3 bit in 4th octet
3 bit means there are 32 network in between, so the answer is :
Network ID : 220.20.17.0
Broadcast ID : 220.20.17.31
#3
10.10.7.17/19
19 means 19%8 = 3 so we have to borrow 3 bit in 3rd octet
3 bit means there are 32 network in between, so the answer is :
Network ID : 10.10.0.0
Broadcast ID : 10.10.31.255
#4
192.8.3.1/18
18 means 18%8 = 2 so we have to borrow 2 bit in 3rd octet
2 bit means there are 64 network in between, so the answer is :
Network ID : 192.8.0.0
Broadcast ID : 192.8.63.255
#5
172.1.4.5/20
20 means 20%8 = 4 so we have to borrow 4 bit in 3rd octet
4 bit means there are 16 network in between, so the answer is :
Network ID : 172.1.0.0
Broadcast ID : 172.1.15.255
===================================================================================
============================