Difference between Subnet Mask and Wild Card Mask | Blog

Aug 28
subnet mask and wild card mask

Difference between Subnet Mask and Wild Card Mask

A subnet mask is a logical subdivision of an IP network. It is a practice of dividing a network into two or more networks. Devices that belong to a certain subnet are addressed with an identical most-significant bit-group in their IP addresses. Subnetting is the logical division of an IP address into two fields, the network number and the host identifier. For instance, is the prefix of the Internet Protocol version 4 network starting at the given address, having 26 bits allocated for the network prefix, and the remaining 6 bits reserved for host addressing.

The pros of subnetting an existing network vary with each deployment scenario. In a large organization, it is necessary to allocate address space efficiently. Subnetting enhances the routing efficiency. It have advantages in network management when subnetworks are administratively controlled by different entities in a larger organization. Subnets can be arranged logically in a hierarchical architecture dividing an organization’s network address space into a tree-like routing structure.

A wildcard mask on the other hand is a mask of bits that indicates which parts of an IP address are available for examination. It helps to indicate the size of a network or subnet for some routing protocols, such as OSPF. It also indicates what IP addresses should be permitted or denied in access control lists (ACLs). Simply, a wildcard mask is an inverted subnet mask. Thus a subnet mask of inverts into a wildcard mask of

The wildcard mask employs a matching principle . In the wildcard mask, 0 means that the equivalent bit must match, 1 means that the equivalent bit does not matter. For example, a wildcard mask of pplied to IP address will match even-numbered IP addresses,,, etc. Similarly, the mask applied to will match odd-numbered IP addresses,, etc. A combination of network and wildcard mask of would match an interface configured exactly with only, and nothing else. Matching a range of networks, the network and wildcard mask combination of would match any interface in the range of to It is simpler and safer to stick to using wildcard masks of and identify each OSPF interface individually. In situations where subnet masks does not apply, the wildcard masks are used. For instance, it two affected hosts fall in different subnets, using a wildcard mask will group them together.

The list of Wildcard Mask includes the followings :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, and

Some major differences between subnet mask and wild card mask includes the followings:

  1. Subnet mask is a 32 bits value which differentiate a network into a host portion & network portion of an IP address where network portion is designate by the 1’s & host portion by 0’s. Wild card mask importantly defines which IP addresses are allowed & which are blocked where 0’s defines the accurate match, the non zero value defines any value on the corresponding octete.
  2. Subnet mask is the value which determine from which class the ip address is realted. Wild card mask defines which IP addresses are allowed & which are blocked and used in extended access list and ospf also.

3.Subnet-mask is used to match contigous bits, means in subnet mask there is no 1 after 0. Its always from high (1’s) to low (0’s). For example, (11111111.11111111.00000000.00000000) . In this example, there’s a continous 1’s and continous 0’s. It cannot be like (11111111.00000000.11111111.00000000). Subnet mask is classified on class A,B,C,D,E . For Class A subnet mask is, for Class B it is ,  and class C it is and wildcard mask is just opposite to Subnet mask and it is defined as, and

  1. Wildcard Mask is used to indicate to the IOS software whether to check or ignore corresponding IP address bits when comparing the address bits in an access list entry or OSPF/EIGRP network command. For example, for /30 : subnet mask 0 . 0 . 0 . 3 is a wildcard mask and for /24 : subnet mask 0 . 0 . 0 . 255 is a wildcard mask.

Click here for CCNA Certification

Enquire Form
  • Date Format: DD dash MM dash YYYY
  • This field is for validation purposes and should be left unchanged.

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.


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
  • 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.