
Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-30
Example
# Filter the received routing information according to the rule defined by the access
control list 2000.
[Quidway] acl number 2000
[Quidway-acl-basic-2000] rule permit source 20.0.0.0 0.255.255.255
[Quidway-acl-basic-2000] rule deny source any
[Quidway-ospf] filter-policy 2000 import
3.1.28 import-route
Syntax
import-route protocol
[
cost
value
|
type
value
|
tag
value
|
route-policy
route-policy-name
]*
undo import-route protocol
View
OSPF view
Parameter
protocol
: Specify the source routing protocol that can be imported. At present, it
includes
direct
,
rip
,
bgp
and
static
.
cost value
: Specify the cost of imported route.
type value
: Specify the cost type of imported external routes. The value ranges from 1
to 2. The default value is 2.
tag value
: Specify the value of tag for imported external routes.
route-policy
route-policy-name
: Configure only to import the routes matching the
specified Route-policy.
Description
Using
import-route
command, you can import the information of another routing
protocol. Using
undo import-route
command, you can cancel the imported external
routing information.
By default, the routing information of other protocols is not imported.
Note:
You are recommended to configure the route type, cost and tag together in one
command; otherwise, the new configuration overwrites the old one.