fbpx
Nov 05

Comparison Between Subnet and Wildcard Mask

Subnet VS Wildcard Mask

Subnet Mask

It’s a 32bit combination address used to describe portion of an address referring to subnet/network and a second portion of it referring to the host. And it’s mainly used along with the IP address as a combination.

To explain bit more in detail, Subnet mask is made by setting up network bits to all 1’s and host bits as all 0’s and these serve only to express the length of bits, matching the network portion of an IPV4 address from left to right.

As an example, considering a subnet mask for a sample IP address 11.11.11.11, subnet mask IP address is equal to 255.255.255.240, in this scenario number 1’s is equal to 28. so, we can say number of network bits in IP address are 28 and rest four bits are host bits.

Wildcard Mask

Wildcard Mask is a mask of bits indicating part of an IP address available for examination

A wildcard mask sometimes referred to as an inverted mask that means 1 is referred as a host and 0 referred as a subnet/network, meaning opposite of what it means in a subnet (network) mask bit but not necessarily always.

Wildcard masks are considered to be much more flexible than subnet masks, as there is no requirement continuity. In spite of this functionality, one can achieve all sorts of strange matches.

Below is an example given here in IOS ACL syntax:

Match all 192.178.x.1 addresses:

permit 192.178.0.1 0.0.255.0

Match only even 192.178.x.0/24 subnets:

permit 192.178.0.0 0.0.254.255

In the above example neither of the wildcard masks are contiguous, rather than matching a length from one side of the address to the other, each bit is matched (0) or ignored (1) independently.

Let us consider one more example to illustrate wildcard mask for a sample IP address 11.11.11.11 (taking into account same example as considered in subnet mask above). Wildcard mask will be 0.0.0.15(brief explanation on how to calculate wildcard mask from the subnet mask from the example considered is first ocet (255-255), second ocet(255-255), third ocet(255-255), fourth ocet(255-240) – this will result to a wildcard mask – 0.0.0.15)

With the flexibility that Wildcard mask provides, many of the routing protocols uses wildcard mask in their network protocols. Some of those protocols include eigrp, ospf, dgp. These protocols use wild card mask in their network command to enable these protocols on specific interfaces instead on a complete router.

Click here for CCNA Certification

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

Can you get a job with just a CCNA certificate?

Can you get a job with just a CCNA certificate?

People often worry about getting jobs after acquiring a few years of education or a specific certificate. This is the exact situation with people who.. Read More →
Does a CCNA Certification help in getting Good Jobs?

Does a CCNA Certification help in getting Good Jobs?

The CCNA certificate will surely help you get in a better position right now. This certificate holds much power because of its course. It mainly.. Read More →

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. Courses run subject to registrations.

OUR ACCREDITATIONS

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
SATISFIED CUSTOMERS
SOME OF OUR CLIENTS

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

High-quality, cost-effective training in Australia
Learn More
  • OpenPay
  • 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

Delivering Classroom and Live Virtual Training with Price Beat Guarantee

EOFY Offer: Book and pay for a course before 30 June. Attend training until 31 August.