Ha CFG NSF Ospf
Ha CFG NSF Ospf
This module describes how to configure Nonstop Forwarding (NSF) in Cisco software to minimize the
duration for which a network is unavailable to its users after a switchover. The main objective of NSF is to
continue forwarding IP packets following a Route Processor (RP) switchover. NSF is supported by the Open
Shortest Path First (OSPF) protocol for routing. A device that is running NSF-compatible software is known
as an NSF-aware device and a device that is configured to support NSF is called an NSF-capable device.
NSF-capable devices can rebuild routing information from either NSF-aware or NSF-capable neighboring
devices.
NSF-OSPF Operations
For Cisco Nonstop Forwarding (NSF), the Open Shortest Path First (OSPF) routing protocol has been enhanced
to support high availability (HA) features in Stateful Switchover (SSO). Before an OSPF NSF-capable device
can perform a Route Processor (RP) switchover, the device must be aware of the available OSPF neighbors
on the network without resetting the neighbor relationship, and the device must acquire the contents of the
link state database for the network. The NSF-capable device sends an OSPF NSF signal to neighboring
NSF-aware devices to notify the devices that the neighbor relationship with the sending device must not be
reset. The NSF-capable device uses the signals that it receives from other devices on the network to rebuild
its neighbor list.
The NSF-capable device synchronizes its database with all the NSF-aware neighbors on its neighbor list.
After all neighbors exchange routing information, the NSF-capable device uses the routing information to
remove stale routes and update the routing information base (RIB) and the forwarding information base (FIB)
with the new forwarding information. The OSPF protocols are then fully converged.
Prior to RFC 3623, Cisco implemented the proprietary Cisco NSF. The RFC 3623 Graceful OSPF Restart
feature supports IETF NSF for OSPF processes in multivendor networks. The following are NSF device
modes of operation common to Cisco and IETF NSF implementations:
• Restarting mode—In this mode, the OSPF device performs nonstop forwarding recovery because of an
RP switchover.
• Helper mode—Also known as NSF-awareness mode. In this mode, the neighboring device is in the
restarting state and helps in NSF recovery.
The strict link state advertisement (LSA) checking feature allows a helper device to terminate the graceful
restart process if the device detects a changed LSA that would cause flooding during the graceful restart
process. Strict LSA checking is disabled by default. You can enable strict LSA checking when there is a
change to an LSA that would be flooded to the restarting device.
Configuring NSF-OSPF
Perform only one of the following tasks:
SUMMARY STEPS
1. enable
2. configure terminal
3. router ospf process-id [vrf vpn-name]
4. nsf cisco [enforce global]
5. nsf cisco helper [disable]
6. nsf ietf helper [disable | strict-lsa-checking]
7. end
8. show ip ospf nsf
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router ospf process-id [vrf vpn-name] Enables Open Shortest Path First (OSPF) routing process
and enters router configuration mode.
Example:
Device(config)# router ospf 12
Step 4 nsf cisco [enforce global] Enables Cisco Nonstop Forwarding (NSF) restarting mode.
Step 5 nsf cisco helper [disable] Enables Cisco NSF helper support.
• This command shows how to enable Cisco NSF helper
Example: mode.
Device(config-router)# nsf cisco helper
Step 6 nsf ietf helper [disable | strict-lsa-checking] (Optional) Disables IETF NSF helper mode on an
NSF-aware device.
Example:
Device(config-router)# nsf ietf helper disable
Example:
Device(config-router)# end
Example:
Device# show ip ospf nsf
SUMMARY STEPS
1. enable
2. configure terminal
3. router ospf process-id [vrf vpn-name]
4. nsf ietf [restart-interval seconds]
5. nsf ietf helper [disable | strict-lsa-checking]
6. nsf cisco helper disable
7. end
8. show ip ospf nsf
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router ospf process-id [vrf vpn-name] Enables Open Shortest Path First (OSPF) routing process
and enters router configuration mode.
Example:
Device(config)# router ospf 12
Step 4 nsf ietf [restart-interval seconds] Enables IETF Nonstop Forwarding (NSF) restarting mode.
• This command is not required on devices that operate
Example: only in helper mode.
Device(config-router)# nsf ietf
restart-interval 180
Step 5 nsf ietf helper [disable | strict-lsa-checking] (Optional) Configures IETF NSF helper mode on neighbor
devices that operate in helper mode.
Example:
Device(config-router)# nsf ietf helper
strict-lsa-checking
Step 6 nsf cisco helper disable (Optional) Disables Cisco NSF helper mode on an
NSF-aware device.
Example:
Device(config-router)# nsf cisco helper disable
Example:
Device(config-router)# end
Example:
Device# show ip ospf nsf
Verifying NSF-OSPF
SUMMARY STEPS
1. enable
2. show ip ospf
3. show ip ospf neighbor [detail]
DETAILED STEPS
Step 2 show ip ospf Displays general information about Open Shortest Path First
(OSPF) routing processes.
Example:
Device# show ip ospf
Step 3 show ip ospf neighbor [detail] Displays OSPF-neighbor information on a per-interface basis.
Example:
Device# show ip ospf neighbor detail
Device> enable
Device# configure terminal
Device(config)# router ospf 400
Device(config-router)# nsf cisco helper
The following sample output from the show ip ospf nsf command shows that NSF is enabled for Open Shortest
Path First (OSPF) process 500. NSF helper mode is enabled by default on devices running NSF-compatible
software. In this configuration, Cisco helper mode is disabled.
Standard/RFC Title
RFC 3623 Graceful OSPF Restart
Technical Assistance
Description Link
The Cisco Support and Documentation website http://www.cisco.com/cisco/web/support/index.html
provides online resources to download documentation,
software, and tools. Use these resources to install and
configure the software and to troubleshoot and resolve
technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support and
Documentation website requires a Cisco.com user ID
and password.