Every address has two parts: the network it's on, and the host, which machine on that network.
The number after the slash, the prefix, says how much is network. An IPv4 address is 32 bits (four numbers of 8 bits each), and /24 means the first 24 bits, the first three numbers, name the network:
10.0.0network part.5host part/24prefix
Every machine on the office network starts with 10.0.0, and the last number tells them apart: ops is .5, web is .10, db is .20.
text
learner@ops:~$ ip addr
…
inet 10.0.0.5/24 brd 10.0.0.255 scope global eth0
…Objectives
- What is the network part of
ops's address? - What is
web's host part?