Subnetting in 60 seconds
An IP address has two parts: the network portion (which network?) and the host portion (which device on the network?). The prefix length decides where the split happens; e.g. /24 means the first 24 bits are network, the last 8 are host.
- IPv4 has 32 bits, i.e. 2³² ≈ 4.3 billion addresses worldwide.
- IPv6 has 128 bits, i.e. 2¹²⁸ addresses, more than grains of sand on Earth.
- In IPv4,
/24is a typical LAN,/16a larger corporate network. - In IPv6,
/64is the smallest sensible subnet size (for SLAAC),/48a typical end-customer allocation. - The netmask is a binary mask with 1s for the network portion.
/24gives255.255.255.0. - The wildcard mask is the bitwise inverse, used in Cisco ACLs.