Which addresses belong to a network?
A network like 192.168.1.0/24 is a block of addresses. Enter one to see which addresses your devices can use, how many there are, and what the number after the slash means.
272 addresses, all usable: 2001:db8:: to 2001:db8:0:ff:ffff:ffff:ffff:ffff.
IPv6 has no broadcast address, so every address in the block can be used. Reserved for examples in documentation, like this one.
An IPv6 address has 128 bits, written as 32 hex digits. The first 56 bits name the network; the last 72 number the devices.
2001:db8::/562001:db8::2001:db8:0:ff:ffff:ffff:ffff:ffffClick a row to try it with your address.
| Size | Devices | Typical use |
|---|---|---|
| /128 | One address | a single device |
| /127 | Two addresses | a link between two routers |
| /64 | 264 | one network, like a home Wi-Fi |
| /60 | 268 | what some providers give a home |
| /56 | 272 | what many providers give a home |
| /48 | 280 | a company or site |
| /32 | 296 | a provider |
One address can be written many ways. Browsers and most programs accept all of them, which is why odd-looking links like http://3232235777/ still open a site.
2001:db8::2001:0db8:0000:0000:0000:0000:0000:0000425407664112825928569039849516538265600.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpacurl ip5.io/subnet-calculator/192.168.1.0/24 curl "ip5.io/subnet-calculator/2001:db8::/48?format=json"
Worked out in your browser. Nothing you enter is stored.
An IPv4 address has 32 bits. The number after the slash says how many of them name the network; the rest number the devices in it. /24 leaves 8 bits for devices: 256 addresses, 254 of them usable.
The same thing written as an address. 255.255.255.0 is /24: the 255s cover the network part, the 0 the device part. Older settings screens ask for the mask, newer ones for the number after the slash.
The first one names the network itself, and the last one is the broadcast address, which reaches every device at once. The exceptions are /31, used for links between two routers, and /32, a single address. IPv6 has no broadcast, so it uses every address.
192.168.0.0/16, 10.0.0.0/8 and 172.16.0.0/12 are set aside for private networks. Every home can use them, because they never appear on the internet: your router shares one public address for all of them.
Only if their network parts match. With /24, 192.168.1.20 and 192.168.1.200 are on the same network; 192.168.1.20 and 192.168.2.20 are not, and need a router between them.