What Does Netmask Mean?

Netmask is a term used in computer networking to define the class and range of Internet Protocol (IP) addresses.


Netmask provides the available number range of IP addresses From Class A to Class C, and specifies a mask to divide these networks into sub-networks (subnets).

Netmask and subnet are often used alternatively. In fact, subnets are created after the application of netmask.

Techopedia Explains Netmask

Netmask primarily provides a method to create small subnetworks from a large range of IP addresses. Generally, netmask length is defined in up to 24-bit format for all types of IP classes. The division or creation of networks into subnetworks depends on the class of IP address in use along with their available netmasks. For example, the netmasks for the three IP classes are:

  • for Class A with an 8-bit netmask
  • for Class B with a 16-bit netmask
  • for Class A with a 24-bit netmask

The greater the length of netmask the more networks it can accommodate. Therefore, the number of hosts decreases from Class A to Class C, whereas the number of available networks or subnetworks increases.


Related Terms

Margaret Rouse

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.