IP intervals

This is a list of the IP addresses available for different netmasks. The first column shows the number of bits used for the net address, i. e., is set to 1 in the netmask. The second column maps the number of bits to a netmask on the usual octet-dot format. The third column shows the address class for this netmask.

The second table shows the IP address interval for each class.

1-set bitsMaskIP address class
00.0.0.00
1128.0.0.01
2192.0.0.02
3224.0.0.03
4240.0.0.04
5248.0.0.05
6252.0.0.06
7254.0.0.07
8255.0.0.00
9255.128.0.01
10255.192.0.02
11255.224.0.03
12255.240.0.04
13255.248.0.05
14255.252.0.06
15255.254.0.07
16255.255.0.00
17255.255.128.01
18255.255.192.02
19255.255.224.03
20255.255.240.04
21255.255.248.05
22255.255.252.06
23255.255.254.07
24255.255.255.00
25255.255.255.1281
26255.255.255.1922
27255.255.255.2243
28255.255.255.2404
29255.255.255.2485
30255.255.255.2526
31255.255.255.2547
32255.255.255.2558

Example: We want to split the network 130.234.250.0/25 (i.e., 130.234.250.0-130.234.250.127) into four subnets. The netmask for each subnet will be 27 bits, which means 255.255.255.224. This netmask is in IP class 3. The second table gives us the following available intervals: 0-31, 32-63, 64-95, and 96-127 (then we are out of IP addresses). One of the subnets will be 130.234.250.64/27 (130.234.250.64-130.234.250.95).

ClassIP intervals       
00-255       
10-127128-255      
20-6364-127128-191192-255    
30-3132-6364-9596-127128-159160-191192-223224-255
40-1516-3132-4748-6364-7980-9596-111112-127
 128-143144-159160-175176-191192-207208-223224-239240-255
50-78-1516-2324-3132-3940-4748-5556-63
 64-7172-7980-8788-9596-103104-111112-119120-127
 128-135136-143144-151152-159160-167168-175176-183184-191
 192-199200-207208-215216-223224-231232-239240-247248-255
60-34-78-1112-1516-1920-2324-2728-31
 32-3536-3940-4344-4748-5152-5556-5960-63
 64-6768-7172-7576-7980-8384-8788-9192-95
 96-99100-103104-107108-111112-115116-119120-123124-127
 128-131132-135136-139140-143144-147148-151152-155156-159
 160-163164-167168-171172-175176-179180-183184-187188-191
 192-195196-199200-203204-207208-211212-215216-219220-223
 224-227228-231232-235236-239240-243244-247248-251252-255
70-12-34-56-78-910-11...254-255
8012345...255

You could have a large network, for example 130.234.128.0/18, which is interpreted from the tables as all IP addresses from 130.234.128.0 to 130.234.191.255, inclusive (18 is in class no. 2, giving an IP interval of 128-191). N.B.: The netmask only reaches the third byte, which means that all IP addresses in byte 4 are available.

Reserved IP addresses

The Internet Assigned Numbers Authority (IANA) has reserved the following three blocks of the IP address space for private internets (see also RFC 1918):