The apply ospf command sets the action performed for configuring an OSPF area to which the route is imported in a routing policy.
The undo apply ospf command restores the default setting.
By default, the action performed for configuring an OSPF area to which the route is imported is not set in a routing policy.
Parameter | Description | Value |
---|---|---|
backbone | Imports routes to the OSPF backbone area. | - |
stub-area | Imports routes to an OSPF NSSA. | - |
Usage Scenario
The apply ospf command can be used to specify the OSPF backbone area or NSSA area to which routes are imported. This can prevent OSPF from importing too many external routes, which brings heavy burden on OSPF devices.
Prerequisites
The apply ospf command can be used only after the route-policy command is used.
Precautions
When a routing policy takes effect, routes are imported to the specified OSPF area.