
5.5.7 (Optional) Configuring OSPF to Filter LSAs in an Area
–
To apply a route-policy in the OSPF FRR view, perform the following operations:
1.
Run the
system-view
command to enter the system view.
2.
Run the
ospf
[
process-id
] command to enable an OSPF process and enter the
OSPF view.
3.
Run the
frr
command to enter the OSPF FRR view.
4.
Run the
loop-free-alternate
command to enable OSPF IP FRR to generate a loop-
free backup link.
5.
Run the
frr-policy route
route-policy
route-policy-name
command to configure
OSPF to add the backup routes that match a route-policy to the IP routing table.
For details on how to configure OSPF IP FRR, see
.
l
Apply a route-policy to OSPFv3 routes.
–
To apply a route-policy in the OSPFv3 view, perform the following operations:
1.
Run the
system-view
command to enter the system view.
2.
Run the
ospfv3
[
process-id
] command to enable an OSPFv3 process and enter
the OSPFv3 view.
3.
To apply a route-policy to OSPFv3 routes in the OSPFv3 view, see
.
Table 10-8
Applying a route-policy to OSPFv3 routes
Objectives
Command
Reference
To configure
OSPFv3 to
advertise the default
routes in the routing
table that are not
generated by
OSPFv3 to an
OSPFv3 routing
area based on the
parameters of a
route-policy
default-route-advertise
[
always
|
cost
cost
|
type
type
|
tag
tag
|
route-policy
route-
policy-name
]
*
6.7.4 Configuring
OSPFv3 to Import
External Routes
To configure
OSPFv3 to import
the routes that
match a route-
policy
import-route
{
bgp
[
permit-
ibgp
] |
unr
|
direct
|
ripng
help-
process-id
|
static
|
isis
help-
process-id
|
ospfv3
help-process-
id
} [ {
cost
cost
|
inherit-cost
} |
type
type
|
tag
tag
|
route-policy
route-policy-name
]
*
6.7.4 Configuring
OSPFv3 to Import
External Routes
To configure a
priority for OSPFv3
routes that match a
route-policy
preference
[
ase
] {
preference
|
route-policy
route-policy-name
}
*
-
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
10 Routing Policy Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1214