Understanding Network Subnetting: IPv4
2024-02-01
Subnetting is the process of diving networks into smaller segments. A IPv4 address is a 32 bit number divided into 8 bit numbers.
10.10.10.10 ← (deminal)
↓
10. 10. 10. 10 ← (decimal spaced)
↓
00001010 00001010 00001010 00001010 ← (binary)
Examples#
A subnet of 255.255.255.255 or 10.10.10.0/32 can have 1 address.
- 11111111 11111111 11111111 11111111
A subnet of 255.255.255.252 or 10.10.10.0/30 can have 2 addresses.
- 11111111 11111111 11111111 11111110
A subnet of 255.255.255.0 or 10.10.0.0/24 can have 256 addresses.
- 11111111 11111111 11111111 00000000
A subnet of 255.255.254.0 or 10.10.0.0/23 can have 512 addresses.
- 11111111 11111111 11111110 00000000
The difference between 3 & 4 is that the third part of the IPv4 can be 0 or 1, i.e 10.10.0.[1-255] or 10.10.1.[1-255]