09-09-2006 10:51 PM - edited 03-03-2019 04:56 AM
Why OSPF use wildcard mask? Not subnet mask? Any advantage of using wildcard in OSPF? How wildcard in OSPF work? I saw some OSPF configuration for class b network use 0.0.0.255 as an OSPF wildcard mask. What does it mean? Is that mean to exchange only route information for the subnetwork?
09-11-2006 08:57 PM
hello,
with the use of a wild-card mask we can gain control over route update propagation.So we can define which networks should receive updates and which networks should not receive routing updates.Its just like wildcard masks used in ACLs.this is my view
cheers,
03-13-2020 06:53 AM
Hi @lifebook567
As of "why" OSPF uses wildcard bits instead of subnet mask i honestly don't have the answer... it is what it is.
Now, just as @janesh_abey mentioned, the logic is the same as in ACLs...
So for example:
network 172.20.10.0 0.0.0.255
This is a class b private ip prefix but OSPF is a "classless" protocol which means that you can use VLSM or "custom" subnet masks regardless of the class the ip belongs to.
That being said, in this case, the router will advertise (and send hello's) out of any interface that is configured with any ip address in the 172.20.10.x subnet because the wildcard bits is the opposite of subnet mask... in the subnet mask /24 means the first 24 bits are 1s and, same as in the case of ACLs, thats where the comparision will take place and look for a match in the first 24 bits of the prefix (172.20.10.x) and the rest of the ip prefix (which is "masked" with a 255 on the wildcard mask) will be ignored.
03-13-2020 10:43 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide