Cisco Packet Tracer for Beginners – Chapter 2: Subnetting a Network


A sub network or subnet is a logical subdivision of an IP network. The practice of dividing a network into two or more networks is called sub netting.

Sub netting offers many advantages. Some of them are.
1. It provides security to the network.
2. Speeds up the network thus improving the performance of the network.
3. It allows for better organization of the resources.

Understanding sub netting is very important not only for those preparing for CCNA exam but also network administrators. Today, Let us see how to create a subnet in a network.

Imagine I formed a small software company named Shunya whose network looks like below. I hired one Java Developer (JD), one software tester, one HR and one network administrator. I have been assigned the IP address range from to

I have enabled DHCP on my router as below.

Enable DHCP on all PCs:

After one year, imagine my company has received Abrahamic blessings from GOD and has seen rapid growth. Now the company has three Java Developers, three software testers and a dedicated HR team. Not only that, my company now has moved into Remote Infrastructure Management( RIM) and has a Network Operation Center (NOC) and Security Operation Center (SOC). Totally I have 15 computers in my network which looks like below.

Now see the image below. Here the machine “JD1” sends a packet to machine “Testing3”. We can see here that for communication between machines “JD1: and “Testing3” other machines have also been disturbed. See, this affects the performance of the network.

So for this reason, I decided to subnet the network. I decide to divide the network into three subnets as shown below each for HR, Java Development and OC departments.

Add more FastEthernet 1/0 port for Router 0
Click on Router, follow these steps:

To create a subnet, first we need to have proper planning as to how many subnets we need and how many we may need in the future. Presently, I need three subnets. The number of subnets should always be calculated in the powers of 2.

2 to the power of 1 = 2

This doesn’t satisfy our requirement as we need three subnets.

2 to the power of 2 = 4

This satisfies our requirement. So we need to take two bits from the host portion of the IP address. to is the address range available to us with subnet mask, Writing the subnet mask in the binary notation, it is

11111111 11111111 11111111 00000000

255 255 255 0

The first 24 bits are network bits and the last eight bits are host bits. To create three subnets, we need to take two bits from the host portion of the address as explained above.

11111111 111111111 11111111 11000000

255 255 255 192

Four subnets which can be created from the above subnet mask are, to ( with host bits 00000000 ) to ( with host bits 01000000 ) to ( with host bits 10000000 ) to ( with host bits 11000000 )

Since we require only three subnets, we will create the first three subnets. The first subnet ( to ) comprises of Java Developers and Software testers. The commands are as shown below on the interface.

Router(config)#int fa 0/0
Router(config-if)#ip add
Router(config-if)#no shut

Router(config-if)#ip dhcp pool net1

If you go to any machine on this subnet and look at its IP address, it will be like below.

Now the subnet for the Human Resource Department ( to ) . This will be like below.

Router(config)#int fa 1/0
Router(config-if)#ip add
Router(config-if)#no shut

Router(config-if)#ip dhcp pool net2

The third subnet ( to comprises of NOC and SOC.

Router(config)#int fa 0/1
Router(config-if)#ip add
Router(config-if)#no shut

Router(config-if)#ip dhcp pool net3

Now our network has been successfully subnetted into three subnets and we still have another subnet to use for future use.


1 Comment
Inline Feedbacks
View all comments
suleiman mwemezi
suleiman mwemezi
3 years ago

ah happy to seee this and learn much as we know how to apply cisco tracer subnetting

Would love your thoughts, please comment.x