Support Center

Subnet Representations and Aliases

Last Updated: Oct 07, 2014 08:38PM PDT
Anybody who has manually configured their network settings has had to enter a subnet mask, usually in the form of “#.#.#.#”. The most familiar subnet value for many is, representing that the first three segments of the associated IP address must be the same as another IP address for the other address to match the subnet. The behaviour of this subnet is almost self-evident due to the syntax. However, this syntax can be misleading. What does a subnet of mean? Or the subnet And why is the subnet invalid?

An alternative, if not more sensible, representation of subnets is the slash notation, or “/n” where ‘n’ is the ‘mask length’ – the number of bits that must match between two IP addresses to make them part of the same subnet.

Consider the following:

          (binary: 11000000 10101000 00000000 00000001)
          (binary: 11111111 11111111 11111111 00000000)

This would be the same as, as has the first 24 bits turned on, meaning anything that starts with 192.168.0.x will match it.

A /16 is equivalent to, as only the first 16 bits are on. would match anything between and

It gets a bit messy with mask lengths that aren’t multiples of 8, for example (/12 is equivalent to would match anything between and, and would match anything between and This is because the addresses must match all 8 bits of the first segment (10), and only the most significant 4 bits of the second segment (16), making for a total match of 12 bits, or a /12 subnet. For example;

          (00001010 00000000 00000000 00000001)
          (00001010 00010000 00000000 00000001)
     Subnet (/12)
          (11111111 11110000 00000000 00000000)

In effect, the shown bits must be the same for the /12 subnet to match an IP in that subnet range;

          (00001010 0001xxxx xxxxxxxx xxxxxxxx)
     IP matches
          (00001010 00010000 00000001 00000101)
     IP matches
          (00001010 00010011 00000011 00000001)
     IP matches
          (00001010 00011111 00000001 00000001)
     IP does not match
          (00001010 00100000 00000001 00000001)
     IP does not match
          (00001010 00000000 00000001 00000001)

WebSpy Vantage uses the slash notation to represent subnet values in Subnet Aliases because it is easier to understand and represent. The slash notation is also used to represent IPv6 subnets, where there is no suitable analogue to the #.#.#.# representation of IPv4 subnets.

I found a subnet calculator that converts between the slash notation and the #.#.#.# representation at, which comes in handy if you don’t want to have to do the maths yourself.

Contact Us
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found