/21 Subnet

A /21 has 2,048 addresses, 2,046 of them usable by hosts. Its netmask is 255.255.248.0. Enter any address below to see its /21 network.

  • Free
  • No Sign-Up
  • Runs in Your Browser

Examples:

IPv4 network

2,046 usable hosts · 192.168.0.1 to 192.168.7.254

Private (RFC 1918)

Details

Netmask
Wildcard Mask
Broadcast
First Usable
Last Usable
Usable Hosts
Total Addresses
Netmask in Binary
Address Entered

Split Into Subnets

192.168.0.0/22192.168.0.0 – 192.168.3.255
192.168.4.0/22192.168.4.0 – 192.168.7.255

Subnet Calculator

/21 at a glance

CIDR Prefix/21
Netmask255.255.248.0
Wildcard Mask0.0.7.255
Netmask (Hex)0xFFFFF800
Total Addresses2,048
Usable Hosts2,046
Host Bits11
Contains /24s8
Binary Mask11111111.11111111.11111000.00000000

A /21 fixes the first 21 bits of the address as the network and leaves 11 bits for hosts, so it holds 2^11 = 2,048 addresses. The first is the network address and the last is the broadcast address, leaving 2,046 for hosts.

A /21 is 8 /24 networks side by side; registries and ISPs allocate blocks this size to networks that route them on the internet.

A /21 can be announced in BGP on its own: /24 is the longest prefix most networks accept.

Questions

How many usable IP addresses are in a /21?
2,046. A /21 has 2,048 addresses; the network and broadcast addresses are not usable by hosts.
What is the subnet mask for /21?
255.255.248.0. The wildcard (inverse) mask, used in Cisco ACLs, is 0.0.7.255.
How many /24 networks are in a /21?
8. Each step from /21 to /24 doubles the number of networks.
Is 255.255.248.0 the same as /21?
Yes. 255.255.248.0 written in binary is 21 ones followed by 11 zeros, which is what /21 means.

Every address on your network, watched

Frabs maps each IP to the VM that owns it and stops the abuse coming from it, on Proxmox, Virtualizor, VirtFusion and SolusVM.