Interview Prep/Networking/IP Addressing, CIDR, Subnetting & Routing

Given 172.16.37.200/21, what is the network address, broadcast and range?

IntermediateConceptIP Addressing, CIDR, Subnetting & Routing
Answer

/21 means a block of 8 in the third octet (255.255.248.0). 37 falls in the 32–39 block, so the network is 172.16.32.0, broadcast is 172.16.39.255, and the usable range is 172.16.32.1–172.16.39.254.

python3 -c "import ipaddress as i; n=i.ip_network('172.16.37.200/21',strict=False); print(n, n.broadcast_address)"
All Networking questions Roadmap: Networking for DevOps

More on IP Addressing, CIDR, Subnetting & Routing