03-15-2013 01:08 PM - edited 03-04-2019 07:18 PM
This question has probably been asked many times before.
When typing a the network command in ospf ie network 10.0.0.1 0.0.0.0 area 0
I gather that the wildcard mask will associate all interfaces in the wildcard mask range with OSPF area 0. However is this like eirgp and all those attached ip addresses that match the network command will be advertised from that router?
Hope that makes sense.
Regards
Kev
03-15-2013 01:15 PM
Hello kevin
Your syntax will advertise just that specific interface, to advertise all interfaces on that router you can use:
router ospf xx
network 0.0.0.0 0.0.0.0 area 0
res
Paul
Please don't forget to rate this post if it has been helpful.
03-15-2013 01:24 PM
Further Question
Will this advertise the interface to gain a neighbor?
What is confusing to me is that in EIGRP the network command does to things.
1. Advertises the network to its neighbors
2. All the interfaces in the network range to participate in sending hellos, to gain a neighbor.
What does the network command in OSPF do?
Is it just
1. All the interfaces in the network range to participate in sending hellos, to gain a neighbor.
Does it need to advertise the networks to its neighbours like eigrp, or does it use LSU / LSA to all this within that area?
Regards
03-15-2013 02:35 PM
It is the same. When you add the command under the OSPF, it advertises the networks to neighbors to gain neighbor(s). If the neighbor router is not configured, then there will be no neighbor adjacency, but the network will be advertise to OSPF data base.
HTH
03-15-2013 02:47 PM
Hello,
The adjacency will be formed from the most stable interface available, so ospf will choose a router id for this neighbor via the highest loopback ip address on the router, and if no loopback is available then it will choose the highest interface ip.
Bear in mind that a physical connect between the two routers is required and these interfaces will not necessary become the router id for the ospf adjacency.
Also, all interfaces as stated will be advertised in ospf with the above command.
hope this makes sense?
res
Paul
Please don't forget to rate this post if it has been helpful.
03-15-2013 02:51 PM
Many thanks,
regards
Kev
03-15-2013 05:42 PM
Hello Kevin
Please don't forget to rate any posts that have been helpful.
03-15-2013 09:10 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
To your original question, the OSPF network statement looks for interface IPs (just the IP; interface's subnet mask is ignored) to match the network statement's IP and mask; much like an ACL. When a matching interface IP is found its interface joins the matching OSPF process and the interface's corresponding network joins the OSPF database. This is the primary purpose of the network statement; identification of OSPF interfaces.
Once an interface has been included into the OSPF process, the interface isn't just a network destination to be advertised.
On this (your) question, interfaces that have been matched are candidates for forming neighbors, but there's much that has to agree between neighbors before they will form an adjacency. For example, interface has to be non-passive, and many OSPF variables must agree (same area, same kind of area, passwords [if defined], etc.)
Once an OSPF adjacency is formed, the neigbors will sync up their corresponding databases.
Once the local OSPF process has what it believes to be a current database, it will populate the route table with what it believes to be the best path to different destinations.
03-19-2013 04:10 AM
Joseph,
Great explination
Thanks
Kev
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