No relevant resource is found in the selected language.
Your browser version is too early. Some functions of the website may be unavailable. To obtain better user experience, upgrade the browser to the latest version.
CloudEngine 12800 and 12800E V200R005C10 Configuration Guide - IP Unicast Routing
This document describes the configurations of IP Unicast Routing, including IP Routing, Static Route, RIP, RIPng, OSPF, OSPFv3, IPv4 IS-IS, IPv6 IS-IS, BGP, Routing Policy, and PBR.
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring OSPF to Import External Routes
Configuring OSPF to Import External Routes
Context
OSPF can ensure loop-free intra-area and inter-area routes; however, OSPF cannot protect external routes against loops. Therefore, when configuring OSPF to import external routes, you need to avoid the loops caused by manual configurations.
Perform the following steps on a switch that functions as an ASBR running OSPF:
Procedure
Configuring OSPF to import routes discovered by other protocols
The default parameter values (route cost, tag, and type) are set for OSPF to import routes.
The parameter costcost-value specifies the default cost of external routes imported by OSPF.
The parameter inherit-metric indicates that the cost carried in an imported route itself is inherited. If the cost is not specified in an imported route, the default cost set using the default command is used as the cost of the imported route.
When OSPF is configured to import external routes, you can assign default values to some additional parameters, such as route cost, tag, and type. The route tag identifies protocol-related information. For example, it can be used to differentiate AS numbers when OSPF receives BGP routes.
By default, the cost of external routes imported by OSPF is 1; the type of imported external routes is Type 2; the tag value is 1.
You can run one of the following commands, listed in descending order of priority, to set the cost of imported external routes:
Run the apply cost command in the route-policy view to set the cost of imported external routes.
Run the import-route command in the OSPF view to set the cost of imported external routes.
Run the default command to set the default cost of imported external routes.
A limit is configured on the number of LSAs that can be generated by an OSPF process for imported external routes.
By default, the number of LSAs generated by an OSPF process for imported external routes is not limited.
If OSPF imports a large number of external routes and advertises them to a device with a smaller routing table capacity, the device may restart unexpectedly. To address this problem, run the import-route limit command to configure a limit on the number of LSAs generated when an OSPF process imports external routes.
Check the overload status based on the value of the Current status field in the display ospf brief command output.
Normal: The number of LSAs generated when an OSPF process imports external routes is less than or equal to the lower alarm threshold (in percentage) multiplied by the maximum number allowed.
Approach limit: The number of LSAs generated when an OSPF process imports external routes is approaching (reaching or exceeding 90% of) the upper alarm threshold.
Exceed limit: The number of LSAs generated when an OSPF process imports external routes has reached or exceeded the maximum number allowed.
Ensure that upper-limit-value is greater than or equal to lower-limit-value.
Run lsdb-overflow-limitnumber
The maximum number of external routes supported in an OSPF LSDB is set.
By default, the maximum number of external routes supported in an OSPF LSDB is not limited.
The lsdb-overflow-limit command is run to ensure that the number of routes is limited within a proper range. If the number of external routes imported by OSPF exceeds the configured maximum number, the device deletes self-generated non-default external routes to ensure the proper forwarding of other external routes.