SaveMyCert
IPv4 reference

/30 subnet mask (255.255.255.252)

A /30 is the subnet mask 255.255.255.252: 30 network bits and 2 host bits, giving 4 addresses and 2 usable hosts. Its wildcard mask is 0.0.0.3 and its block size is 4.

Subnet mask
255.255.255.252
Wildcard
0.0.0.3
Addresses
4
Usable hosts
2
Block size
4

The /30 mask in binary

The prefix is the number of 1 bits at the start of the mask. Ones mark the network part of an address, zeros the host part.

11111111.11111111.11111111.11111100

30 network bits, 2 host bits.

Every /30 in 192.168.1.0/24

A /24 holds 64 /30 subnets, each starting where the previous one ends.

/30 subnets of 192.168.1.0/24
NetworkFirst hostLast hostBroadcast
192.168.1.0/30192.168.1.1192.168.1.2192.168.1.3
192.168.1.4/30192.168.1.5192.168.1.6192.168.1.7
192.168.1.8/30192.168.1.9192.168.1.10192.168.1.11
192.168.1.12/30192.168.1.13192.168.1.14192.168.1.15
192.168.1.16/30192.168.1.17192.168.1.18192.168.1.19
192.168.1.20/30192.168.1.21192.168.1.22192.168.1.23
192.168.1.24/30192.168.1.25192.168.1.26192.168.1.27
192.168.1.28/30192.168.1.29192.168.1.30192.168.1.31
192.168.1.32/30192.168.1.33192.168.1.34192.168.1.35
192.168.1.36/30192.168.1.37192.168.1.38192.168.1.39
192.168.1.40/30192.168.1.41192.168.1.42192.168.1.43
192.168.1.44/30192.168.1.45192.168.1.46192.168.1.47
192.168.1.48/30192.168.1.49192.168.1.50192.168.1.51
192.168.1.52/30192.168.1.53192.168.1.54192.168.1.55
192.168.1.56/30192.168.1.57192.168.1.58192.168.1.59
192.168.1.60/30192.168.1.61192.168.1.62192.168.1.63
192.168.1.64/30192.168.1.65192.168.1.66192.168.1.67
192.168.1.68/30192.168.1.69192.168.1.70192.168.1.71
192.168.1.72/30192.168.1.73192.168.1.74192.168.1.75
192.168.1.76/30192.168.1.77192.168.1.78192.168.1.79
192.168.1.80/30192.168.1.81192.168.1.82192.168.1.83
192.168.1.84/30192.168.1.85192.168.1.86192.168.1.87
192.168.1.88/30192.168.1.89192.168.1.90192.168.1.91
192.168.1.92/30192.168.1.93192.168.1.94192.168.1.95
192.168.1.96/30192.168.1.97192.168.1.98192.168.1.99
192.168.1.100/30192.168.1.101192.168.1.102192.168.1.103
192.168.1.104/30192.168.1.105192.168.1.106192.168.1.107
192.168.1.108/30192.168.1.109192.168.1.110192.168.1.111
192.168.1.112/30192.168.1.113192.168.1.114192.168.1.115
192.168.1.116/30192.168.1.117192.168.1.118192.168.1.119
192.168.1.120/30192.168.1.121192.168.1.122192.168.1.123
192.168.1.124/30192.168.1.125192.168.1.126192.168.1.127
192.168.1.128/30192.168.1.129192.168.1.130192.168.1.131
192.168.1.132/30192.168.1.133192.168.1.134192.168.1.135
192.168.1.136/30192.168.1.137192.168.1.138192.168.1.139
192.168.1.140/30192.168.1.141192.168.1.142192.168.1.143
192.168.1.144/30192.168.1.145192.168.1.146192.168.1.147
192.168.1.148/30192.168.1.149192.168.1.150192.168.1.151
192.168.1.152/30192.168.1.153192.168.1.154192.168.1.155
192.168.1.156/30192.168.1.157192.168.1.158192.168.1.159
192.168.1.160/30192.168.1.161192.168.1.162192.168.1.163
192.168.1.164/30192.168.1.165192.168.1.166192.168.1.167
192.168.1.168/30192.168.1.169192.168.1.170192.168.1.171
192.168.1.172/30192.168.1.173192.168.1.174192.168.1.175
192.168.1.176/30192.168.1.177192.168.1.178192.168.1.179
192.168.1.180/30192.168.1.181192.168.1.182192.168.1.183
192.168.1.184/30192.168.1.185192.168.1.186192.168.1.187
192.168.1.188/30192.168.1.189192.168.1.190192.168.1.191
192.168.1.192/30192.168.1.193192.168.1.194192.168.1.195
192.168.1.196/30192.168.1.197192.168.1.198192.168.1.199
192.168.1.200/30192.168.1.201192.168.1.202192.168.1.203
192.168.1.204/30192.168.1.205192.168.1.206192.168.1.207
192.168.1.208/30192.168.1.209192.168.1.210192.168.1.211
192.168.1.212/30192.168.1.213192.168.1.214192.168.1.215
192.168.1.216/30192.168.1.217192.168.1.218192.168.1.219
192.168.1.220/30192.168.1.221192.168.1.222192.168.1.223
192.168.1.224/30192.168.1.225192.168.1.226192.168.1.227
192.168.1.228/30192.168.1.229192.168.1.230192.168.1.231
192.168.1.232/30192.168.1.233192.168.1.234192.168.1.235
192.168.1.236/30192.168.1.237192.168.1.238192.168.1.239
192.168.1.240/30192.168.1.241192.168.1.242192.168.1.243
192.168.1.244/30192.168.1.245192.168.1.246192.168.1.247
192.168.1.248/30192.168.1.249192.168.1.250192.168.1.251
192.168.1.252/30192.168.1.253192.168.1.254192.168.1.255

Where a /30 is used

A /30 has 4 addresses and exactly 2 usable hosts, which is why it was the traditional size for a point-to-point link between two routers.

Many networks now use a /31 for those links instead, which saves two addresses per link; CCNA questions still use /30s often.

Usable addresses in a /30
WhereUsable addresses
Ordinary network2

Worked example: 192.168.1.77/30

The block-size method, the way you would do it in an exam without a calculator.

  1. /30 means a mask of 255.255.255.252.
  2. The interesting octet is the fourth one, where the mask is 252. Block size = 256 − 252 = 4.
  3. Subnets in that octet start at multiples of 4. 77 falls in the block from 76 to 79.
  4. Network address = 192.168.1.76; broadcast = the next block minus one = 192.168.1.79.
  5. Usable hosts run from the network plus one to the broadcast minus one: 192.168.1.77 to 192.168.1.78, which is 2^2 − 2 = 2 addresses.

Try another address in the subnet calculator, or practise without one on the subnetting practice questions.

/30 subnet mask: your questions

The subnet mask for /30 is 255.255.255.252. The prefix counts the 1 bits in the mask: 11111111.11111111.11111111.11111100 has 30 ones. The wildcard mask, used in Cisco ACLs and OSPF, is 0.0.0.3.

Other prefixes