4-40
Parameters
protocol
: Redistributes routes from the specified protocol, which can be
bgp
,
direct
,
isis
,
ospf
,
rip
, or
static
.
process-id
: Process ID, in the range 1 to 65535. The default is 1. It is available only when the
protocol
is
rip
,
ospf
, or
isis
.
all-processes
: Redistributes routes from all the processes of the specified routing protocol. This
keyword takes effect only when the protocol is
rip
,
ospf
, or
isis
.
allow-ibgp
: Allows IBGP routes redistribution. It is optional only when the
protocol
is
bgp
.
cost cost
: Specifies a route cost, in the range 0 to 16777214. The default is 1.
type
type
: Specifies a cost type, 1 or 2. The default is 2.
tag
tag
: Specifies a tag for external LSAs. The default is 1.
route-policy route-policy-name
: Specifies a route policy to redistribute qualified routes only. A Route
policy name is a string of up to 19 characters.
Description
Use the
import-route
command to redistribute routes from another protocol.
Use the
undo import-route
command to disable route redistribution from a protocol.
Route redistribution from another protocol is not configured by default.
OSPF prioritize routes as follows:
z
Intra-area route
z
Inter-area route
z
Type1 External route
z
Type2 External route
An intra-area route is a route in an OSPF area. An inter-area route is between any two OSPF areas.
Both of them are internal routes.
An external route is a route to a destination outside the OSPF AS.
A Type-1 external route is an IGP route, such as RIP or STATIC, which has high reliability and whose
cost is comparable with the cost of OSPF internal routes. Therefore, the cost from an OSPF router to a
Type-1 external route’s destination equals the cost from the router to the corresponding ASBR plus the
cost from the ASBR to the external route’s destination.
A Type-2 external route is an EGP route, which has low credibility, so OSPF considers the cost from
the ASBR to a Type-2 external route is much bigger than the cost from the ASBR to an OSPF internal
router. Therefore, the cost from an internal router to a Type-2 external route’s destination equals the
cost from the ASBR to the Type-2 external route’s destination.
Related commands:
default-route-advertise.