R Commands
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with R.
redistribute (OSPF)
To inject routes from one routing domain into Open Shortest Path First (OSPF), use the redistribute command. To remove the redistribute command from the configuration file and restore the system to its default condition in which the software does not redistribute routes, use the no form of this command.
redistribute {bgp as-number | direct | eigrp id | ospf instance-tag | rip instance-tag | static} [route-map map-name]
no redistribute {bgp as-number | direct | eigrp as-number | ospf instance-tag | rip instance-tag | static}
Syntax Description
Command Modes
Usage GuidelinesUse the redistribute command to import routes from other routing protocols into OSPF. You should always use a route map to filter these routes to ensure that OSPF redistributes only the routes that you intend.
You must configure a default metric to redistribute routes from another protocol into OSPF. You can configure the default metric with the default-metric command or with the route map configured with the redistribute command.
![]()
Note If you redistribute static routes, Cisco NX-OS also redistributes the default static route.
redistribute maximum-prefix (OSPF)
To limit the number of routes redistributed into Open Shortest Path First (OSPF), use the redistribute maximum-prefix command. To return to the default setting, use the no form of this command.
redistribute maximum-prefix max [threshold] [warning-only | withdraw [num-retries timeout]]
no redistribute maximum-prefix max [threshold] [warning-only | withdraw
[num-retries timeout]
Syntax Description
Command Modes
Related Commands
Command Modes
Command ModesVirtual link configuration mode
Usage GuidelinesUse this command to set the LSA retransmission time. If a router receives no acknowledgment that an LSA was received, the router resends the LSA at the retransmission interval.
rfc1583compatibility
To configure RFC 1583 compatibility as the method used to calculate summary route costs, use the rfc1583compatibility command. To disable RFC 1583 compatibility, use the no form of this command.
Command Modes
Usage GuidelinesTo minimize the chance of routing loops, all Open Shortest Path First (OSPF) routers in an OSPF routing domain should have RFC compatibility set identically.
Because of the introduction of RFC 2328, OSPF Version 2, the method used to calculate summary route costs has changed. Use the no rfc1583compatibility command to enable the calculation method used per RFC 2328.
router ospf
To configure an Open Shortest Path First (OSPF) routing instance, use the router ospf command. To terminate an OSPF routing process, use the no form of this command.
Command Modesrouter-id (OSPF)
To use a fixed router ID for an Open Shortest Path First (OSPF) instance, use the router-id command. To revert to the previous OSPF router ID behavior, use the no form of this command.
Command Modes
Usage GuidelinesUse the router-id command to manually specify a unique 32-bit numeric value for the router ID.
If this command is used on an OSPF instance that has neighbors, the connections to the neighbors are re-established and the new router ID is available for use by OSPF.