Interview Prep/Networking/Addressing, CIDR & Routing

A host is configured as 192.168.1.130/25. What network does it belong to and what is the broadcast address?

BeginnerScenarioAddressing, CIDR & Routing
Answer

Situation read → A /25 splits the last octet into two halves of 128 addresses: .0-.127 and .128-.255.

What I'd do →

  1. Block size is 128, and 130 falls in the second block
  2. Network is 192.168.1.128, first usable .129, last usable .254, broadcast 192.168.1.255
  3. Verify with ipcalc 192.168.1.130/25 or python3 -c "import ipaddress as i; print(i.ip_network('192.168.1.130/25', strict=False))"

Why → Network address is the host address ANDed with the mask; doing it by block size is faster than binary in an interview.

Interview tip → Mention that cloud providers reserve extra addresses, so usable hosts differ from the textbook 2^n - 2.

All Networking questions Roadmap: Networking for DevOps

More on Addressing, CIDR & Routing