R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
254
import-route (OSPF view)
Syntax
import-route protocol [ process-id | all-processes | allow-ibgp ] [ cost cost | type type | tag tag |
route-policy route-policy-name ] *
undo import-route protocol [ process-id | all-processes ]
View
OSPF view
Default level
2: System level
Parameters
protocol: Redistributes routes from the specified protocol, which can be bgp, direct, 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 or ospf.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This keyword
takes effect only when the protocol is rip or ospf.
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:
Intra-area route
Inter-area route
Type-1 External route
Type-2 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.