cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
478
Views
4
Helpful
4
Replies

OSPF SETUP

carl_townshend
Spotlight
Spotlight

Hi all i have seen people setting up networks using ospf with addresses 172.16.10.1 0.0.0.0 area 0, what does the 0.0.0.0 do in this case ?

4 Replies 4

dominic.caron
Level 5
Level 5

0.0.0.0 is a wildcard mask. In this case, it means that an interface with IP 172.16.10.1 is part of area 0. (0.0.0.0 is a exact match)

does that mean advertise the 172.16.10.1 network ?

The way you have it that is not a specific network it is a single address , the mask is a match for that whole address not a network . If you wanted to advertise a network it would be 172.16.10.0 0.0.0.255 .

actually the mask used on the OSPF network statement has nothing to do with what subnet and subnet mask will be advertised. The network statement has only an indirect relationship to what is advertised.

The purpose of the network statement is to tell OSPF what interfaces to include in the protocol. OSPF takes the network statement (including mask) and scans the available interfaces on the router to see what to include. Once OSPF has selected the interfaces it will advertise based on the subnet mask configured on the interface, not on the mask in the network statement.

The reason to specify a mask in the network statement is to give us flexibility about choosing interfaces. You might configure network 172.16.0.0 0.0.255.255 area 0. If you did that any interface in 172.16.0.0 would be included. But what if you wanted 172.16.10.0 to be in area 0 and wanted 172.16.20.0 to be in area 2? By using a more specific mask you can select only 172.16.10.0 for area 0 and select 172.16.20.0 for area 2.

Many of us consider using the 0.0.0.0 mask to be a best practice in configuring OSPF because it gives us the greatest control over what happens in the router.

HTH

Rick

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card