98
• Intra-area route
• Inter-area route
• Type1 External route
• 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 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, 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. 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 routes.
Use the import-route bgp allow-ibgp command with care, because it redistributes both EBGP and IBGP
routes that may cause routing loops.
Only active routes can be redistributed. Use the display ip routing-table protocol command to display
route state information.
The undo import-route protocol all-processes command cancels the configuration made by the
import-route protocol all-processes command, rather than the import-route protocol process-id
command.
Related commands: default-route-advertise.
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
ispf enable
Syntax
ispf enable
undo ispf enable
View
OSPF view
Default level
2: System level
Parameters
None