Subnetting Basics & Practice Lab
Classfull Addressing
Class Format Default Subnet Mask Notation
A network.node.node.node 255.0.0.0 /8
B network.network.node.node 255.255.0.0 /16
C network.network.network.node 255.255.255.0 /24
CIDR – Classless Inter Domain Routing
Subnet Mask CIDR Value
255.0.0.0 /8
255.128.0.0 /9
255.192.0.0 /10
255.224.0.0 /11
255.240.0.0 /12
255.248.0.0 /13
255.252.0.0 /14
255.254.0.0 /15
255.255.0.0 /16
255.255.128.0 /17
255.255.192.0 /18
255.255.224.0 /19
255.255.240.0 /20
255.255.248.0 /21
255.255.252.0 /22
Huawei Technologies (Uganda) Ltd.
255.255.254.0 /23
255.255.255.0 /24
255.255.255.128 /25
255.255.255.192 /26
255.255.255.224 /27
255.255.255.240 /28
255.255.255.248 /29
255.255.255.252 /30
Subnetting the Fast Way (Just answer five questions)
1. How many subnets does the chosen subnet mask produce?
2. How many valid hosts per subnet are available?
3. What are the valid subnets?
4. What’s the broadcast address of each subnet?
5. What are the valid hosts in each subnet?
Subnetting Practice Examples: Class C Addresses
1. 192.168.10.0 /25 Subnet Mask: 255.255.255.128
Solution:
Subnet 0 128
First host 1 129
Last host 126 254
Broadcast 127 25
2. 192.168.1.0 /26 Subnet Mask: 255.255.255.192
Solution:
Subnet 0 64 128 192
First host 1 65 129 193
Last host 62 126 190 254
Broadcast 63 127 191 255
Huawei Technologies (Uganda) Ltd.
PRACTICE ASSIGNMENNT LAB
Subnet Practice #1
Write the subnet, broadcast address, and a valid host range for Question 1 through Question 6.
Then answer the remaining questions.
1. 192.168.100.25/30
2. 192.168.100.37/28
3. 192.168.100.66/27
4. 192.168.100.17/29
5. 192.168.100.99/26
6. 192.168.100.99/25
7. You have a Class B network and need 29 subnets. What is your mask?
8. What is the broadcast address of 192.168.192.10/29?
9. How many hosts are available with a Class C /29 mask?
10. What is the subnet for host ID 10.16.3.65/23?
Written Subnet Practice #2
Complete the following based on the given decimal IP address.
Address Number of Number of
IP Address Binary Value
Class Subnets (2^n ) Hosts ((2^h) – 2)
192.168.1.0 /25 C 10000000 2 126
10.25.66.154/23
172.31.254.12/24
192.168.20.123/28
128.1.1.254/20
63.24.89.21/18
208.100.54.209/30
Huawei Technologies (Uganda) Ltd.