Subnet mask

From LQWiki
(Redirected from Netmask)
Jump to: navigation, search

A subnet mask is used in the IP addressing system which divides the IP address in two parts: the network part and the host part. A subnet mask (also shortened to netmask) is usually expressed like an IP address in dotted decimal notation. The subnet mask works by masking out the network part from the full IP address:

The logical operation AND is performed with the IP address and netmask. AND =

This tells us that the computer with an address of belongs to a subnet called


A subnet mask can also be given in this notation:
where /24 means "with the first 24 bits set", so, it is the same as See CIDR_notation.

See also

This article is a stub and needs to be finished. Plunge forward and help it grow!