Sep 28

Subnet VS Wildcard Mask

Subnet vs Wildcard Mask

Subnet mask and wildcard mask are two important components to identify different networks in computer networking, and must be configured correctly to transfer data to intended nodes of the network. We assign the subnet mask will configuring the IP address on the device, but we do not explicitly configure a wildcard mask to any device. Both are 32 bits long masks and prove helpful by giving information about the different parts of an IP address. But they are different from each other in every sense, in their concept, in their format, and their usage.

A subdivided network (subnet) is implemented to avoid wastage of IP addresses over a network. Its main use is to identify the network and hosts. IP addresses on the same subnet are not separated by a router, whereas, IP addresses on different subnets must be separated by one router. One major point to keep in mind for the subnet mask is that the 1’s and 0’s must be contagious. For example, the subnet mask for a classful Class A IP address is, which can also be written as 11111111.00000000.00000000.00000000 in the binary form, and also as /8 in the prefix form. In this subnet mask, the 1’s identify the network part of the address and the 0’s identify the host part. As long as the number in the first octet, or say, the number corresponding the 1’s, matches, the IP addresses are considered to be on the same network. For subnet mask, all the bits of an IP address must match, and for subnet mask, none of the bits should match.

A wildcard mask is generally said to be an inverted subnet mask. Its main use is to let the IOS know whether to compare the corresponding P address bits or to ignore them. To calculate a wildcard mask, just subtract the number in every octet from 255. For example, for a subnet mask, the corresponding wildcard mask would be, which can also be written as 00000000.00000000.00000000.11111111 in the binary form. A wildcard mask cares about the number corresponding to the 0’s and does not care about the number corresponding to 1’s. In this, to implement a given command, the IP address part corresponding to 0’s must match. Moreover, the 1’s and 0’s should not necessarily be contagious in a wildcard mask. For instance, (00000000.00000011.00000000.00001111) is a valid wildcard mask but there is no corresponding subnet mask for this. A wildcard mask generally specifies a range of IP addresses. For wildcard mask, the entire IP address must be compared, and for wildcard mask, no bits of the IP address be compared. Wildcard mask has found a special functionality in the access control lists (ACLs) and routing protocols like OSPF, EIGRP, and BGP.

Call Logitrain on 1800 159 151 today.

Looking for an IT Job?

Please call us on 1800 159 151, or complete the form below.

  • This field is for validation purposes and should be left unchanged.

Recent Posts

The supply of this course/package/program is governed by our terms and conditions. Please read them carefully before enrolling, as enrolment is conditional on acceptance of these terms and conditions. The sale price is valid for registrations between 01 Dec and 10 Jan.


Find out why we are the leading choice to help boost your career in Australia

Prepare to get IT job ready in 8 weeks

Trained 10,000+ professionals and counting

Experienced Provider: Operating Since 2004

Trained staff from 1000+ Australian Businesses

We Have Placed Candidates In

Over 1000 organisations have relied on Logitrain to be their trusted training partner.

High-quality, cost-effective training in Australia
Learn More
  • This field is for validation purposes and should be left unchanged.

Dont’ Wait. Fill the form for a free no-obligation information session with our course specialists.

About The Author

Train with Confidence with our Price Beat Guarantee

Hurry, Covid discounts on Job Programs end soon

Open chat