Hamed M. answered 05/10/25
Math ; IT Certification Tutor | 20+ Years in Algebra, Pre-Calc, Cisco
In networking, /30
is a CIDR (Classless Inter-Domain Routing) notation that indicates the subnet mask and the number of usable IP addresses within a subnet.
Subnet Mask for /30
- A
/30
subnet uses 30 bits for the network portion and 2 bits for the host portion. - This results in a subnet mask of 255.255.255.252.
- In binary:
11111111.11111111.11111111.11111100
How Many Hosts Can You Have?
To calculate the number of usable hosts, use the formula:
2^n - 2
, where n
is the number of bits for the host portion.
- For a
/30
subnet,n = 2
- So,
2^2 - 2 = 2
usable host IP addresses
This means a /30
subnet provides 4 total IP addresses:
- 1 Network address
- 2 Usable host addresses
- 1 Broadcast address
Summary Table
CIDRSubnet MaskTotal IPsUsable HostsTypical Use | ||||
/30 | 255.255.255.252 | 4 | 2 | Point-to-point connections between routers |