Run:
filter-policy
ipv6-prefix
ipv6-prefix-name
import
OSPFv3 is configured to filter the imported routes.
Using the
filter-policy
command, you can only filter the routes calculated by OSPFv3. Routes
that do not pass the filtering are neither added to the OSPFv3 routing table nor advertised.
----End
6.7.4 Configuring OSPFv3 to Import External Routes
Importing the routes discovered by other routing protocols can enrich OSPFv3 routing
information.
Context
Because OSPFv3 is a link state-based routing protocol and cannot directly filter the advertised
LSAs, OSPFv3 must filter the routes when importing them. Then, only the routes that pass the
filtering can be advertised.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ospfv3
[
process-id
]
The OSPFv3 view is displayed.
Step 3
Run:
default
{
cost
cost
|
tag
tag
|
type
type
}
*
The default cost of the imported route is set.
Step 4
Run:
import-route
protocol
[
process-id
] [ {
cost
cost
|
inherit-cost
} |
type
type
|
tag
tag
|
route-policy
route-policy-name
]
*
External routes are imported.
Step 5
(Optional) Run:
import-route
bgp
[
permit-ibgp
] [ {
cost
cost
|
inherit-cost
} |
type
type
|
tag
tag
|
route-policy
route-policy-name
]
*
IBGP routes are imported in OSPFv3 process.
NOTE
Importing IBGP routes in OSPFv3 process can lead to routing loops.
Step 6
(Optional) Run:
default-route-advertise
[
always
|
cost
cost
|
type
type
|
tag
tag
|
route-policy
route-policy-name
[
match-any
] ]
*
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
6 OSPFv3 Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
426