I am trying to configure multi area OSPF on several routers (in packet tracer) to a switched core area 0.

If I understand correctly, I could either choose to configure OSPF using router interface IP address(es) and quad zero wildcard mask, or alternatively the subnet identifier IP address(es) (of connected networks) and the appropriate wildcard mask(s).

I can't seem to find much information on which is most appropriate for my particular topology, or if there are any real differences in these approaches.

1 Answer 1


What you need to understand is that the network statement is to determine which interface(s) will participate in OSPF, not to advertise the prefix of the network statement. If you have multiple interfaces within an IP address range, for a specific area, you can include them with a single network statement using a wildcard mask that encompasses all the desired interfaces. By using the wildcard mask, you can include an individual interface for an area.

One method for including all the interfaces in a single area is to use the all-encompassing network statement:

network area 0

If there are interfaces where you would like to advertise the network on the interfaces, but not send OSPF hellos on the interface, you can use the above network statement, and use the passive-interface command for each interface for you don't want to send hellos, such as networks where there are no routers participating in OSPF (end-user networks). You can also use the passive-interface default command to not send hellos out any interface by default, then use a no passive-interface command to allow hellos on certain interfaces.

It just boils down to your particular requirements on a router. The network statements can be very flexible, but, if it is really convoluted where you need to set each interface individually, the design probably needs to be rethought. In many cases, using the single interface command can work well, especially when used with passive interfaces.

  • 1
    If I understand you correctly, network area 0 can be used on a router to advertise all directly connected 192.168/16 subnet(s) into area 0?
    – Nakrule
    Jul 12, 2019 at 6:56
  • 1
    No, you missed the point. Network statements do not advertise networks, they tell OSPF which interfaces to include in the OSPF process. The networks advertised are then gotten from what is configured on the interfaces. Your example will include all the router interfaces with an address in the network in the OSPF process. It may seem like semantics, but there is a real difference, and thinking that the network statement advertises networks can lead to mistakes and problems.
    – Ron Maupin
    Jul 12, 2019 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.