cost-type
{
external
|
internal
}: Specifies the cost type. The
internal
type indicates internal routes,
and the
external
type indicates external routes. If
external
is specified, the cost of a redistributed
route to be advertised is added by 64 to make internal routes take priority over external routes. The
type is
external
by default. The keywords are available only when the cost type is
narrow
,
narrow-compatible
or
compatible
.
level-1
: Redistributes routes into the Level-1 routing table.
level-1-2
: Redistributes routes into both Level-1 and Level-2 routing tables.
level-2
: Redistributes routes into the Level-2 routing table. If no level is specified, the routes are
redistributed into the Level-2 routing table by default.
route-policy
route-policy-name
: Redistributes only routes satisfying the matching criteria of a
routing policy. A routing policy name is a case-sensitive string of 1 to 63 characters.
tag tag
: Specifies a tag value for redistributed routes from 1 to 4294967295.
Description
Use
import-route
to redistribute routes from another routing protocol or another IS-IS process.
Use
undo import-route
to disable route redistribution from another routing protocol or another IS-IS
process.
No route redistribution is configured by default.
IS-IS takes all the redistributed routes as external routes to destinations outside the IS-IS routing
domain.
Related commands:
import-route isis level-2 into level-1
.
Using the
import-route bgp
command redistributes only EBGP routes. Using the
import-route bgp
allow-ibgp
command redistributes both EBGP and IBGP routes, but this may cause routing loops;
be cautious with this command.
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.
Examples
# Redistribute static routes and set the cost to 15.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] import-route static cost 15
import-route isis level-2 into level-1
Syntax
import-route isis level-2 into level-1
[
filter-policy
{
acl-number
|
ip-prefix ip-prefix-name
|
route-policy
route-policy-name
} |
tag tag
] *
undo import-route isis level-2 into level-1
View
IS-IS view
Default level
2: System level
157