< Home

apply ospf

Function

The apply ospf command imports routes into the specific OSPF area.

The undo apply ospf command cancels the configuration.

By default, no route is imported to a specific OSPF area.

Format

apply ospf { backbone | stub-area }

undo apply ospf

Parameters

Parameter Description Value
backbone Imports routes into the OSPF backbone area. -
stub-area Imports routes into an OSPF not-so-stubby area (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 too many external routes from being imported into OSPF and bringing heavy stress on OSPF devices.

Prerequisites

The route-policy command has been run.

Configuration Impact

Routes matching the if-match clauses defined in the routing policy will be imported into the OSPF area specified in the command.

Example

# Import routes into the OSPF backbone area.

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