All courses › Databases, Networks and Security › IP addresses

IP addresses

An IPv4 address consists of 32 bits, written as four numbers from 0 to 255. The prefix after the slash says how many bits belong to the network. The remaining bits number the machines in the network.

192.168.1.10/24\text{192.168.1.10/24}address with a 24-bit network part
/24↔255.255.255.0/24 \leftrightarrow \text{255.255.255.0}prefix and netmask

Symbols

/p/pprefix: number of network bits
octet\text{octet}8 bits, a number 0–255

Example

10.0.5.77/24\text{10.0.5.77/24}: the network is 10.0.5.0\text{10.0.5.0}, and the machine is number 77 in it.

Each octet is 8 bits, so four octets give 32 bits.
Practise iP networks and subnetting for free →

← JOIN and GROUP BY · Subnetting →

Part of Databases, Networks and Security: IP networks and subnetting.