Introduces the fundamental concepts, purpose and applications of computer networks.
Explores different network classifications based on geographical coverage, purpose and architecture.
Introduces different physical and logical network structures and how network devices are organised.
Provides practical knowledge of the hardware used to build and connect computer networks.
Introduces the physical and wireless technologies used to transmit data across networks
Explains how network communication is structured using standard models and protocols.
Introduces Ethernet technology and the role of MAC addresses in local network communication
Develops practical understanding of IPv4 addressing and network identification
Teaches learners how to divide networks into smaller subnets and introduces IPv6 addressing.
Introduces network switching and provides practical skills for configuring and managing switches.
Teaches learners how to logically separate networks and carry traffic between network segments.
Introduces routing and explains how routers forward traffic between different networks.
Explores essential network services that support addressing, name resolution and internet connectivity.
Provides practical knowledge of wireless networks and access point configuration.
Introduces fundamental techniques for protecting networks, devices and network traffic.
Develops practical skills for managing, monitoring and troubleshooting computer networks.
Introduces modern networking technologies and the role of networking in cloud and virtualised environments.
Enables learners to apply their networking knowledge by designing, configuring, testing and documenting a complete network solution
Course: Computer Networking
Level: Beginner
Recommended Duration: 2–3 Hours
Font Size: 13 pt
Line Spacing: 1.5
Delivery Mode: Physical and Online Learning
As computer networks grow, using one large network for every device can become difficult to manage. Subnetting provides a way of dividing a larger IP network into smaller logical networks called subnets.
Subnetting is an important IPv4 networking skill because it helps network administrators organize devices, use address space efficiently, control network traffic and create manageable network segments. A subnet mask or prefix length determines which portion of an IPv4 address represents the network and which portion represents hosts.
For example, instead of placing every department of an organization into one large network, an administrator could create separate subnets for:
Administration
Finance
Human Resources
ICT
Students
Guest users
Each subnet can then have its own network address and host range.
By the end of this lesson, the learner should be able to:
Define subnetting.
Explain why subnetting is necessary.
Explain the relationship between IPv4 addresses and subnet masks.
Explain network and host portions.
Explain CIDR notation.
Identify common subnet masks.
Calculate the number of hosts available in simple subnets.
Identify network and broadcast addresses.
Determine a basic usable host range.
Explain the advantages of subnetting.
Create a simple subnetting plan.
Perform basic subnetting calculations.
Subnetting is the process of dividing one IP network into smaller logical networks called subnets.
The word "subnet" means a smaller network created from a larger network.
For example:
Original network:
192.168.1.0/24
This network can be divided into smaller networks.
For example:
192.168.1.0/26
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26
Instead of having one large /24 network, we now have four smaller /26 networks.
Subnetting is useful because organizations rarely need every device to communicate within one huge network.
Consider a training institution with 200 computers.
The institution could create separate networks for:
Administration
Instructors
Students
ICT laboratory
Guest Wi-Fi
Subnetting allows these groups to be organized into separate logical networks.
IPv4 addresses contain 32 bits.
For example:
192.168.1.10
An IPv4 address consists of:
Network portion
Host portion
Subnetting changes the boundary between these portions by borrowing bits from the host portion to create additional network portions.
A subnet mask tells a device which part of an IPv4 address identifies the network and which part identifies hosts.
A common subnet mask is:
255.255.255.0
This corresponds to:
/24
For example:
192.168.1.10/24
The first 24 bits represent the network portion.
CIDR means Classless Inter-Domain Routing.
CIDR notation uses a slash followed by a number.
Examples:
/8
/16
/24
/25
/26
/27
/28
/29
/30
The number represents how many bits belong to the network prefix.
For example:
192.168.1.0/24
means that 24 of the 32 bits are used for the network prefix.
| CIDR | Subnet Mask |
|---|---|
| /8 | 255.0.0.0 |
| /16 | 255.255.0.0 |
| /24 | 255.255.255.0 |
| /25 | 255.255.255.128 |
| /26 | 255.255.255.192 |
| /27 | 255.255.255.224 |
| /28 | 255.255.255.240 |
| /29 | 255.255.255.248 |
| /30 | 255.255.255.252 |
These masks are commonly encountered when learning IPv4 subnetting.
IPv4 contains 32 bits.
If we have:
/24
then:
Network bits = 24
Host bits:
32 − 24 = 8
Therefore, a /24 network has 8 host bits.
For a /26:
Network bits = 26
Host bits:
32 − 26 = 6
This means there are fewer host addresses per subnet than in a /24.
Subnetting works by borrowing bits from the host portion.
Suppose we start with:
192.168.1.0/24
There are 8 host bits.
If we borrow 2 host bits:
24 + 2 = /26
The new prefix is:
/26
We have created additional subnets but reduced the number of hosts available in each subnet.
The number of subnets created can be calculated using:
2^n
where n is the number of borrowed bits.
If we borrow 1 bit:
2¹ = 2 subnets
If we borrow 2 bits:
2² = 4 subnets
If we borrow 3 bits:
2³ = 8 subnets
If we borrow 4 bits:
2⁴ = 16 subnets
The number of IPv4 addresses available in a subnet can be calculated using:
2^h
where h is the number of host bits.
For traditional IPv4 host addressing, two addresses are normally reserved for the network and broadcast addresses.
Therefore:
Usable hosts = 2^h − 2
For example, with /26:
32 − 26 = 6 host bits
2⁶ = 64 total addresses
64 − 2 = 62 usable host addresses
Therefore:
/26 = 64 total addresses
/26 = 62 traditionally usable host addresses
Consider:
192.168.1.0/24
Host bits:
32 − 24 = 8
Total addresses:
2⁸ = 256
Traditional usable host addresses:
256 − 2 = 254
Therefore:
Network address: 192.168.1.0
Usable range: 192.168.1.1–192.168.1.254
Broadcast: 192.168.1.255
Consider:
192.168.1.0/25
Host bits:
32 − 25 = 7
Total addresses:
2⁷ = 128
Traditional usable hosts:
128 − 2 = 126
The first subnet is:
Network: 192.168.1.0
Usable hosts: 192.168.1.1–192.168.1.126
Broadcast: 192.168.1.127
The second subnet is:
Network: 192.168.1.128
Usable hosts: 192.168.1.129–192.168.1.254
Broadcast: 192.168.1.255
Consider:
192.168.1.0/26
The subnet mask is:
255.255.255.192
The block size is:
256 − 192 = 64
Therefore, the subnet boundaries occur every 64 addresses:
192.168.1.0
192.168.1.64
192.168.1.128
192.168.1.192
This creates four /26 subnets.
| Subnet | Network Address | Usable Host Range | Broadcast |
|---|---|---|---|
| 1 | 192.168.1.0 | .1 – .62 | .63 |
| 2 | 192.168.1.64 | .65 – .126 | .127 |
| 3 | 192.168.1.128 | .129 – .190 | .191 |
| 4 | 192.168.1.192 | .193 – .254 | .255 |
Each subnet has:
64 total addresses
and traditionally:
62 usable host addresses.
The network address identifies a subnet.
For example:
192.168.1.64/26
Here:
192.168.1.64
is the network address.
It identifies the subnet and is not normally assigned to an individual host.
The broadcast address is used to reach all hosts within the subnet.
For:
192.168.1.64/26
the broadcast address is:
192.168.1.127
The usable host range is therefore:
192.168.1.65–192.168.1.126
A usable host address can normally be assigned to a device.
For example, in:
192.168.1.64/26
usable addresses include:
192.168.1.65
192.168.1.66
192.168.1.67
...
192.168.1.126
Devices that could use these addresses include:
Computers
Printers
Servers
IP phones
Access points
Cameras
Network interfaces
One common beginner method is to calculate the block size.
Formula:
Block size = 256 − subnet mask value in the interesting octet
For:
255.255.255.192
Block size:
256 − 192 = 64
Therefore:
0, 64, 128, 192
are the subnet boundaries.
A /27 mask is:
255.255.255.224
Block size:
256 − 224 = 32
Subnet boundaries:
0
32
64
96
128
160
192
224
Therefore, a /24 network can be divided into eight /27 subnets.
Each subnet contains:
2⁵ = 32 total addresses
32 − 2 = 30 traditional usable hosts.
For:
192.168.10.0/27
Subnet 1:
Network: 192.168.10.0
Usable: 192.168.10.1–192.168.10.30
Broadcast: 192.168.10.31
Subnet 2:
Network: 192.168.10.32
Usable: 192.168.10.33–192.168.10.62
Broadcast: 192.168.10.63
Subnet 3:
Network: 192.168.10.64
Usable: 192.168.10.65–192.168.10.94
Broadcast: 192.168.10.95
The same pattern continues through the /24 address space.
Suppose a computer laboratory has 50 computers.
A /26 subnet provides:
64 total addresses
and traditionally:
62 usable host addresses.
Therefore, a /26 network could accommodate 50 computers while leaving some addresses available for other devices such as:
Printer
Router
Access point
Network management device
Example:
Network:
192.168.20.0/26
Usable:
192.168.20.1–192.168.20.62
Broadcast:
192.168.20.63
An organization could divide its network into departments.
For example:
Administration:
192.168.10.0/26
Finance:
192.168.10.64/26
ICT:
192.168.10.128/26
Human Resources:
192.168.10.192/26
This provides logical separation between departments.
Subnetting provides several benefits:
Better network organization.
More efficient address allocation.
Reduced broadcast domains.
Easier network management.
Easier troubleshooting.
Improved network segmentation.
Better security through logical separation.
More efficient use of IPv4 addresses.
Easier application of access-control policies.
Improved scalability.
Subnetting can help separate groups of users and devices.
For example:
Student network:
192.168.10.0/24
Administration:
192.168.20.0/24
Guest network:
192.168.30.0/24
Network administrators can then use routers, firewalls and access-control rules to control communication between these networks.
Subnetting itself is not a complete security mechanism, but it can provide useful network segmentation.
Broadcast traffic is sent to multiple devices within a broadcast domain.
Large networks can generate significant broadcast traffic.
Subnetting divides a large network into smaller networks, which can reduce the size of individual broadcast domains.
This can make networks easier to manage.
Routers can connect different IP subnets.
For example:
Subnet A:
192.168.10.0/24
Subnet B:
192.168.20.0/24
A router can provide communication between these networks when routing is correctly configured.
Subnetting and VLANs are often used together.
For example:
VLAN 10 → Administration → 192.168.10.0/24
VLAN 20 → Finance → 192.168.20.0/24
VLAN 30 → Students → 192.168.30.0/24
VLANs provide Layer 2 segmentation, while IP subnets provide Layer 3 addressing boundaries.
Fixed-Length Subnet Masking (FLSM) uses the same subnet size for each subnet.
For example:
192.168.1.0/24
could be divided into four /26 networks.
Each subnet has the same number of addresses.
This is simple to plan and manage.
Variable-Length Subnet Masking (VLSM) allows different subnet sizes to be used within the same overall network.
For example:
Administration may require 50 hosts.
Finance may require 20 hosts.
A small management network may require only 5 hosts.
Instead of giving every department the same size subnet, VLSM allows address space to be allocated according to actual requirements.
VLSM is an intermediate or advanced topic and should be studied after learners understand basic subnetting.
Beginners commonly make mistakes such as:
Confusing network and host addresses.
Forgetting the broadcast address.
Using the wrong subnet mask.
Calculating the wrong block size.
Counting the network address as a host.
Counting the broadcast address as a host.
Misunderstanding CIDR notation.
Borrowing the wrong number of bits.
Assigning duplicate addresses.
Placing a device in the wrong subnet.
Calculate the host bits for:
/24
/25
/26
/27
/28
/29
/30
Use:
Host bits = 32 − prefix length
Calculate the traditional usable host capacity of:
/24
/25
/26
/27
/28
/29
/30
Use:
Usable hosts = 2^h − 2
where h represents the number of host bits.
For:
192.168.1.0/26
identify:
Number of subnets
Network addresses
Broadcast addresses
Usable host ranges
Number of usable hosts per subnet
A school requires separate networks for:
Administration – 30 devices
Teachers – 20 devices
Computer laboratory – 50 devices
Students' Wi-Fi – 100 devices
Learners should design a basic addressing plan.
They should identify:
Network address
Prefix
Subnet mask
Host range
Broadcast address
Use an IPv4 subnet calculator to verify your manual calculations.
However, learners should first perform the calculation manually before using a calculator.
This ensures they understand the subnetting process rather than simply relying on software.
What is subnetting?
Why is subnetting used?
What is a subnet?
What is a subnet mask?
What does /24 mean?
How many bits are in an IPv4 address?
What happens when host bits are borrowed?
What is a network address?
What is a broadcast address?
What is a usable host address?
What is the subnet mask for /26?
How many total addresses are in a /26 subnet?
How many traditional usable host addresses are in a /26 subnet?
What is the block size of /27?
What is the difference between FLSM and VLSM?
How can subnetting improve network management?
How can subnetting contribute to network segmentation?
Why should the network address not normally be assigned to a host?
Why should the broadcast address not normally be assigned to a host?
Explain how routers connect different subnets.
An organization has been allocated:
192.168.50.0/24
It has four departments:
Administration – 40 hosts
Finance – 25 hosts
ICT – 20 hosts
Management – 10 hosts
Create a subnetting plan.
For each department, provide:
Network address
Subnet mask
CIDR prefix
First usable address
Last usable address
Broadcast address
Number of available host addresses
Learners should explain why their selected subnet sizes are appropriate.
Subnetting
Subnet
IPv4
IP address
Subnet mask
CIDR
Prefix
Network address
Broadcast address
Host address
Host bits
Network bits
Block size
FLSM
VLSM
Routing
VLAN
Broadcast domain
Network segmentation
Address allocation
Subnetting is the process of dividing a larger IP network into smaller logical networks.
The process works by borrowing bits from the host portion of an IPv4 address and using them to create additional network portions. The subnet mask or CIDR prefix identifies the network boundary.
For example:
192.168.1.0/24
can be divided into four /26 subnets:
192.168.1.0/26
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26
Learning subnetting prepares learners for more advanced networking topics such as routing, VLANs, VLSM, route summarization and network design.
More learning on IPv4 subnetting, CIDR, VLSM, routing and practical network configuration will be delivered through Senior ICT Academy Campus by either a physical instructor or an online instructor.
Senior ICT Academy Campus:
https://campus.seniorictacademy.com/login