![Huawei S6700 Series Скачать руководство пользователя страница 128](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517128.webp)
l
Configuring Basic OSPF Functions
Data Preparation
To control OSPF routing information, you need the following data.
No.
Data
1
Link cost
2
ACL for route filtering
3
Name of the imported routing protocol, OSPF process ID, and default parameters
4.6.2 Configuring OSPF to Import External Routes
Importing the routes discovered by other routing protocols can enrich OSPF routing information.
Context
To access a switch running a non-OSPF protocol, an OSPF-capable switch needs to import routes
of the non-OSPF protocol into the OSPF network.
OSPF provides loop-free intra-area routes and inter-area routes; however, OSPF cannot prevent
external routing loops. Therefore, exercise caution when configuring OSPF to import external
routes. For details, see "OSPF VPN Extension" in the
S6700 Series Ethernet Switches Feature
Description - VPN.
Perform the following steps on the ASBR running OSPF.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ospf
[
process-id
]
The OSPF process view is displayed.
Step 3
Run:
import-route
{
limit
limit-number
| {
bgp
[
permit-ibgp
] |
direct
|
unr
|
rip
[
process-id-rip
] |
static
|
isis
[
process-id-isis
] |
ospf
[
process-id-ospf
] }
[
cost
cost
|
type
type
|
tag
tag
|
route-policy
route-policy-name
]
*
}
Routes are imported from another protocol.
Step 4
(Optional) Run:
default
{
cost
{
cost
|
inherit-metric
} |
limit
limit
|
tag
tag
|
type
type
}
*
The default values of parameters (the cost, number of routes, tag, and type) are set for imported
routes.
When OSPF imports external routes, you can set default values for some additional parameters,
such as the cost, number of routes to be imported, route tag, and route type. The route tag is used
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
109