The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with R.
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 }
|
|
---|---|
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.
This example shows how to redistribute BGP routes into an OSPF autonomous system:
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
Sets the default metrics for routes redistributed into 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 ]
|
|
---|---|
Use the clear ip ospf redistribute command if all routes are withdrawn.
This example shows how to limit the number of redistributed routes into OSPF:
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
To restart an Open Shortest Path First version 2 (OSPFv2) instance and remove all associated neighbors, use the restart command.
|
|
---|---|
This example shows how to restart the OSPFv2 instance and remove all neighbors:
|
|
---|---|
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.
Virtual link configuration mode
|
|
---|---|
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.
This example shows how to set the retransmit interval value to 8 seconds:
|
|
---|---|
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.
|
|
---|---|
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.
This example specifies that the router process is compatible with RFC 1583:
|
|
---|---|
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.
|
|
---|---|
Use the router ospf command to specify multiple OSPF routing instances in each router.
This example shows how to configure a basic OSPF instance:
This example shows how to delete an OSPF instance:
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
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.
If this command is not configured, OSPF chooses an IPv4 address as the router ID from one of its interfaces.
|
|
---|---|
Use the router-id command to manually specify a unique 32-bit numeric value for the router ID. This action ensures that EIGRP can function regardless of the interface address configuration.
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 immediately for use by OSPF.
This example shows how to configure the router ID:
|
|
---|---|