Use both IPv4 addresses on a /31 point-to-point link

Work out the two router addresses in 198.51.100.8/31 and see how RFC 3021 treats the usual broadcast slot.

Try these inputs

Worked calculation

  1. A /31 leaves one address bit, so the aligned block has 2¹ = 2 addresses.
  2. The base address .8 is already even. The two endpoints are 198.51.100.8 and 198.51.100.9.
  3. A point-to-point link using RFC 3021 can assign both addresses to its routers. The calculator leaves the directed broadcast empty.

Inputs

One name,hosts or name,/prefix per line. Leave blank for CIDR details only.
Optional. Separate blocks with commas or spaces.

Calculated in your browser

Results

Network CIDR
198.51.100.8/31
Usable in parent
2
Total in parent
2

IPv4 address-space map

IPv4 address-space mapBlock widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.198.51.100.8/312 addressesParent space0%25%50%75%100%198.51.100.8198.51.100.9
  • Parent range
Block widths follow the share of the parent address space. The lower axis shows positions from the first to the last address.
Network
198.51.100.8
Broadcast
No directed broadcast
First usable
198.51.100.8
Last usable
198.51.100.9
Subnet mask
255.255.255.254
Wildcard
0.0.0.1
Input bits
11000110 00110011 01100100 00001000
Mask bits
11111111 11111111 11111111 11111110
Network bits
11000110 00110011 01100100 00001000

Questions

Can a /31 be used as a shared office Wi-Fi subnet?

RFC 3021 is for point-to-point links. A multi-access client segment normally needs a subnet that supports its broadcast and host count.

What is the dotted-decimal mask for this two-address link?

The /31 mask is 255.255.255.254. The final octet preserves one host bit.

References