Subnet Mask
Subnet Mask
Subnet Mask
<< Back to Technical Glossary
The device called a gateway or default gateway connects local devices to other networks. This means that when a local
device wants to send information to a device at an IP address on another network, it first sends its packets to the gateway,
which then forwards the data on to its destination outside of the local network.
1
CCNA VOICE
The “255” address is always assigned to a broadcast address, and the “0” address is always assigned to a network
address. Neither can be assigned to hosts, as they are reserved for these special purposes.
The IP address, subnet mask and gateway or router comprise an underlying structure—the Internet Protocol—that most
networks use to facilitate inter-device communication.
When organizations need additional subnetworking, subnetting divides the host element of the IP address further into a
subnet. The goal of subnet masks are simply to enable the subnetting process. The phrase “mask” is applied because the
subnet mask essentially uses its own 32-bit number to mask the IP address.
Because binary is challenging, we convert each octet so they are expressed in dot decimal. This results in the
characteristic dotted decimal format for IP addresses—for example, 172.16.254.1. The range of values in decimal is 0 to
255 because that represents 00000000 to 11111111 in binary.
(Class D networks are reserved for multicasting, and Class E networks not used on the internet because they are reserved
for research by the Internet Engineering Task Force IETF.)
2
CCNA VOICE
A Class A subnet mask reflects the network portion in the first octet and leaves octets 2, 3, and 4 for the network
manager to divide into hosts and subnets as needed. Class A is for networks with more than 65,536 hosts.
A Class B subnet mask claims the first two octets for the network, leaving the remaining part of the address, the 16 bits
of octets 3 and 4, for the subnet and host part. Class B is for networks with 256 to 65,534 hosts.
In a Class C subnet mask, the network portion is the first three octets with the hosts and subnets in just the remaining 8
bits of octet 4. Class C is for smaller networks with fewer than 254 hosts.
Class A: 255.0.0.0
Class B: 255.255.0.0
Class C: 255.255.255.0
You can determine the number and type of IP addresses any given local network requires based on its default subnet
mask.
An example of Class A IP address and subnet mask would be the Class A default submask of 255.0.0.0 and an IP address
of 10.20.12.2.
Subnetting enables an organization to conceal network complexity and reduce network traffic by adding subnets without
a new network number. When a single network number must be used across many segments of a local area network
(LAN), subnetting is essential.
Network Addressing
3
CCNA VOICE
The standard modern network prefix, used for both IPv6 and IPv4, is Classless Inter-Domain Routing (CIDR) notation.
IPv4 addresses represented in CIDR notation are called network masks, and they specify the number of bits in the prefix
to the address after a forward slash (/) separator. This is the sole standards-based format in IPv6 to denote routing or
network prefixes.
To assign an IP address to a network interface since the advent of CIDR, there are two parameters: a subnet mask and the
address. Subnetting increases routing complexity, because there must be a separate entry in each connected router’s
tables to represent each locally connected subnet.
Here are some of the most common varieties of IP subnet mask calculator:
An IPv4 Wildcard Calculator reveals which portions of an IP address are available for examination by calculating the IP
address wildcard mask.
Use a HEX Subnet Calculator to calculate the first and last subnet addresses, including the hexadecimal notations of
multicast addresses.
A simple IP Subnet Mask Calculator determines the smallest available corresponding subnet and subnet mask.
A Subnet Range/Address Range Calculator provides start and end addresses.
10.0.1.1/24
4
CCNA VOICE
216.202.192.66/22
However, you do not mask the IP address, you mask the subnet.