253
FULL state neighbors exist in the backbone area, the P-bit of Type-7 LSAs originated by the router is
set to 0. This keyword applies to NSSA routers.
route-policy route-policy-name: Specifies a routing policy to filter redistributed routes. The
route-policy-name argument is a case-sensitive string of 1 to 63 characters.
tag tag: Specifies a tag for marking external LSAs, in the range of 0 to 4294967295. The default is 1.
type type: Specifies a cost type, 1 or 2. The default is 2.
Usage guidelines
This command redistributes routes destined for other ASs from another protocol. AS external routes
include the following types:
Type-1 external route
Type-2 external route
A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPF internal
routes. The cost from an OSPF router to a Type-1 external route's destination equals the cost from
the router to the ASBR plus the cost from the ASBR to the external route's destination.
A Type-2 external route has low credibility. OSPF considers the cost from the ASBR to the
destination of a Type-2 external route is much bigger than the cost from the ASBR to an OSPF
internal router. 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.
The import-route command cannot redistribute default external routes.
The import-route bgp command redistributes only EBGP routes. Because the import-route bgp
allow-ibgp command redistributes both EBGP and IBGP routes and might cause routing loops, use
it with caution.
Only active routes can be redistributed. To view information about active routes, use the display ip
routing-table protocol command.
The undo import-route protocol all-processes command removes only the configuration made by
the import-route protocol all-processes command, instead of the configuration made by the
import-route protocol process-id command.
The import-route nssa-only command redistributes AS-external routes in Type-7 LSAs only into
the NSSA area.
Examples
# Redistribute routes from RIP process 40 and specify the type, tag, and cost as 2, 33, and 50 for
redistributed routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] import-route rip 40 type 2 tag 33 cost 50
Related commands
default-route-advertise (OSPF view)