/30 Subnet

A /30 has 4 addresses, 2 of them usable by hosts. Its netmask is 255.255.255.252. Enter any address below to see its /30 network.

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

Examples:

IPv4 network

2 usable hosts · 192.168.1.1 to 192.168.1.2

Private (RFC 1918)

Details

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

Split Into Subnets

192.168.1.0/31192.168.1.0 – 192.168.1.1
192.168.1.2/31192.168.1.2 – 192.168.1.3

Subnet Calculator

/30 at a glance

CIDR Prefix/30
Netmask255.255.255.252
Wildcard Mask0.0.0.3
Netmask (Hex)0xFFFFFFFC
Total Addresses4
Usable Hosts2
Host Bits2
Fit in a /2464
Binary Mask11111111.11111111.11111111.11111100

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

Two usable hosts. The traditional size for point-to-point links between routers, now often replaced by /31.

Most networks filter BGP announcements longer than /24, so a block this size cannot be routed on the internet on its own; it is carved out of a larger block by your provider.

Questions

How many usable IP addresses are in a /30?
2. A /30 has 4 addresses; the network and broadcast addresses are not usable by hosts.
What is the subnet mask for /30?
255.255.255.252. The wildcard (inverse) mask, used in Cisco ACLs, is 0.0.0.3.
How many /30 subnets fit in a /24?
64, each with 4 addresses.
Is 255.255.255.252 the same as /30?
Yes. 255.255.255.252 written in binary is 30 ones followed by 2 zeros, which is what /30 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.