Background Information
- Shutting down an OSPF router will black hole routes for a while until the network converges.
- Neighbor routers have to determine that the router is dead. This could take as long as whatever the hold-time is set to.
- Then, the routers have to flood LSAs to the entire OSPF network.
- Then, the routers have to run SPF again and install the routes.
- While all this is going on, traffic may still be routed towards the dead router.
Summary
- On the router that is going to be shut down, issue max-metric router-lsa.
- The router will immediately flood LSAs with a maximum metric, causing all the other routers to rerun SPF and find a better route to the destination.
- Give it a minute to complete.
- You can verify the max metrics on the other routers with show ip ospf database router adv.
- You can now shut down the router without blackholing OSPF routes.
- Issuing a no max-metric router-lsa will cause the router to immediately flood LSAs with its normal metrics.
router ospf 1
max-metric router-lsa