Supernetting vs subnetting: two directions, one mask
Subnetting and supernetting are inverse operations on the same tool: the network mask. Subnetting divides a single network into smaller subnets; supernetting combines multiple networks into a larger aggregate. Both use CIDR notation and binary logic, but they serve opposite purposes in network design and routing efficiency.
Subnetting: dividing down
Subnetting takes one classful or classless network and splits it into smaller, manageable subnets by borrowing host bits and converting them to network bits. This reduces the host address space per subnet but increases the number of available subnets.
Example: the network 192.168.1.0 divided by 255.255.255.0 (slash 24) can be subnetted into four slash 26 subnets:
192.168.1.0/26 (hosts: .1 to .62) 192.168.1.64/26 (hosts: .65 to .126) 192.168.1.128/26 (hosts: .129 to .190) 192.168.1.192/26 (hosts: .193 to .254)
Each subnet is isolated at layer 3, requiring a router interface or VLAN to communicate between them. Subnetting is essential for IP address management, security segmentation, and efficient use of address space in enterprise networks.
Supernetting: combining up
Supernetting (also called route aggregation or route summarization) combines multiple adjacent networks into a single larger network by reducing the prefix length. This shrinks the routing table and improves routing efficiency.
Example: four contiguous slash 26 networks can be summarized back into a single slash 24:
192.168.1.0/26 192.168.1.64/26 192.168.1.128/26 192.168.1.192/26 Summarized as: 192.168.1.0/24
Supernetting is critical in BGP and OSPF deployments where routing table bloat can degrade convergence time and memory use. ISPs and large enterprises use supernetting to advertise multiple customer or regional networks as a single route.
Key differences at a glance
- →Subnetting increases the prefix length (e.g., /24 to /26); supernetting decreases it (e.g., /26 to /24).
- →Subnetting creates more, smaller networks; supernetting creates fewer, larger networks.
- →Subnetting is used for internal network design and isolation; supernetting is used for routing optimization and advertisement.
- →Both require the networks involved to be contiguous in binary; non-contiguous networks cannot be summarized.
- →CIDR notation (slash notation) is essential to both; classful thinking obscures the relationship.
Practical considerations
In real deployments, you often do both. You subnet a large allocation for internal use, then supernet those subnets when advertising to upstream or peer networks. For example, a company might receive 10.0.0.0/16 from its ISP, subnet it into /24s for each office, then advertise the entire /16 to the internet routing table.
Supernetting only works when networks are contiguous in address space. If you own 10.1.0.0/24 and 10.3.0.0/24 but not 10.2.0.0/24, you cannot summarize them into a single route without accidentally including the gap. This constraint drives address planning in large networks.
Modern routing protocols support both operations transparently. BGP uses supernetting to reduce global routing table size; OSPF uses it within areas to limit LSA flooding. EIGRP supports manual route summarization at any router interface.