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

What is a subnet mask and what is the default gateway?

BeginnerConceptIP Addressing, CIDR, Subnetting & Routing
Answer

The mask (255.255.255.0 for /24) tells a host which destination addresses are on-link. Anything inside the subnet is reached directly via ARP; anything else is sent to the default gateway, the router on the local subnet that forwards it onward.

If a host has the wrong mask or gateway you get the classic symptom: it reaches some machines but not others.

All Networking questions Roadmap: Networking for DevOps

More on IP Addressing, CIDR, Subnetting & Routing