12-08-2019 11:22 PM - edited 12-08-2019 11:35 PM
When you go into the OSPF configuration mode, does the "network" statement match only against the IP address, or does it also take the subnet mask into account to determine whether or not it will include the interface in the OSPF process? Asking also for examples to help me understand. Trying to study for the CCIE to see if it's worth it, and also, I like knowing these things :)
Solved! Go to Solution.
12-08-2019 11:56 PM
Hi there,
The network statement matches just on local connected interfaces ignoring the subnet mask. Any matches are added to the local OSPF database at which point the subnet ID and mask are stored. It is this information that it exchanged with other OSPF peers.
cheers,
Seb.
12-08-2019 11:56 PM
Hi there,
The network statement matches just on local connected interfaces ignoring the subnet mask. Any matches are added to the local OSPF database at which point the subnet ID and mask are stored. It is this information that it exchanged with other OSPF peers.
cheers,
Seb.
12-09-2019 08:27 AM
I find the original post to be slightly ambiguous in referring to matching the subnet mask. There is a subnet mask on the interface and there is a mask in the OSPF network statement. Which mask is it really asking about. If it is talking about matching the subnet mask of the interface then @Seb Rupik is quite correct that the subnet mask of the interface is not used in determining whether OSPF will run on the interface. But if it is talking about using the mask in the network statement then the mask is used in determining whether OSPF will run on the interface.
It might also be helpful in clarifying what is going on that the subnet mask of the interface is used to determine what OSPF should advertise. Some people believe that OSPF uses the mask in the network statement to determine what to advertise. The mask in the network statement is used only to determine which interfaces to run on and what to advertise is based on the interface subnet mask.
HTH
Rick
12-09-2019 08:46 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