IPv4#

Reference tables the operator needs at hand for subnet math during network reconnaissance, segmentation analysis, and exfil planning.

Private ranges#

Class

Size

Mask

Range

A

10.0.0.0/8

255.0.0.0

10.0.0.0, 10.255.255.255

B

172.16.0.0/12

255.240.0.0

172.16.0.0, 172.31.255.255

C

192.168.0.0/16

255.255.0.0

192.168.0.0, 192.168.255.255

Public subnet classes#

Class

Size

Mask

Range

Hosts

A

8.0.0.0/8

255.0.0.0

8.0.0.0, 8.255.255.255

16,777,214

B

8.8.0.0/16

255.255.0.0

8.8.0.0, 8.8.255.255

65,534

C

8.8.8.0/24

255.255.255.0

8.8.8.0, 8.8.8.255

254

Subnet table#

Subnet

Addresses

Netmask

Number of Class C

/31

2

255.255.255.254

1/128

/30

4

255.255.255.252

1/64

/29

8

255.255.255.248

1/32

/28

16

255.255.255.240

1/16

/27

32

255.255.255.224

1/8

/26

64

255.255.255.192

1/4

/25

128

255.255.255.128

1/2

/24

256

255.255.255.0

1

/23

512

255.255.254.0

2

/22

1024

255.255.252.0

4

/21

2048

255.255.248.0

8

/20

4096

255.255.240.0

16

/19

8192

255.255.224.0

32

/18

16384

255.255.192.0

64

/17

32768

255.255.128.0

128

/16

65536

255.255.0.0

256

/15

131072

255.254.0.0

512

/14

262144

255.252.0.0

1024

/13

524288

255.248.0.0

2048

/12

1048576

255.240.0.0

4096

/11

2097152

255.224.0.0

8192

/10

4194304

255.192.0.0

16384

/9

8388608

255.128.0.0

32768

/8

16777216

255.0.0.0

65536

References#