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 Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use 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.
Examples
This example shows how to redistribute BGP routes into an OSPF autonomous system:
Related Commands
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
Sets the default metrics for routes redistributed into OSPF. |
|
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 Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the clear ip ospf redistribute command if all routes are withdrawn.
Examples
This example shows how to limit the number of redistributed routes into OSPF:
Related Commands
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
restart (OSPF)
To restart an Open Shortest Path First version 2 (OSPFv2) instance and remove all associated neighbors, use the restart command.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Examples
This example shows how to restart the OSPFv2 instance and remove all neighbors:
Related Commands
|
|
---|---|
retransmit-interval (OSPF virtual link)
To specify the time between link-state advertisement (LSA) retransmissions for adjacencies that belong to the virtual link, use the retransmit-interval command. To return to the default, use the no form of this command.
Syntax Description
Command Default
Command Modes
Virtual link configuration mode
Command History
|
|
---|---|
Usage Guidelines
Use 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.
Examples
This example shows how to set the retransmit interval value to 8 seconds:
Related Commands
|
|
---|---|
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.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
To 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.
Examples
This example specifies that the router process is compatible with RFC 1583:
Related Commands
|
|
---|---|
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.
Syntax Description
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the router ospf command to specify multiple OSPF routing instances in each router.
Examples
This example shows how to configure a basic OSPF instance:
This example shows how to delete an OSPF instance:
Related Commands
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
router-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.
Syntax Description
Command Default
If this command is not configured, OSPF chooses an IPv4 address as the router ID from one of its interfaces.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use 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.
Examples
This example shows how to configure the router ID:
Related Commands
|
|
---|---|