What Is Subnet Mask and CIDR Notation? A Beginner's Guide
When working with IPv4 networks, you will almost always see an IP address paired with a subnet mask or written in CIDR notation . Understanding subnet masks is essential for network troubleshooting, router configuration, setting up local servers, and passing basic networking certifications. Quick answer: A subnet mask separates an IP address into two parts: the network portion and the host portion . CIDR notation (like /24 ) is a shorthand way of expressing how many bits belong to the network portion. What is a subnet mask? An IPv4 address consists of 32 bits divided into four octets. However, an IP address alone does not tell a device which part identifies the network and which part identifies the specific device on that network. The subnet mask acts as a filter or template that tells the operating system and router where the network address ends and the host address begins. Common home network subnet mask example...