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}
Route redistribution is disabled.
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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 command requires the LAN Base Services license.
This example shows how to redistribute BGP routes into an OSPF autonomous system:
switch(config)# router ospf 209
switch(config-router)# redistribute bgp 64496
witch(config-router)#
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]
No limit
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the clear ip ospf redistribute command if all routes are withdrawn.
This command requires the LAN Base Services license.
This example shows how to limit the number of redistributed routes into OSPF:
switch# configure terminal
switch(config)# router ospf 201
switch(config-router)# redistribute bgp route-map FilterExternalBGP
switch(config-router)# redistribute maximum-prefix 1000 75
To restart an Open Shortest Path First version 2 (OSPFv2) instance and remove all associated neighbors, use the restart command.
restart ospf instance-tag
None
Global configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
This command requires the LAN Base Services license.
This example shows how to restart the OSPFv2 instance and remove all neighbors:
switch(config)# restart ospf 12
switch(config)#
|
|
---|---|
show ip ospf |
Displays OSPF information. |
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.
retransmit-interval seconds
retransmit-interval
5 seconds
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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.
You should set this value larger for virtual links.
This command requires the LAN Base Services license.
This example shows how to set the retransmit interval value to 8 seconds:
switch(config)# router ospf 109
switch(config-router)# area 33 virtual-link 192.0.2.2
switch(config-router-vrf)# retransmit-interval 8
|
|
---|---|
area virtual-link |
Creates a virtual link in an OSPF area. |
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.
rfc1583compatibility
no rfc1583compatibility
This command has no arguments or keywords.
RFC 1583 compatibility is disabled.
Router configuration mode
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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:
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# router ospf 2
switch(config-router)# rfc1583compatibility
|
|
---|---|
show ip ospf |
Displays general information about OSPF routing instances. |
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.
router ospf instance-tag
no router ospf instance-tag
No OSPF routing instance is defined.
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
Use the router ospf command to specify multiple OSPF routing instances in each router.
This command requires the LAN Base Services license.
This example shows how to configure a basic OSPF instance:
switch(config)# router ospf 12
switch(config-router)#
This example shows how to delete an OSPF instance:
switch(config)# no router ospf 12
switch(config)#
|
|
---|---|
copy running-config startup-config |
Saves the configuration changes to the startup configuration file. |
show ip ospf |
Displays OSPF information. |
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.
router-id ip-address
no router-id ip-address
ip-address |
Router ID in IP address format. |
If this command is not configured, OSPF chooses an IPv4 address as the router ID from one of its interfaces.
|
|
---|---|
5.0(3)N1(1) |
This command was introduced. |
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, OSPF uses the new router ID at the next reload or at a restart of OSPF.
This command requires the LAN Base Services license.
This example shows how to configure the router ID:
switch(config)# router ospf 12
switch(config-router)# router-id 192.0.2.1
|
|
---|---|
router ospf |
Configures the OSPF routing process. |