254
import-route (IS-IS view)
Use import-route to redistribute routes from another routing protocol or another IS-IS process.
Use undo import-route to remove the redistribution.
Syntax
import-route protocol [ process-id | all-processes | allow-ibgp ] [ allow-direct | cost cost |
cost-type { external | internal } | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name |
tag tag ] *
undo import-route protocol [ process-id | all-processes ]
Default
No route redistribution is configured.
Views
IS-IS view
Predefined user roles
network-admin
Parameters
protocol: Redistributes routes from a routing protocol, which can be BGP, direct, IS-IS, OSPF, RIP, or
static.
process-id: Specifies a process by its ID in the range of 1 to 65535. It is available only when the
protocol is isis, ospf, or rip.
all-processes: Redistributes routes from all the processes of the specified routing protocol. This
keyword takes effect only when the protocol is rip, ospf, or isis.
allow-ibgp: Allows redistribution of IBGP routes. It is available when the protocol is BGP.
allow-direct: Redistributes the networks of the local interfaces enabled with the specified routing
protocol. By default, the networks of the local interfaces are not redistributed. If you specify both the
allow-direct keyword and the route-policy route-policy-name option, make sure the if-match rule
defined in the routing policy does not conflict with the allow-direct keyword. For example, if you
specify the allow-direct keyword, do not configure the if-match route-type rule for the routing policy.
Otherwise, the allow-direct keyword does not take effect.
cost: Specifies a cost for redistributed routes, which is in the range of 0 to 4261412864.
For the styles of narrow, narrow-compatible, and compatible, the cost is in the range of 0 to
63.
For the styles of wide and wide-compatible, the cost is in the range of 0 to 4261412864.
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