Skip to content
Tape and Square

N-01 · Subnet · /19

/19 subnet

A /19 network keeps 19 of the 32 address bits for the network and leaves 13 for hosts. Its mask, host count, the blocks it fits in and example networks, all worked out below.

Short answer

Subnet mask
255.255.224.0Wildcard 0.0.31.255
Usable hosts
8,1908,192 addresses in total

2^13 = 8,192 addresses. The first is the network address and the last the broadcast, so 8,190 can go to devices.

The /19 mask in binary and hex

19 one bits, then 13 zero bits. The wildcard is the mask inverted.

MaskDottedHex
Subnet mask255.255.224.0FF.FF.E0.00
Wildcard0.0.31.25500.00.1F.FF

The mask ends inside the third octet, at 224 (11100000). That leaves 5 host bits in the octet, so /19 networks start every 32 in it: 0, 32, 64, 96 and so on. Cisco access lists take the wildcard form, 0.0.31.255, where a 1 bit means “any value” (Cisco document 23602).

RFC 1878's table lists /19 as FF.FF.E0.00 hex, 8 K addresses, equal to 32 C in the old class terms. Its Table 1-1 counts a /19 as 8 subnets of a class B network with 8,190 hosts each. Erratum 3147 corrects that table's last row for each size: the all-ones subnet ends at N.N.255.255.

How many /19 subnets fit

The three private ranges (RFC 1918) and one /24.

Block/19 subnets in it
10.0.0.0/82,048
172.16.0.0/12128
192.168.0.0/168
192.168.181.0/24none: one /19 holds 32

10.0.0.0/8 holds 2,048, 172.16.0.0/12 holds 128 and 192.168.0.0/16 holds 8 /19 subnets. One /19 spans 32 /24s.

Splitting a /19

Each extra prefix bit halves the block.

IntoSubnetsUsable each
/2024,094
/2142,046
/2281,022

Two /20 subnets hold 8,188 usable addresses between them, 2 fewer than one /19: each half gives up its own network and broadcast address.

/19 subnets of 192.168.0.0/16

192.168.0.0/16 holds 8 of them. The row in bold holds 192.168.181.150.

SubnetFirst usableLast usable
192.168.0.0/19192.168.0.1192.168.31.254
192.168.32.0/19192.168.32.1192.168.63.254
192.168.64.0/19192.168.64.1192.168.95.254
192.168.96.0/19192.168.96.1192.168.127.254
192.168.128.0/19192.168.128.1192.168.159.254
192.168.160.0/19192.168.160.1192.168.191.254
192.168.192.0/19192.168.192.1192.168.223.254
192.168.224.0/19192.168.224.1192.168.255.254

Check an address

Pre-filled with 192.168.181.150/19. Change the address or the prefix.

/19

Also accepts 192.168.1.130 255.255.255.192, 192.168.1.0 60 hosts or IPv6 like 2001:db8::/48.

Result

192.168.160.0/19

8,190 usable hosts

Network
192.168.160.0
First usable
192.168.160.1
Last usable
192.168.191.254
Broadcast
192.168.191.255
Subnet mask
255.255.224.0
Wildcard mask
0.0.31.255
Total addresses
8,192
PRIVATE

Inside 192.168.0.0/16, a private range (RFC 1918). Not routable on the public internet.

Binary view

Address · 192.168.181.150
11000000.10101000.10110101.10010110
Mask · 255.255.224.0
11111111.11111111.11100000.00000000
Network · 192.168.160.0
11000000.10101000.10100000.00000000

Bold bits are fixed for the network; orange bits number the hosts.

192.168.0.0/16 split into /19

  1. 192.168.160.0/19.160.1–.191.254 ◂

/19 next to /18 and /20

One bit shorter, a /18 (255.255.192.0) has 16,384 addresses and 16,382 usable, 8,192 more than a /19. One bit longer, /20 (255.255.240.0) has 4,096 addresses and 4,094 usable. /18 subnet · /20 subnet

Ask the calculator for a host count and it answers /19 for 4,095 to 8,190 hosts: typing "192.168.160.0 8,190 hosts" gives this size, one more host gives a /18.

Worked example

Take 192.168.181.150/19. The mask ends in the third octet. There the address is 181 = 10110101 and the mask 224 = 11100000; AND keeps the first 3 bits: 10100000 = 160. The octets after it become 0, so the network is 192.168.160.0. OR the wildcard 0.0.31.255 onto it to set every host bit: 192.168.191.255, the broadcast.

Devices use 192.168.160.1 through 192.168.191.254: 8,190 addresses. 192.168.181.150 is number 5,526 of them. In 192.168.0.0/16 this is subnet 6 of 8.

References

  • RFC 4632, Classless Inter-domain Routing (CIDR), §3.1: prefix lengths and block sizes.
  • RFC 950, Internet Standard Subnetting Procedure: subnet masks.
  • RFC 1878, Variable Length Subnet Table For IPv4, Table 1-1, with erratum 3147 (all-ones subnet rows).
  • RFC 1918, Address Allocation for Private Internets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.

Other prefixes