# OSPF Graceful Shutdown

**URL:** <https://forum.networklessons.com/t/ospf-graceful-shutdown/1989>\
**Category:** Lessons Discussion\
**Created:** [July 31, 2017, 12:25pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989 "2017-07-31T12:25:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [July 31, 2017, 12:25pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/1 "2017-07-31T12:25:29Z")

</div>

This topic is to discuss the following lesson:

[https://networklessons.com/cisco/ccie-enterprise-infrastructureospf-graceful-shutdown/](https://networklessons.com/cisco/ccie-enterprise-infrastructureospf-graceful-shutdown/)

---

<div class="post-metadata">

**Author:** ![Zaman.rubd](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/z/45deac/32.png) [@Zaman.rubd](https://forum.networklessons.com/u/Zaman.rubd)\
**Post date:** [October 26, 2017, 5:40pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/2 "2017-10-26T17:40:07Z")

</div>

Hi Rene,  
In which situation we can use this command?? Actually I cant find out the importance of this command in my view. Could you please tell me the uses of this command?? Thx

br//  
zaman

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [October 27, 2017, 7:13am UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/3 "2017-10-27T07:13:59Z")

</div>

Hello zaman

According to Cisco:

> The OSPF Graceful Shutdown feature provides the ability to temporarily shut down the OSPF protocol in the least disruptive manner and notify its neighbors that it is going away. All traffic that has another path through the network will be directed to that alternate path. A graceful shutdown of the OSPF protocol can be initiated using the shutdown command in router configuration mode.

Essentially, the advantage here is that the router that is being shutdown will send out messages to other OSPF routers informing them of the shutdown. Thus, any neighbouring routers with routes that are directed via the router in question will direct their traffic via alternate paths. This allows the rest of the network to re-converge faster than just shutting down the OSPF process.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![contactmohsin1](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/contactmohsin1/32/10797_2.png) [@contactmohsin1](https://forum.networklessons.com/u/contactmohsin1)\
**Post date:** [April 8, 2018, 7:30am UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/4 "2018-04-08T07:30:38Z")

</div>

Hi,  
Still bit confusion,Exactly, when we are going to use Graceful shutdown…? Possiblity situations?

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [April 10, 2018, 4:12pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/5 "2018-04-10T16:12:52Z")

</div>

Hello mohsin.

Graceful shutdown for OSPF is useful when you want to remove or disable a router (for maintenance purposes for example) in the least disruptive manner. What it does is it lets other routers know about its intentions and gives an opportunity to the other routers to find alternative routes to their destinations. This way, when the router is actually shut down, rerouting has already been established and end users should detect little or no change in the network performance.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

**Author:** ![contactmohsin1](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/contactmohsin1/32/10797_2.png) [@contactmohsin1](https://forum.networklessons.com/u/contactmohsin1)\
**Post date:** [April 10, 2018, 6:39pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/6 "2018-04-10T18:39:01Z")

</div>

Hi Laz-  
Brilliant explaination !!!  
This is what I’m looking for…  
Thanks! by the way, if anything i’ll let u know…

---

<div class="post-metadata">

**Author:** ![nagachn](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/df705f/32.png) [@nagachn](https://forum.networklessons.com/u/nagachn)\
**Post date:** [November 16, 2020, 3:33am UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/7 "2020-11-16T03:33:46Z")

</div>

What is the purpose of the `max-metric router-lsa` command.

---

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [November 17, 2020, 12:16pm UTC](https://forum.networklessons.com/t/ospf-graceful-shutdown/1989/8 "2020-11-17T12:16:47Z")

</div>

Hello Nagarajan

The `max-metric router-lsa` command causes an OSPF router to advertise its locally generated router LSAs with a maximum metric. This causes other routers to prefer an alternate path for these destinations (if one exists) rather than routing traffic through this router. The purpose of this is to avoid routing transit traffic if there are alternate paths.

Transit traffic is traffic with a source and destination that are both on “other networks” and not on a locally administrated network. Transit traffic is undesirable because you are routing traffic where both the source and the destination are not under your jurisdiction. In other words, you’re routing someone else’s traffic.

More information about this feature can be found here:

> **[IP Routing: OSPF Configuration Guide, Cisco IOS XE Gibraltar 16.10.x - OSPFv3...](https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/xe-16-10/iro-xe-16-10-book/ip6-route-ospfv3-max-lsa-xe.html)**
>
> IP Routing: OSPF Configuration Guide, Cisco IOS XE Gibraltar 16.10.x-OSPFv3 Max-Metric Router LSA

I hope this has been helpful!

Laz
