< Home

apply ospf

Function

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.

Format

apply ospf { backbone | stub-area }

undo apply ospf

Parameters

Parameter Description Value
backbone Imports routes to the OSPF backbone area. -
stub-area Imports routes to an OSPF NSSA. -

Views

Route-Policy view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Import routes to the OSPF backbone area.

<HUAWEI> system-view
[HUAWEI] route-policy policy permit node 10
[HUAWEI-route-policy] apply ospf backbone
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >