Lesson 15: Introduction to Subnetting
Subnetting is the process of borrowing host bits and turning them into network bits, effectively dividing a large network into smaller, more manageable subnets.
Why Subnet?
- Efficiency: Prevents wasting large blocks of IP addresses.
- Performance: Reduces broadcast traffic by creating smaller broadcast domains.
- Security: Isolates specific groups of devices.
- Organization: Makes network management logical.
Key Formulas
We borrow N bits from the host portion. The mask length is represented by CIDR notation (/x).
- Number of Subnets: $2^N$ (where N is the number of borrowed bits).
- Number of Hosts per Subnet: $2^H - 2$ (where H is the number of remaining host bits. We subtract 2 for the Network and Broadcast addresses).
The VLSM Concept
Variable Length Subnet Masking (VLSM) allows us to use different size subnet masks for different subnets. This is critical for efficient addressing, as small links (like WAN links) only need 2 usable addresses, while a large LAN might need 100.