255
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 matching 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 (BGP view)
Use import-route to enable BGP to redistribute routes from an IGP protocol.
Use undo import-route to disable route redistribution from an IGP protocol.