IP Subnetting Explained with Examples.

By | November 30, 2023

IP Subnet allows you to create multiple logical networks that exist within a single Class A, B, or C network. In IP Subnetting, you can divide a large network into smaller subnetworks, which can improve overall network performance and security. Subnetting also helps in optimizing the allocation of IP addresses and efficiently using available address space. By segmenting the network into smaller subnets, you can better manage network traffic and reduce broadcast domains, ultimately leading to a more organized and scalable network infrastructure.

There are so many reasons why we subnet:

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

83% discount on VPN

b. It is used for security.

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

Subnetting a Network Address

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 192.17.5.0 which has a natural mask of 255.255.255.0, you can create subnets in this manner:

By extending the mask to 255.255.255.224, 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 be assigned to a device on the same segment.

These subnets have been created.

Another example:-

Given a class C network address of 192.168.1.0,  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 the 254 we would have without subnetting. To accomplish this we begin with the default network mask for class C

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=240

128+64+32+16+8=248

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

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

192.168.1.0 (Reserved)

Network address     hosts address,       broadcast address

192.168.1.16             192.168.1.17 – 30    192.168.1.31

192.168.1.32             192.168.1.33 – 46     192.168.1.47

192.168.1.48             192.168.1.49 – 62    192.168.1.63

192.168.1.64             192.168.1.65 – 78    192.168.179

192.168.1.80 (keep adding 16 till you get to 224)

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

In conclusion, Subnetting helps in optimizing network performance by reducing network congestion and improving overall efficiency. It also enhances network security by isolating different parts of the network and controlling access to sensitive information. Additionally, subnetting simplifies network management tasks, making it easier to troubleshoot and maintain the network infrastructure.

 VLSM CIDR

Subnetting Class B Address Network Address Translation (NAT)

Dynamic Host Configuration Protocol (DHCP)

Internet Protocol Version 6 (IPv6)