165
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 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 the specified
routing policy. The
route-policy-name
argument is a case-sensitive string of 1 to 63 characters.
tag
tag
: Specifies a tag value for marking redistributed routes, in the range of 1 to 4294967295.
Usage guidelines
IS-IS takes all the redistributed routes as external routes to destinations outside the IS-IS routing domain.
The effective cost depends on the cost style. For the styles of
narrow
,
narrow-compatible
, and
compatible
,
the cost is in the range of 0 to 63. If the cost is more than 63, 63 is used. For the style of wide or
wide-compatible, the configured value is the effective value.
This
import-route
command cannot redistribute default routes. The command redistributes only active
routes. To display route state information, use the
display ip routing-table
protocol
command.
The
import-route bgp
command redistributes only EBGP routes.
The
import-route bgp allow-ibgp
command redistributes both EBGP and IBGP routes. Because this
command might cause routing loops, use it with caution.
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.
Examples
# Redistribute static routes into IS-IS, and set the cost for redistributed routes to 15.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] import-route static cost 15
Related commands
import-route limit
import-route isis level-1 into level-2
Use
import-route isis level-1 into level-2
to enable route advertisement from Level-1 to Level-2.
Use
undo import-route isis level-1 into level-2
to disable route advertisement from Level-1 to Level-2.
Syntax
import-route isis level-1 into level-2
[
filter-policy
{
acl-number
|
prefix-list
prefix-list-name
|
route-policy
route-policy-name
} |
tag
tag
] *
undo import-route isis level-1 into level-2