bgunderlay bgunderlay bgunderlay

A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)

A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses

Subnetting is a critical skill for network administrators and IT professionals, allowing them to efficiently allocate IP address space and enhance network performance. Whether you’re working with IPv4 or transitioning to IPv6, understanding subnetting is key to optimizing your network. This guide breaks down subnetting for both IPv4 and IPv6 addresses, providing a step-by-step approach to mastering the basics.

What is Subnetting?

Subnetting is the process of dividing a larger IP network into smaller, more manageable sub-networks (subnets). This improves network efficiency, reduces congestion, and enhances security by isolating different segments of the network.

Benefits of Subnetting

  • Efficient IP Utilization: Maximizes the use of available IP address space
  • Enhanced Security: Segments the network to restrict unauthorized access
  • Improved Performance: Reduces broadcast traffic by isolating subnets
  • Simplified Management: Makes troubleshooting and network planning easier

Subnetting IPv4 Addresses

IPv4 uses a 32-bit address format, divided into four octets (e.g., 192.168.1.1). Each address includes a network portion and a host portion, separated by a subnet mask.

Key Terms

  • Subnet Mask: Determines how the IP address is divided into network and host portions (e.g., 255.255.255.0)
  • CIDR Notation: A shorthand for representing the subnet mask (e.g., /24)
  • Block Size: The number of addresses in each subnet

Steps to Subnet an IPv4 Address

  1. Determine Requirements:
    • How many subnets are needed?
    • How many hosts per subnet?
  2. Calculate Subnet Mask:
    • Use the formula: 2^n ≥ Number of Hosts, where n is the number of host bits
    • Subtract n from 32 to find the CIDR notation
  3. Assign Subnets:
    • Divide the address range into equal parts based on the subnet mask

Example

  • Given Address: 192.168.1.0/24
  • Subnet Requirement: 4 subnets
  • Calculation:
    • 2^2 = 4, so 2 additional bits are used for subnetting
    • New subnet mask: /26 (255.255.255.192)
  • Resulting 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

 

<iframe width=”560″ height=”315″ src=”https://www.youtube.com/embed/QKjgwJUZtUI?si=KodaUfimASxdwJjU” title=”YouTube video player” frameborder=”0″ allow=”accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share” referrerpolicy=”strict-origin-when-cross-origin” allowfullscreen></iframe>

Subnetting IPv6 Addresses

IPv6 uses a 128-bit address format, vastly increasing the available address space. Subnetting in IPv6 is simpler than IPv4, as it primarily uses CIDR notation.

Key Differences from IPv4

  • No Broadcast Addresses: IPv6 uses multicast instead of broadcast
  • Larger Address Space: Eliminates the need for NAT
  • Standard Subnet Size: A /64 subnet is the default for most networks

Steps to Subnet an IPv6 Address

  1. Understand the Address Structure:
    • An IPv6 address is divided into eight 16-bit blocks (e.g., 2001:db8::/32)
    • The first part represents the network, while the rest is for hosts
  2. Determine the Prefix Length:
    • Similar to IPv4, the prefix length defines the network portion (e.g., /64)
  3. Divide the Address:
    • Increment the subnet ID to create additional subnets

Example

  • Given Address: 2001:db8::/32
  • Subnet Requirement: 4 subnets
  • Calculation:
    • Increase the prefix length by 2: /34
  • Resulting Subnets:
    • 2001:db8:0::/34
    • 2001:db8:4::/34
    • 2001:db8:8::/34
    • 2001:db8:c::/34

Comparing IPv4 and IPv6 Subnetting

IPv4 vs IPv6 Subnetting Comparison
Feature IPv4 Subnetting IPv6 Subnetting
Address Length 32-bit 128-bit
Subnet Mask Format Dotted Decimal (e.g., 255.255.255.0) CIDR Notation (e.g., /64)
Address Space Limited (4.3 billion addresses) Virtually Unlimited
Ease of Subnetting Requires manual calculation Simpler with standardized /64 subnets
Broadcast Traffic Supported Not Applicable

Common Challenges in Subnetting

1. Calculating Subnets

  • Challenge: Determining the correct subnet mask and number of hosts
  • Solution: Use online subnet calculators or subnetting charts

2. Address Wastage

  • Challenge: Over-allocating addresses in IPv4 due to limited space
  • Solution: Plan subnets carefully and transition to IPv6 where possible

3. Human Errors

  • Challenge: Misconfigurations due to manual calculations
  • Solution: Automate configurations using IP management tools

Tools for Subnetting

Popular Subnetting Tools
Tool Purpose Features
IP Calculator Simplifies subnet calculations Supports both IPv4 and IPv6
Wireshark Analyzes network traffic Verifies subnet configurations
SolarWinds IPAM Manages IP address allocations Automates subnetting processes
Subnet Mask Cheat Sheet Provides quick references Useful for manual calculations

Best Practices for Subnetting

  1. Plan Ahead:
    • Assess current and future network requirements
  2. Transition to IPv6:
    • Take advantage of IPv6’s scalability to reduce IP constraints
  3. Use Tools:
    • Leverage subnet calculators and IP management software to minimize errors
  4. Document Configurations:
    • Maintain clear records of subnet allocations for troubleshooting and scalability

Conclusion

 

 

Subnetting is a fundamental skill for managing modern networks efficiently. While IPv4 subnetting requires careful planning and calculations, IPv6 simplifies the process with its vast address space and standardized practices. By understanding the basics, using the right tools, and following best practices, you can optimize your network’s performance and scalability, ensuring it meets current and future demands.

Partner with InterLIR to secure the IPv4 resources your network demands. Our specialists provide tailored guidance on network architecture, strategic subnetting approaches, and comprehensive IP address lifecycle management—transforming technical complexity into competitive advantage.


Frequently Asked Questions

A subnet mask is a 32-bit number written in dotted decimal format (e.g., 255.255.255.0) that determines which portion of an IP address belongs to the network and which belongs to the host. CIDR notation is a shorthand method that represents the subnet mask as a slash followed by the number of network bits (e.g., /24). Both represent the same concept, but CIDR notation is more compact and commonly used in modern networking documentation and configurations.

To calculate the number of subnets, use the formula 2^n, where n is the number of bits borrowed from the host portion for subnetting. For example, if you borrow 2 bits from a /24 network, you can create 2^2 = 4 subnets. Each borrowed bit doubles the number of possible subnets, but reduces the number of available host addresses per subnet proportionally.

IPv6 subnetting is simpler because of its vast address space (128 bits vs. 32 bits), eliminating the need for complex calculations to conserve addresses. Most networks use a standard /64 subnet size, which provides 18 quintillion host addresses per subnet—more than enough for any use case. This standardization reduces planning complexity and removes concerns about address exhaustion that drive complex IPv4 subnetting strategies.

In enterprise environments, four subnet sizes dominate network architecture: /24 (256 addresses) for departmental networks, /26 (64 addresses) for team segments, /28 (16 addresses) for small device clusters, and /30 (4 addresses) for dedicated point-to-point links. These sizes balance address allocation efficiency with practical network segmentation needs.

Always validate subnet calculations against reference guides before implementing network changes in live environments. Use automated IP management tools to prevent manual calculation errors, document all subnet allocations clearly, and test configurations in a lab environment first. A single miscalculation can cascade into significant connectivity issues, so double-checking subnet masks, gateway addresses, and address ranges is essential before deployment.

 

Alexander Timokhin

COO

    Ready to get started?

    Articles
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)
    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses (2026 Update)

    A Beginner’s Guide to Subnetting IPv4 and IPv6 Addresses Subnetting is a critical

    More
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025
    IPv4 Leasing Revolution: Why Smart Businesses Are Ditching Ownership in 2025

    Why IPv4 Leasing Is Becoming the Smart Choice for Businesses in 2025 1. Introduction

    More
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security
    Network Isolation Revolution: IPv4 Marketplace Insights for Enterprise Security

      As CEO of InterLIR, I’ve witnessed firsthand how network isolation strategies

    More
    What is ASN?
    What is ASN?

    What is an ASN? ASN stands for Autonomous System Number. It is a unique identifier

    More
    How Anycast DNS Actually Works (And Why Your Network Needs It)
    How Anycast DNS Actually Works (And Why Your Network Needs It)

    Anycast DNS: A Leader’s Guide to Protecting Your Digital Infrastructure Executive

    More
    Why RPKI Matters: Securing Your Company’s Internet Traffic
    Why RPKI Matters: Securing Your Company’s Internet Traffic

    RPKI Certification: A Leader’s Guide to Internet Routing Security Executive

    More
    Why RIPE Address Policy Matters for Your Company’s Digital Future
    Why RIPE Address Policy Matters for Your Company’s Digital Future

    Executive Summary: What You Need to Know 🎯 Strategic Importance – Internet

    More
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue
    AWS Outages: The CEO’s Guide to Preventing Downtime & Protecting Revenue

      When AWS DynamoDB failed in October 2025, thousands of businesses discovered that

    More
    What I Wish CEOs Knew About Managing IP Reputation Risk
    What I Wish CEOs Knew About Managing IP Reputation Risk

    Executive Summary: What You Need to Know 🎯 IP reputation directly impacts your

    More
    How to Create a Subnet and Configure Routing
    How to Create a Subnet and Configure Routing

    Mastering Subnetting and Routing for Modern Networks Why Subnetting Matters in Today’s

    More