What is IP Subnetting? Explained with Examples

By | 9th November 2015

Subnetting allows you to create multiple logical networks that exist within a single Class A, B, or C network.

There are so many reasons why we subnet:

a. It helps in the preservation of address space in other not to waste addresses.

b. It used for security.

c. It helps to control network traffic due to collisions of packets transmitted by other node (host) on the same segment.

Subnetting a Network Address

In order to subnet a network address, The  subnet mask has to be extended, using some of the bits from the host ID portion of the address to create a subnetwork ID.

For example, given a Class C network of which has a natural mask of, you can create subnets in this manner: – 11000000.00010001.00000101.00000000 – 11111111.11111111.11111111.11100000


By extending the mask to be, you have borrowed three bits (indicated by “sub”) from the original host portion of the address and used them to create subnets. With these three bits, it is possible to create eight subnets. With the remaining five host ID bits, each subnet can have up to 32 host, addresses, 30 of which can actually be assigned to a device on the same segment.

These subnets have been created. host address range 1 to 30 host address range 33 to 62 host address range 65 to 94 host address range 97 to 126 host address range 129 to 158 host address range 161 to 190 host address range 193 to 222 host address range 225 to 254

Another example:-

Given a class C network address of,  as a network administrator, you need to utilize this network address across multiple small groups within the organization. You can do this by subnetting this network with a subnet address.

All you have to do is , try to create 14 subnets of 14 nodes (hosts) each. This will limit us to 196 nodes (hosts) on the network instead of 254 we would have without subnetting. To accomplished this we begin with the default network mask for class C (11111111.11111111.11111111.00000000) binary (11111111.11111111.11111111.11110000) binary

Remember the cram table:-

cram table

    1     1    1   1     1 1 1 1

  128 64  32 16  8 4 2 1 (128+64+32+16+8+4+2+1=255)

Look at this because you will always come across it during subnetting

128+64 =192

128+64+32 =224



128+64+32+16+8+4=252 an so on!

So to give us 16 possible network numbers, 2 of which cannot be used:- (Reserved)

Network address     hosts address,       broadcast address    – 30    – 46    – 62    – 78    192.168.179 (keep adding 16 till you get to 224)

That will give you up to 14 networks shared among 14 hosts (nodes).



Subnetting Class B Address

Network Address Translation (NAT)

 Dynamic Host Configuration Protocol (DHCP)

Internet Protocol Version 6 (IPv6)

More on IP addressing

Read more on IP Addressing

Leave a Reply

Your email address will not be published. Required fields are marked *