06-11-2008 01:18 AM - edited 02-28-2023 08:32 AM
Hi,
I have a bit of a weird issue. I have 4 link-id's in my ospf database with the advertising router being the router where the routes are being learned from. These 2 networks used to be configured on an old leased line out to the remote site but I have since shut them down. Still seeing these networks in though in the OSPF database but not in the routing table as you would expect. My question is is there any way of clearing down the ospf database for these 4 networks without having to reset the whole ospf process on the router. Also, the Seq # is incrementing all the time - why would that be if the wan out to the remote site is now shut?
Any help appreciated?
Regards
Mary
06-11-2008 02:00 AM
what i know u can use passieve-interface serial xx command on router ospf process
06-11-2008 02:56 AM
You may try with "clear ip ospf
Or, if it's no more a neighbor, then these will be automatically gets removed after MaxAge.
Regards...
-Ashok.
06-11-2008 03:48 AM
Ashok
Just checked and would you believe they are now gone from the ospf database. What is the maxage timer out of interest or can you point me to a good ospf doc?
Thanks
Mary
06-16-2008 09:30 PM
Hi Mary,
By default, the max age timer for OSPF is 1 hr.
But, I have seen in your first e-mail that the seq number is increasing still means it's still getting update from same router (router ID).
Can you give "sh ip os data router x.x.x.x" to see more details about this? Please take the above command output 2 times with a gap of 1 hr.
This can be a good resource for OSPF.
http://www.cisco.com/warp/public/104/1.html
Regards...
-Ashok.
06-11-2008 04:21 AM
Hello,
OSPF is a Link state protocol so there can be an entry in the OSPF database with link state =down instead of removing the whole entry from the database as you can expect from a distance vector protocol.
the state = down can be signaled with a infinite metric that for ospf is a 24bit number of all 1s.
As you have noticed the ip networks have been correctly removed from the ip routing table.
You should look at the detail of the ospf database to see what are the fields values for each LSA data structure.
try to use: sh ip ospf database router
or sh ip ospf database adv-router
Hope to help
Giuseppe
06-11-2008 04:25 AM
Hello,
there can be a transient time where you see the older LSAs and the newer ones both in the DB with the clear ip ospf process-id you restart the process and you will see the new updated DB.
best regards
Giuseppe
06-16-2008 11:19 PM
i've encountered a similar scenario where i needed to clear the contents of the ospf database. I tried everything .. clearing process, changing process id.. and even unconfiguring OSPF. The only way I clear the contents of the ospf database was to reload the router.
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