WALKTHROUGH: OSPF Graceful Restart

So you're stuck or don't trust your work. Here is the cheat/check page. Note that this is all done from the perspective of J2300-1. Adapt to other routers as needed.

  1. Enable graceful restart on your router.
  2. admin@J2300-1> edit        
    Entering configuration mode
    
    [edit]
    admin@J2300-1# set routing-options graceful-restart 
    
  3. Configure your router not to abort the graceful restart process if there is an LSA change on the network.
  4. [edit]
    admin@J2300-1# set protocols ospf graceful-restart no-strict-lsa-checking 
    
    [edit]
    admin@J2300-1# commit 
    commit complete
    
  5. Check that your router is supporting graceful restart for the OSPF process.
  6. admin@J2300-1# run show ospf overview    
    Instance: master
      Router ID: 10.0.0.1
      Route table index: 0
      Area border router, AS boundary router, NSSA router
      LSA refresh time: 50 minutes
      Restart: Enabled
        Restart duration: 180 sec
        Restart grace period: 210 sec
        Helper mode: Enabled
      Area: 0.0.0.0
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 5, AS boundary routers: 5
        Neighbors
          Up (in full state): 2
      Area: 0.0.0.1
        Stub type: Stub NSSA, Stub cost: 1000
        Authentication Type: None
        Area border routers: 1, AS boundary routers: 4
        Neighbors
          Up (in full state): 2
      Area: 30.30.30.30
        Stub type: Not Stub
        Authentication Type: None           
        Area border routers: 5, AS boundary routers: 5
        Neighbors
          Up (in full state): 2
      Area: 101.101.101.101
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 6, AS boundary routers: 6
        Neighbors
          Up (in full state): 2
      Area: 102.102.102.102
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 6, AS boundary routers: 6
        Neighbors
          Up (in full state): 2
      Topology: default (ID 0)
        Prefix export count: 2
        Full SPF runs: 105
        SPF delay: 0.200000 sec, SPF holddown: 5 sec, SPF rapid runs: 3
        Backup SPF: Not Needed
    
    [edit]
    admin@J2300-1# 
    [edit]
    
  7. Reboot your router and set the timers on the OSPF process long enough that your router will have time to bring it's control plane up in the event of an unplanned outage.
  8. Timing the J2300, it takes about 2 minutes to reboot. So set the timers to 2.5 minutes to be on the safe side. Reboot times of other routers may vary.

    [edit]
    admin@J2300-1# set protocols ospf graceful-restart restart-duration 150 
    
    [edit]
    admin@J2300-1# commit 
    commit complete
    
    [edit]
    admin@J2300-1# run show ospf overview 
    Instance: master
      Router ID: 10.0.0.1
      Route table index: 0
      Area border router, AS boundary router, NSSA router
      LSA refresh time: 50 minutes
      Restart: Enabled
        Restart duration: 150 sec
        Restart grace period: 180 sec
        Helper mode: Enabled
      Area: 0.0.0.0
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 5, AS boundary routers: 5
        Neighbors
          Up (in full state): 2
      Area: 0.0.0.1
        Stub type: Stub NSSA, Stub cost: 1000
        Authentication Type: None
        Area border routers: 1, AS boundary routers: 4
        Neighbors
          Up (in full state): 2
      Area: 30.30.30.30
        Stub type: Not Stub
        Authentication Type: None           
        Area border routers: 5, AS boundary routers: 5
        Neighbors
          Up (in full state): 2
      Area: 101.101.101.101
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 6, AS boundary routers: 6
        Neighbors
          Up (in full state): 2
      Area: 102.102.102.102
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 6, AS boundary routers: 6
        Neighbors
          Up (in full state): 2
      Topology: default (ID 0)
        Prefix export count: 2
        Full SPF runs: 106
        SPF delay: 0.200000 sec, SPF holddown: 5 sec, SPF rapid runs: 3
        Backup SPF: Not Needed
    
    [edit]
    admin@J2300-1# 
    [edit]
    
  9. Set your router to be mean and not help anybody!
  10. admin@J2300-1# set protocols ospf graceful-restart helper-disable 
    
    [edit]
    admin@J2300-1# commit 
    [edit protocols ospf graceful-restart]
      'no-strict-lsa-checking'
        To configure no-strict-lsa-checking, helper-disable must not be set
    error: commit failed: (statements constraint check failed)
    
    [edit]
    admin@J2300-1# delete protocols ospf graceful-restart no-strict-lsa-checkin   
    
    [edit]
    admin@J2300-1# commit 
    commit complete
    
    [edit]
    admin@J2300-1# run show ospf overview                                       
    Instance: master
      Router ID: 10.0.0.1
      Route table index: 0
      Area border router, AS boundary router, NSSA router
      LSA refresh time: 50 minutes
      Restart: Enabled
        Restart duration: 150 sec
        Restart grace period: 180 sec
        Helper mode: Disabled
      Area: 0.0.0.0
        Stub type: Not Stub
        Authentication Type: None
        Area border routers: 5, AS boundary routers: 5
        Neighbors
          Up (in full state): 2
      Area: 0.0.0.1
        Stub type: Stub NSSA, Stub cost: 1000
        Authentication Type: None
        Area border routers: 1, AS boundary routers: 4
        Neighbors
          Up (in full state): 2
      Area: 30.30.30.30
        Stub type: Not Stub
    ...
    ..
    .