Implementing OSPF on Cisco IOS XR Software
How to Implement OSPF on Cisco IOS XR Software
RC-174
Cisco IOS XR Routing Configuration Guide
DETAILED STEPS
Command or Action Purpose
Step 1
configure
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
router ospf
process-name
Example:
RP/0/RP0/CPU0:router(config)# router ospf 1
Enables OSPF routing for the specified routing process, and
places the router in router configuration mode.
Note The process-name argument is any alphanumeric
string no longer than 40 characters.
Step 3
router-id {
ipv4-address
|
interface-type
interface-instance
}
Example:
RP/0/RP0/CPU0:router(config-ospf)# router-id
192.168.4.3
Configures a router ID for the OSPF process.
Note We recommend using a stable IPv4 address as the
router ID.
Step 4
nsf
or
nsf enforce global
Example:
RP/0/RP0/CPU0:router(config-ospf)# nsf
or
RP/0/RP0/CPU0:router(config-ospf)# nsf enforce
global
Enables OSPF NSF operations.
• Use the nsf command without the optional enforce and
global keywords to abort the NSF restart mechanism on
the interfaces of detected non-NSF neighbors and allow
NSF neighbors to function properly.
• Use the nsf command with the optional enforce and
global keywords if the router is expected to perform
NSF during restart. However, if non-NSF neighbors are
detected, NSF restart is canceled for the entire OSPF
process.