491
Syntax
import-route
protocol
[
process-id
|
all-processes
|
allow-ibgp
] [
cost
cost
|
nssa-only
|
route-policy
route-policy-name
|
tag
tag
|
type
type
] *
undo import-route
protocol
[
process-id
|
all-processes
]
Default
OSPFv3 route redistribution is disabled.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
protocol
: Redistributes routes from the specified routing protocol, which can be
bgp4+
,
direct
,
isisv6
,
ospfv3
,
ripng
, or
static
.
process-id
: Specifies the process ID of a routing protocol, in the range of 1 to 65536. It defaults to 1. This
argument takes effect only when the protocol is
isisv6
,
ospfv3
, or
ripng
.
all-processes
: Redistributes routes from all the processes of the specified routing protocol. This keyword
takes effect only when the protocol is
ripng
,
ospfv3
, or
isisv6
.
allow-ibgp
: Redistributes IBGP routes. It is available only when the protocol is
bgp4+
.
cost
cost
: Specifies a cost for redistributed routes, in the range of 1 to 16777214. The default is 1.
nssa-only
: Limits the route advertisement to the NSSA area by setting the P-bit of Type-7 LSAs to 0. If you
do not specify this keyword, the P-bit of Type-7 LSAs is set to 1. If the router acts as both an ASBR and an
ABR and
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. This keyword is available in Release 2311P04 and later
versions.
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. If you do not specify
this option, the tag specified by the
default tag
command applies. This option is available in Release
2311P04 and later versions.
type
type
: Specifies the type for redistributed routes, 1 or 2. The default is 2.
Usage guidelines
An external route is a route to a destination outside the OSPFv3 AS. External routes types are as follows:
•
A Type-1 external route has high reliability. Its cost is comparable with the cost of OSPFv3 internal
routes. The cost from an OSPFv3 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 OSPFv3 considers the cost from the ASBR to a Type-2
external route is much bigger than the cost from the ASBR to an OSPFv3 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.