DEV Community

Cover image for ๐Ÿ”Œ What is Subnetting? (With Easy Examples)
SAIKOT CHANDRA BARMAN
SAIKOT CHANDRA BARMAN

Posted on

๐Ÿ”Œ What is Subnetting? (With Easy Examples)

๐Ÿ”Œ What is Subnetting? (With Easy Examples)

If you're just getting started in networking, subnetting might seem intimidating at first โ€” but it's actually a powerful and essential concept that helps organize and secure networks.


๐Ÿง  What is Subnetting?

Subnetting is the process of dividing a large network into smaller, more manageable sub-networks called subnets.

Think of it like breaking one big room into several smaller rooms to control access, manage space, and reduce congestion.


๐Ÿ“Š Why Use Subnetting?

  • โœ… Efficient use of IP addresses
  • ๐Ÿ” Improved network security
  • ๐Ÿ“‰ Reduced network congestion
  • ๐Ÿ”Ž Easier network troubleshooting and management

๐Ÿ“Œ Basic Subnetting Example

You have a network: 192.168.1.0/24

This gives you 256 IP addresses (from 192.168.1.0 to 192.168.1.255).

Now letโ€™s say you want to create 4 smaller subnets.

Using subnetting /26, you can create 4 subnets:

  • 192.168.1.0 โ€“ 192.168.1.63
  • 192.168.1.64 โ€“ 192.168.1.127
  • 192.168.1.128 โ€“ 192.168.1.191
  • 192.168.1.192 โ€“ 192.168.1.255

Each subnet has:

  • 64 total addresses
  • 62 usable host addresses (excluding network and broadcast)

๐Ÿงฎ Subnetting Formula

Top comments (0)