Skip to content
Tape and Square

N-01 · Subnet · /26

/26 subnet

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

Short answer

Subnet mask
255.255.255.192Wildcard 0.0.0.63
Usable hosts
6264 addresses in total

2^6 = 64 addresses. The first is the network address and the last the broadcast, so 62 can go to devices.

The /26 mask in binary and hex

26 one bits, then 6 zero bits. The wildcard is the mask inverted.

MaskDottedHex
Subnet mask255.255.255.192FF.FF.FF.C0
Wildcard0.0.0.6300.00.00.3F

The mask ends inside the fourth octet, at 192 (11000000). That leaves 6 host bits in the octet, so /26 networks start every 64 in it: 0, 64, 128, 192 and so on. Cisco access lists take the wildcard form, 0.0.0.63, where a 1 bit means “any value” (Cisco document 23602).

RFC 1878's table lists /26 as FF.FF.FF.C0 hex, 64 addresses, equal to 1/4 C in the old class terms. Its Table 1-2 counts a /26 as 4 subnets of a class C network with 62 hosts each.

How many /26 subnets fit

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

Block/26 subnets in it
10.0.0.0/8262,144
172.16.0.0/1216,384
192.168.0.0/161,024
192.168.181.0/244

10.0.0.0/8 holds 262,144, 172.16.0.0/12 holds 16,384 and 192.168.0.0/16 holds 1,024 /26 subnets. A /24 splits into 4 of them.

Splitting a /26

Each extra prefix bit halves the block.

IntoSubnetsUsable each
/27230
/28414
/2986

Two /27 subnets hold 60 usable addresses between them, 2 fewer than one /26: each half gives up its own network and broadcast address.

/26 subnets of 192.168.181.0/24

192.168.181.0/24 holds 4 of them. The row in bold holds 192.168.181.150.

SubnetFirst usableLast usable
192.168.181.0/26192.168.181.1192.168.181.62
192.168.181.64/26192.168.181.65192.168.181.126
192.168.181.128/26192.168.181.129192.168.181.190
192.168.181.192/26192.168.181.193192.168.181.254

Check an address

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

/26

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.181.128/26

62 usable hosts

Network
192.168.181.128
First usable
192.168.181.129
Last usable
192.168.181.190
Broadcast
192.168.181.191
Subnet mask
255.255.255.192
Wildcard mask
0.0.0.63
Total addresses
64
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.255.192
11111111.11111111.11111111.11000000
Network · 192.168.181.128
11000000.10101000.10110101.10000000

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

192.168.181.0/24 split into /26

  1. 192.168.181.128/26.129–.190 ◂

/26 next to /25 and /27

One bit shorter, a /25 (255.255.255.128) has 128 addresses and 126 usable, 64 more than a /26. One bit longer, /27 (255.255.255.224) has 32 addresses and 30 usable. /25 subnet · /27 subnet

Ask the calculator for a host count and it answers /26 for 31 to 62 hosts: typing "192.168.181.128 62 hosts" gives this size, one more host gives a /25.

Worked example

Take 192.168.181.150/26. The mask ends in the fourth octet. There the address is 150 = 10010110 and the mask 192 = 11000000; AND keeps the first 2 bits: 10000000 = 128. So the network is 192.168.181.128. OR the wildcard 0.0.0.63 onto it to set every host bit: 192.168.181.191, the broadcast.

Devices use 192.168.181.129 through 192.168.181.190: 62 addresses. 192.168.181.150 is number 22 of them. In 192.168.181.0/24 this is subnet 3 of 4.

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-2.
  • RFC 1918, Address Allocation for Private Internets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.

Other prefixes