![Huawei S6700 Series Configuration Manual Download Page 223](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517223.webp)
5.8.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.
Do as follows on the switch that runs OSPFv3.
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
|
type
type
|
tag
tag
|
route-
policy
route-policy-name
]
*
External routes are imported.
Step 5
(Optional) Run:
default-route-advertise
[
always
|
cost
cost
|
type
type
|
tag
tag
|
route-policy
route-policy-name
]
*
Default routes are advertised to the OSPFv3 route area.
Step 6
(Optional) Run:
filter-policy
{
acl6-number
|
acl6-name
acl6-name
|
ipv6-prefix
ipv6-prefix-name
}
export
[
protocol
[
process-id
] ]
The imported external routes are filtered.
After you run the
import-route
command on an OSPFv3 router to import external routes, the
switch becomes an ASBR.
You can configure OSPFv3 to filter a certain type of routing information by specifying the
protocol
. If
protocol
is not specified, OSPFv3 filters all the imported routes.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
5 OSPFv3 Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
204