4-31
[Sysname-ospf-1] filter-policy 2000 import
import-route
Syntax
import-route protocol
[
process-id
]
[
cost
value
|
type
value
|
tag
value
|
route-policy
route-policy-name
] *
undo import-route protocol
[
process-id
]
View
OSPF view
Parameters
protocol
: Source routing protocol whose routes will be imported. At present, it can be
direct
,
ospf
,
ospf-ase
,
ospf-nssa
,
rip
, or
static.
process-id
: OSPF Process ID, in the range of 1 to 65535. This argument is valid only when the routing
protocol
is
ospf
,
ospf-ase
, or
ospf-nssa
.
route-policy
: Redistributes only the routing information matching the routing policy.
route-policy-name
: Name of a routing policy, a string of up to 19 characters.
cost value
: Specifies the cost of redistributed routes. The cost value ranges from 0 to 16777214 and
defaults to 1.
type value
: Specifies the type of redistributed routes. The type value is 1 or 2 and defaults to 2.
tag value
: Specifies the tag of redistributed routes. A tag can be used by a route policy. The tag value
ranges from 0 to 4294967295 and defaults to 1.
Description
Use the
import-route
command to redistribute external routes.
Use the
undo import-route
command to disable importing redistribution from other protocols.
You are recommended to configure the route type, cost and tag together in one command. When you
configure them individually, the new configuration for an attribute will overwrite the old configuration for
the attribute.
By default, OSPF does not redistribute any routing information of other protocols.
Examples
# Redistribute routes from RIP and specify the type as type-2, tag as 33, and cost as 50 for redistributed
routes.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] ospf 1
Summary of Contents for 5500-EI PWR
Page 43: ...2 6...
Page 76: ...1 17...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Page 519: ...iii...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Page 1111: ...ii xmodem get 3 18...
Page 1314: ...A 44 Z...