IP subnet calculator
Type an address with its prefix or mask to see the network, its usable range and masks. Split it into smaller subnets, or look up any prefix in the reference tables.
Network40.2.2.0/23
Usable hosts510
Subnet mask255.255.254.0
Addresses512
- Network address
40.2.2.0- Broadcast address
40.2.3.255- First usable
40.2.2.1- Last usable
40.2.3.254- Usable hosts
- 510 (512 less the network and broadcast addresses)
- Subnet mask
255.255.254.0- Wildcard mask
0.0.1.255(Cisco ACLs, OSPF)- Prefix length
- /23
- Type
- Public public
- Old class
- A (default /8)
- As numbers
- Hex
28020200· Integer671220224to671220735 - Reverse DNS zones
2.2.40.in-addr.arpa3.2.40.in-addr.arpa
/23 is not on a 8-bit boundary, so it takes 2 /24 zones.
Binary
| Binary (network bits bold, host bits grey) | Dotted | |
|---|---|---|
| Address | 00101000.00000010.00000010.00000000 | 40.2.2.0 |
| Subnet mask | 11111111.11111111.11111110.00000000 | 255.255.254.0 |
| Network | 00101000.00000010.00000010.00000000 | 40.2.2.0 |
| Broadcast | 00101000.00000010.00000011.11111111 | 40.2.3.255 |
Split into smaller subnets
40.2.2.0/23 makes 128 subnets of /30.
| # | Subnet | Usable hosts range | Broadcast | Hosts |
|---|---|---|---|---|
| 1 | 40.2.2.0/30 | 40.2.2.1 to 40.2.2.2 | 40.2.2.3 | 2 |
| 2 | 40.2.2.4/30 | 40.2.2.5 to 40.2.2.6 | 40.2.2.7 | 2 |
| 3 | 40.2.2.8/30 | 40.2.2.9 to 40.2.2.10 | 40.2.2.11 | 2 |
| 4 | 40.2.2.12/30 | 40.2.2.13 to 40.2.2.14 | 40.2.2.15 | 2 |
| 5 | 40.2.2.16/30 | 40.2.2.17 to 40.2.2.18 | 40.2.2.19 | 2 |
| 6 | 40.2.2.20/30 | 40.2.2.21 to 40.2.2.22 | 40.2.2.23 | 2 |
| 7 | 40.2.2.24/30 | 40.2.2.25 to 40.2.2.26 | 40.2.2.27 | 2 |
| 8 | 40.2.2.28/30 | 40.2.2.29 to 40.2.2.30 | 40.2.2.31 | 2 |
| 9 | 40.2.2.32/30 | 40.2.2.33 to 40.2.2.34 | 40.2.2.35 | 2 |
| 10 | 40.2.2.36/30 | 40.2.2.37 to 40.2.2.38 | 40.2.2.39 | 2 |
| 11 | 40.2.2.40/30 | 40.2.2.41 to 40.2.2.42 | 40.2.2.43 | 2 |
| 12 | 40.2.2.44/30 | 40.2.2.45 to 40.2.2.46 | 40.2.2.47 | 2 |
| 13 | 40.2.2.48/30 | 40.2.2.49 to 40.2.2.50 | 40.2.2.51 | 2 |
| 14 | 40.2.2.52/30 | 40.2.2.53 to 40.2.2.54 | 40.2.2.55 | 2 |
| 15 | 40.2.2.56/30 | 40.2.2.57 to 40.2.2.58 | 40.2.2.59 | 2 |
| 16 | 40.2.2.60/30 | 40.2.2.61 to 40.2.2.62 | 40.2.2.63 | 2 |
| 17 | 40.2.2.64/30 | 40.2.2.65 to 40.2.2.66 | 40.2.2.67 | 2 |
| 18 | 40.2.2.68/30 | 40.2.2.69 to 40.2.2.70 | 40.2.2.71 | 2 |
| 19 | 40.2.2.72/30 | 40.2.2.73 to 40.2.2.74 | 40.2.2.75 | 2 |
| 20 | 40.2.2.76/30 | 40.2.2.77 to 40.2.2.78 | 40.2.2.79 | 2 |
| 21 | 40.2.2.80/30 | 40.2.2.81 to 40.2.2.82 | 40.2.2.83 | 2 |
| 22 | 40.2.2.84/30 | 40.2.2.85 to 40.2.2.86 | 40.2.2.87 | 2 |
| 23 | 40.2.2.88/30 | 40.2.2.89 to 40.2.2.90 | 40.2.2.91 | 2 |
| 24 | 40.2.2.92/30 | 40.2.2.93 to 40.2.2.94 | 40.2.2.95 | 2 |
| 25 | 40.2.2.96/30 | 40.2.2.97 to 40.2.2.98 | 40.2.2.99 | 2 |
| 26 | 40.2.2.100/30 | 40.2.2.101 to 40.2.2.102 | 40.2.2.103 | 2 |
| 27 | 40.2.2.104/30 | 40.2.2.105 to 40.2.2.106 | 40.2.2.107 | 2 |
| 28 | 40.2.2.108/30 | 40.2.2.109 to 40.2.2.110 | 40.2.2.111 | 2 |
| 29 | 40.2.2.112/30 | 40.2.2.113 to 40.2.2.114 | 40.2.2.115 | 2 |
| 30 | 40.2.2.116/30 | 40.2.2.117 to 40.2.2.118 | 40.2.2.119 | 2 |
| 31 | 40.2.2.120/30 | 40.2.2.121 to 40.2.2.122 | 40.2.2.123 | 2 |
| 32 | 40.2.2.124/30 | 40.2.2.125 to 40.2.2.126 | 40.2.2.127 | 2 |
| 33 | 40.2.2.128/30 | 40.2.2.129 to 40.2.2.130 | 40.2.2.131 | 2 |
| 34 | 40.2.2.132/30 | 40.2.2.133 to 40.2.2.134 | 40.2.2.135 | 2 |
| 35 | 40.2.2.136/30 | 40.2.2.137 to 40.2.2.138 | 40.2.2.139 | 2 |
| 36 | 40.2.2.140/30 | 40.2.2.141 to 40.2.2.142 | 40.2.2.143 | 2 |
| 37 | 40.2.2.144/30 | 40.2.2.145 to 40.2.2.146 | 40.2.2.147 | 2 |
| 38 | 40.2.2.148/30 | 40.2.2.149 to 40.2.2.150 | 40.2.2.151 | 2 |
| 39 | 40.2.2.152/30 | 40.2.2.153 to 40.2.2.154 | 40.2.2.155 | 2 |
| 40 | 40.2.2.156/30 | 40.2.2.157 to 40.2.2.158 | 40.2.2.159 | 2 |
| 41 | 40.2.2.160/30 | 40.2.2.161 to 40.2.2.162 | 40.2.2.163 | 2 |
| 42 | 40.2.2.164/30 | 40.2.2.165 to 40.2.2.166 | 40.2.2.167 | 2 |
| 43 | 40.2.2.168/30 | 40.2.2.169 to 40.2.2.170 | 40.2.2.171 | 2 |
| 44 | 40.2.2.172/30 | 40.2.2.173 to 40.2.2.174 | 40.2.2.175 | 2 |
| 45 | 40.2.2.176/30 | 40.2.2.177 to 40.2.2.178 | 40.2.2.179 | 2 |
| 46 | 40.2.2.180/30 | 40.2.2.181 to 40.2.2.182 | 40.2.2.183 | 2 |
| 47 | 40.2.2.184/30 | 40.2.2.185 to 40.2.2.186 | 40.2.2.187 | 2 |
| 48 | 40.2.2.188/30 | 40.2.2.189 to 40.2.2.190 | 40.2.2.191 | 2 |
| 49 | 40.2.2.192/30 | 40.2.2.193 to 40.2.2.194 | 40.2.2.195 | 2 |
| 50 | 40.2.2.196/30 | 40.2.2.197 to 40.2.2.198 | 40.2.2.199 | 2 |
| 51 | 40.2.2.200/30 | 40.2.2.201 to 40.2.2.202 | 40.2.2.203 | 2 |
| 52 | 40.2.2.204/30 | 40.2.2.205 to 40.2.2.206 | 40.2.2.207 | 2 |
| 53 | 40.2.2.208/30 | 40.2.2.209 to 40.2.2.210 | 40.2.2.211 | 2 |
| 54 | 40.2.2.212/30 | 40.2.2.213 to 40.2.2.214 | 40.2.2.215 | 2 |
| 55 | 40.2.2.216/30 | 40.2.2.217 to 40.2.2.218 | 40.2.2.219 | 2 |
| 56 | 40.2.2.220/30 | 40.2.2.221 to 40.2.2.222 | 40.2.2.223 | 2 |
| 57 | 40.2.2.224/30 | 40.2.2.225 to 40.2.2.226 | 40.2.2.227 | 2 |
| 58 | 40.2.2.228/30 | 40.2.2.229 to 40.2.2.230 | 40.2.2.231 | 2 |
| 59 | 40.2.2.232/30 | 40.2.2.233 to 40.2.2.234 | 40.2.2.235 | 2 |
| 60 | 40.2.2.236/30 | 40.2.2.237 to 40.2.2.238 | 40.2.2.239 | 2 |
| 61 | 40.2.2.240/30 | 40.2.2.241 to 40.2.2.242 | 40.2.2.243 | 2 |
| 62 | 40.2.2.244/30 | 40.2.2.245 to 40.2.2.246 | 40.2.2.247 | 2 |
| 63 | 40.2.2.248/30 | 40.2.2.249 to 40.2.2.250 | 40.2.2.251 | 2 |
| 64 | 40.2.2.252/30 | 40.2.2.253 to 40.2.2.254 | 40.2.2.255 | 2 |
| 65 | 40.2.3.0/30 | 40.2.3.1 to 40.2.3.2 | 40.2.3.3 | 2 |
| 66 | 40.2.3.4/30 | 40.2.3.5 to 40.2.3.6 | 40.2.3.7 | 2 |
| 67 | 40.2.3.8/30 | 40.2.3.9 to 40.2.3.10 | 40.2.3.11 | 2 |
| 68 | 40.2.3.12/30 | 40.2.3.13 to 40.2.3.14 | 40.2.3.15 | 2 |
| 69 | 40.2.3.16/30 | 40.2.3.17 to 40.2.3.18 | 40.2.3.19 | 2 |
| 70 | 40.2.3.20/30 | 40.2.3.21 to 40.2.3.22 | 40.2.3.23 | 2 |
| 71 | 40.2.3.24/30 | 40.2.3.25 to 40.2.3.26 | 40.2.3.27 | 2 |
| 72 | 40.2.3.28/30 | 40.2.3.29 to 40.2.3.30 | 40.2.3.31 | 2 |
| 73 | 40.2.3.32/30 | 40.2.3.33 to 40.2.3.34 | 40.2.3.35 | 2 |
| 74 | 40.2.3.36/30 | 40.2.3.37 to 40.2.3.38 | 40.2.3.39 | 2 |
| 75 | 40.2.3.40/30 | 40.2.3.41 to 40.2.3.42 | 40.2.3.43 | 2 |
| 76 | 40.2.3.44/30 | 40.2.3.45 to 40.2.3.46 | 40.2.3.47 | 2 |
| 77 | 40.2.3.48/30 | 40.2.3.49 to 40.2.3.50 | 40.2.3.51 | 2 |
| 78 | 40.2.3.52/30 | 40.2.3.53 to 40.2.3.54 | 40.2.3.55 | 2 |
| 79 | 40.2.3.56/30 | 40.2.3.57 to 40.2.3.58 | 40.2.3.59 | 2 |
| 80 | 40.2.3.60/30 | 40.2.3.61 to 40.2.3.62 | 40.2.3.63 | 2 |
| 81 | 40.2.3.64/30 | 40.2.3.65 to 40.2.3.66 | 40.2.3.67 | 2 |
| 82 | 40.2.3.68/30 | 40.2.3.69 to 40.2.3.70 | 40.2.3.71 | 2 |
| 83 | 40.2.3.72/30 | 40.2.3.73 to 40.2.3.74 | 40.2.3.75 | 2 |
| 84 | 40.2.3.76/30 | 40.2.3.77 to 40.2.3.78 | 40.2.3.79 | 2 |
| 85 | 40.2.3.80/30 | 40.2.3.81 to 40.2.3.82 | 40.2.3.83 | 2 |
| 86 | 40.2.3.84/30 | 40.2.3.85 to 40.2.3.86 | 40.2.3.87 | 2 |
| 87 | 40.2.3.88/30 | 40.2.3.89 to 40.2.3.90 | 40.2.3.91 | 2 |
| 88 | 40.2.3.92/30 | 40.2.3.93 to 40.2.3.94 | 40.2.3.95 | 2 |
| 89 | 40.2.3.96/30 | 40.2.3.97 to 40.2.3.98 | 40.2.3.99 | 2 |
| 90 | 40.2.3.100/30 | 40.2.3.101 to 40.2.3.102 | 40.2.3.103 | 2 |
| 91 | 40.2.3.104/30 | 40.2.3.105 to 40.2.3.106 | 40.2.3.107 | 2 |
| 92 | 40.2.3.108/30 | 40.2.3.109 to 40.2.3.110 | 40.2.3.111 | 2 |
| 93 | 40.2.3.112/30 | 40.2.3.113 to 40.2.3.114 | 40.2.3.115 | 2 |
| 94 | 40.2.3.116/30 | 40.2.3.117 to 40.2.3.118 | 40.2.3.119 | 2 |
| 95 | 40.2.3.120/30 | 40.2.3.121 to 40.2.3.122 | 40.2.3.123 | 2 |
| 96 | 40.2.3.124/30 | 40.2.3.125 to 40.2.3.126 | 40.2.3.127 | 2 |
| 97 | 40.2.3.128/30 | 40.2.3.129 to 40.2.3.130 | 40.2.3.131 | 2 |
| 98 | 40.2.3.132/30 | 40.2.3.133 to 40.2.3.134 | 40.2.3.135 | 2 |
| 99 | 40.2.3.136/30 | 40.2.3.137 to 40.2.3.138 | 40.2.3.139 | 2 |
| 100 | 40.2.3.140/30 | 40.2.3.141 to 40.2.3.142 | 40.2.3.143 | 2 |
| 101 | 40.2.3.144/30 | 40.2.3.145 to 40.2.3.146 | 40.2.3.147 | 2 |
| 102 | 40.2.3.148/30 | 40.2.3.149 to 40.2.3.150 | 40.2.3.151 | 2 |
| 103 | 40.2.3.152/30 | 40.2.3.153 to 40.2.3.154 | 40.2.3.155 | 2 |
| 104 | 40.2.3.156/30 | 40.2.3.157 to 40.2.3.158 | 40.2.3.159 | 2 |
| 105 | 40.2.3.160/30 | 40.2.3.161 to 40.2.3.162 | 40.2.3.163 | 2 |
| 106 | 40.2.3.164/30 | 40.2.3.165 to 40.2.3.166 | 40.2.3.167 | 2 |
| 107 | 40.2.3.168/30 | 40.2.3.169 to 40.2.3.170 | 40.2.3.171 | 2 |
| 108 | 40.2.3.172/30 | 40.2.3.173 to 40.2.3.174 | 40.2.3.175 | 2 |
| 109 | 40.2.3.176/30 | 40.2.3.177 to 40.2.3.178 | 40.2.3.179 | 2 |
| 110 | 40.2.3.180/30 | 40.2.3.181 to 40.2.3.182 | 40.2.3.183 | 2 |
| 111 | 40.2.3.184/30 | 40.2.3.185 to 40.2.3.186 | 40.2.3.187 | 2 |
| 112 | 40.2.3.188/30 | 40.2.3.189 to 40.2.3.190 | 40.2.3.191 | 2 |
| 113 | 40.2.3.192/30 | 40.2.3.193 to 40.2.3.194 | 40.2.3.195 | 2 |
| 114 | 40.2.3.196/30 | 40.2.3.197 to 40.2.3.198 | 40.2.3.199 | 2 |
| 115 | 40.2.3.200/30 | 40.2.3.201 to 40.2.3.202 | 40.2.3.203 | 2 |
| 116 | 40.2.3.204/30 | 40.2.3.205 to 40.2.3.206 | 40.2.3.207 | 2 |
| 117 | 40.2.3.208/30 | 40.2.3.209 to 40.2.3.210 | 40.2.3.211 | 2 |
| 118 | 40.2.3.212/30 | 40.2.3.213 to 40.2.3.214 | 40.2.3.215 | 2 |
| 119 | 40.2.3.216/30 | 40.2.3.217 to 40.2.3.218 | 40.2.3.219 | 2 |
| 120 | 40.2.3.220/30 | 40.2.3.221 to 40.2.3.222 | 40.2.3.223 | 2 |
| 121 | 40.2.3.224/30 | 40.2.3.225 to 40.2.3.226 | 40.2.3.227 | 2 |
| 122 | 40.2.3.228/30 | 40.2.3.229 to 40.2.3.230 | 40.2.3.231 | 2 |
| 123 | 40.2.3.232/30 | 40.2.3.233 to 40.2.3.234 | 40.2.3.235 | 2 |
| 124 | 40.2.3.236/30 | 40.2.3.237 to 40.2.3.238 | 40.2.3.239 | 2 |
| 125 | 40.2.3.240/30 | 40.2.3.241 to 40.2.3.242 | 40.2.3.243 | 2 |
| 126 | 40.2.3.244/30 | 40.2.3.245 to 40.2.3.246 | 40.2.3.247 | 2 |
| 127 | 40.2.3.248/30 | 40.2.3.249 to 40.2.3.250 | 40.2.3.251 | 2 |
| 128 | 40.2.3.252/30 | 40.2.3.253 to 40.2.3.254 | 40.2.3.255 | 2 |
IPv4 CIDR reference (/0 to /32)
| Prefix | Subnet mask | Wildcard | Addresses | Usable hosts | Size | Typical use |
|---|---|---|---|---|---|---|
| /0 | 0.0.0.0 | 255.255.255.255 | 4,294,967,296 | 4,294,967,294 | 16,777,216 × /24 | |
| /1 | 128.0.0.0 | 127.255.255.255 | 2,147,483,648 | 2,147,483,646 | 8,388,608 × /24 | |
| /2 | 192.0.0.0 | 63.255.255.255 | 1,073,741,824 | 1,073,741,822 | 4,194,304 × /24 | |
| /3 | 224.0.0.0 | 31.255.255.255 | 536,870,912 | 536,870,910 | 2,097,152 × /24 | |
| /4 | 240.0.0.0 | 15.255.255.255 | 268,435,456 | 268,435,454 | 1,048,576 × /24 | |
| /5 | 248.0.0.0 | 7.255.255.255 | 134,217,728 | 134,217,726 | 524,288 × /24 | |
| /6 | 252.0.0.0 | 3.255.255.255 | 67,108,864 | 67,108,862 | 262,144 × /24 | |
| /7 | 254.0.0.0 | 1.255.255.255 | 33,554,432 | 33,554,430 | 131,072 × /24 | |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | 65,536 × /24 | Old class A; 10.0.0.0/8 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | 32,768 × /24 | |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | 16,384 × /24 | |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | 8,192 × /24 | |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | 4,096 × /24 | 172.16.0.0/12 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | 2,048 × /24 | |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | 1,024 × /24 | |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | 512 × /24 | |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | 256 × /24 | Old class B; 192.168.0.0/16 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | 128 × /24 | |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | 64 × /24 | |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | 32 × /24 | |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | 16 × /24 | |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | 8 × /24 | |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | 4 × /24 | Large office or guest Wi-Fi (1,022 hosts) |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | 2 × /24 | Larger office LAN (510 hosts) |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | 1 × /24 | Typical office LAN (old class C) |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | 1/2 of a /24 | Smaller LAN or VLAN |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | 1/4 of a /24 | Smaller LAN or VLAN |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | 1/8 of a /24 | Small VLAN, phones, cameras |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | 1/16 of a /24 | Small VLAN, phones, cameras |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | 1/32 of a /24 | Small fixed public block (5 usable) |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | 1/64 of a /24 | Point-to-point (old style) |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | 1/128 of a /24 | Point-to-point link (RFC 3021) |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | 1/256 of a /24 | One host |
IPv6 prefix reference
| Prefix | Addresses | /64 LANs | /48 sites | Nibble | Typical use |
|---|---|---|---|---|---|
| /3 | 42,535,295,865,117,307,932,921,825,928,971,026,432 (2^125) | 2,305,843,009,213,693,952 | 35,184,372,088,832 | No | All global unicast (2000::/3) |
| /16 | 5,192,296,858,534,827,628,530,496,329,220,096 (2^112) | 281,474,976,710,656 | 4,294,967,296 | Yes | |
| /20 | 324,518,553,658,426,726,783,156,020,576,256 (2^108) | 17,592,186,044,416 | 268,435,456 | Yes | Large provider allocation (RIPE minimum for some) |
| /29 | 633,825,300,114,114,700,748,351,602,688 (2^99) | 34,359,738,368 | 524,288 | No | RIPE allocation to a provider (often) |
| /32 | 79,228,162,514,264,337,593,543,950,336 (2^96) | 4,294,967,296 | 65,536 | Yes | Provider allocation (RIPE default) |
| /36 | 4,951,760,157,141,521,099,596,496,896 (2^92) | 268,435,456 | 4,096 | Yes | |
| /40 | 309,485,009,821,345,068,724,781,056 (2^88) | 16,777,216 | 256 | Yes | |
| /44 | 19,342,813,113,834,066,795,298,816 (2^84) | 1,048,576 | 16 | Yes | |
| /48 | 1,208,925,819,614,629,174,706,176 (2^80) | 65,536 | 1 | Yes | One site or organisation (RIPE PI / assignment) |
| /52 | 75,557,863,725,914,323,419,136 (2^76) | 4,096 | Yes | ||
| /56 | 4,722,366,482,869,645,213,696 (2^72) | 256 | Yes | Small site or home (common provider assignment) | |
| /60 | 295,147,905,179,352,825,856 (2^68) | 16 | Yes | Some home broadband (16 LANs) | |
| /64 | 18,446,744,073,709,551,616 (2^64) | 1 | Yes | One LAN or VLAN (needed for SLAAC) | |
| /72 | 72,057,594,037,927,936 (2^56) | 1/256 of a /64 | Yes | ||
| /80 | 281,474,976,710,656 (2^48) | 1/65,536 of a /64 | Yes | ||
| /96 | 4,294,967,296 | 1/4,294,967,296 of a /64 | Yes | Embeds an IPv4 address (NAT64) | |
| /112 | 65,536 | 1/281,474,976,710,656 of a /64 | Yes | ||
| /120 | 256 | 1/72,057,594,037,927,936 of a /64 | Yes | ||
| /124 | 16 | 1/1,152,921,504,606,846,976 of a /64 | Yes | ||
| /126 | 4 | 1/4,611,686,018,427,387,904 of a /64 | No | ||
| /127 | 2 | 1/9,223,372,036,854,775,808 of a /64 | No | Point-to-point link (RFC 6164) | |
| /128 | 1 | 1/18,446,744,073,709,551,616 of a /64 | Yes | One host or loopback |
Private and special ranges
IPv4
| Range | Name | What it is |
|---|---|---|
255.255.255.255/32 | Limited broadcast | Every host on the local network |
0.0.0.0/8 | This network | Not routed; 0.0.0.0 means "any address" in settings |
10.0.0.0/8 | Private (RFC 1918) | Office and home networks; not routed on the internet |
100.64.0.0/10 | Shared address space (CGNAT) | Used by providers behind carrier-grade NAT (RFC 6598) |
127.0.0.0/8 | Loopback | This computer |
169.254.0.0/16 | Link-local (APIPA) | Self-assigned when no DHCP server answers |
172.16.0.0/12 | Private (RFC 1918) | Office and home networks; not routed on the internet |
192.0.0.0/24 | IETF protocol assignments | Special uses such as DS-Lite |
192.0.2.0/24 | Documentation (TEST-NET-1) | For examples; never used on a network |
192.88.99.0/24 | 6to4 relay (deprecated) | Formerly anycast for 6to4 |
192.168.0.0/16 | Private (RFC 1918) | Office and home networks; not routed on the internet |
198.18.0.0/15 | Benchmarking | Network equipment testing (RFC 2544) |
198.51.100.0/24 | Documentation (TEST-NET-2) | For examples; never used on a network |
203.0.113.0/24 | Documentation (TEST-NET-3) | For examples; never used on a network |
224.0.0.0/4 | Multicast | One-to-many traffic, such as IPTV and routing protocols |
240.0.0.0/4 | Reserved | Future use; not usable on most systems |
IPv6
| Range | Name | What it is |
|---|---|---|
::/128 | Unspecified | No address; :: means "any address" in settings |
::1/128 | Loopback | This computer |
::ffff:0:0/96 | IPv4-mapped | An IPv4 address written as IPv6 |
64:ff9b::/96 | NAT64 | IPv4 addresses reached through a NAT64 gateway |
100::/64 | Discard only | Traffic sent here is dropped (RFC 6666) |
2001:db8::/32 | Documentation | For examples; never used on a network |
2001::/32 | Teredo | IPv6 tunnelled over IPv4 UDP |
2002::/16 | 6to4 | IPv6 tunnelled over IPv4 (largely retired) |
3fff::/20 | Documentation | For examples (RFC 9637) |
fc00::/7 | Unique local (ULA) | Private IPv6, like RFC 1918; usually fd00::/8 |
fe80::/10 | Link-local | Every IPv6 interface has one; not routed |
ff00::/8 | Multicast | One-to-many traffic; replaces broadcast |
2000::/3 | Global unicast | Public internet addresses |