• Net & Subnet Masks
  • Used to determine which bits of an IP Address are network bits and which are host bits

Wildcard Masks

An alternative way of depicting a subnet mask. Basically an ‘inverted’ subnet mask i.e. all 1s in the subnet mask are 0s in the wildcard mask and vice-versa.

Wildcard masks are used to make comparisons between two IP addresses. Commonly, they are used by Dynamic Routing protocols, for instance EIGRP and OSPF, to indicate which IP addresses should be dynamically routed, among other purposes.

Wildcard masks use a matching rule:

  • ‘0’ in the mask means the two corresponding bits in the compared addresses must match
  • ’1’ in the mask means it doesn’t matter if the corresponding bits match or not (they are wildcards)

Ex.1:

  • (Subnet Mask) 11111111.11111111.11111111.00000000 = 255.255.255.0
  • (Wildcard Mask) 00000000.00000000.00000000.11111111= 0.0.0.255 = /24

Ex.2:

  • (Subnet Mask) 11111111.11111100.00000000.00000000 = 255.252.0.0
  • (Wildcard Mask) 00000000.00000011.11111111.11111111 = 0.3.255.255 = /14

Ex.3:

  • (Subnet Mask) 11111111.11111111.11100000.00000000 = 255.252.224.0
  • (Wildcard Mask) 00000000.00000000.00011111.11111111 = 0.0.31.255 = /19
SlashNetmaskWildcard mask
/32255.255.255.2550.0.0.0
/31255.255.255.2540.0.0.1
/30255.255.255.2520.0.0.3
/29255.255.255.2480.0.0.7
/28255.255.255.2400.0.0.15
/27255.255.255.2240.0.0.31
/26255.255.255.1920.0.0.63
/25255.255.255.1280.0.0.127
/24255.255.255.00.0.0.255
/23255.255.254.00.0.1.255
/22255.255.252.00.0.3.255
/21255.255.248.00.0.7.255
/20255.255.240.00.0.15.255
/19255.255.224.00.0.31.255
/18255.255.192.00.0.63.255
/17255.255.128.00.0.127.255
/16255.255.0.00.0.255.255
/15255.254.0.00.1.255.255
/14255.252.0.00.3.255.255
/13255.248.0.00.7.255.255
/12255.240.0.00.15.255.255
/11255.224.0.00.31.255.255
/10255.192.0.00.63.255.255
/9255.128.0.00.127.255.255
/8255.0.0.00.255.255.255
/7254.0.0.01.255.255.255
/6252.0.0.03.255.255.255
/5248.0.0.07.255.255.255
/4240.0.0.015.255.255.255
/3224.0.0.031.255.255.255
/2192.0.0.063.255.255.255
/1128.0.0.0127.255.255.255
/00.0.0.0255.255.255.255