The import-route limit command configures a limit on the number of LSAs generated when an OSPF process imports external routes.
The undo import-route limit command deletes the limit configured on the number of LSAs generated when an OSPF process imports external routes.
The import-route limit command configures a limit on the number of LSAs generated when an OSPFv3 process imports external routes.
The undo import-route limit command deletes the limit configured on the number of LSAs generated when an OSPFv3 process imports external routes.
By default, OSPF does not limit the number of LSAs generated by imported external routes.
Parameter | Description | Value |
---|---|---|
limit-number |
Specifies a limit on the number of LSAs generated when an OSPFv3 process imports external routes. |
The value is an integer ranging from 1 to 4294967295. |
threshold-alarm |
Indicates an alarm threshold. |
- |
upper-limit upper-limit-value |
Specifies the upper alarm threshold, in percentage. |
The value is an integer ranging from 1 to 100. The default value is 80. |
lower-limit lower-limit-value |
Specifies the lower alarm threshold, in percentage. |
The value is an integer ranging from 1 to 100. The default value is 70. |
Usage Scenario
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.
<HUAWEI> system-view [~HUAWEI] ospf 100 [*HUAWEI-ospf-100] import-route limit 3000 threshold-alarm upper-limit 85 lower-limit 75
<HUAWEI> system-view [~HUAWEI] ospfv3 100 [*HUAWEI-ospfv3-100] import-route limit 3000 threshold-alarm upper-limit 85 lower-limit 75