/31 Subnet Mask (255.255.255.254)

Modern router-to-router link standard that eliminates network/broadcast waste to conserve IPv4 addresses.

Subnet Mask255.255.255.254
Wildcard Mask0.0.0.1
Usable Hosts2
Total IPs2
Advertisement Slot

Ready-to-Use Configuration Snippets (/31)

PowerShell (New-NetIPAddress)

New-NetIPAddress -InterfaceAlias "Ethernet" -IPAddress "192.168.1.10" -PrefixLength 31 -DefaultGateway "192.168.1.1"

Cisco IOS Interface & ACL Wildcard

interface GigabitEthernet0/1
 ip address 192.168.1.1 255.255.255.254

! ACL Permit Rule using Wildcard Mask:
access-list 101 permit ip 192.168.1.0 0.0.0.1 any

/31 Subnet Mask FAQ

What is a /31 subnet mask in dotted decimal?

A /31 CIDR prefix corresponds to the dotted-decimal subnet mask 255.255.255.254 and wildcard mask 0.0.0.1.

How many usable hosts are in a /31 subnet?

A /31 network provides 2 usable host IP addresses out of 2 total IPv4 addresses.

Where is a /31 subnet commonly used?

Modern router-to-router link standard that eliminates network/broadcast waste to conserve IPv4 addresses.


Adjacent Subnets: /30 Subnet Mask | /32 Subnet Mask