import-route

Use import-route to enable IPv6 IS-IS to redistribute routes from another routing protocol.

Use undo import-route to remove the configuration.

Syntax

import-route protocol [ as-number | process-id ] [ allow-ibgp ] [ allow-direct | cost cost-value | [ level-1 | level-1-2 | level-2 ] | route-policy route-policy-name | tag tag ] *

undo import-route protocol [ process-id ]

Default

IPv6 does not redistribute routes from any other routing protocol.

Views

IS-IS IPv6 unicast address family view

Predefined user roles

network-admin

Parameters

protocol: Redistributes routes from the specified routing protocol.

as-number: Specifies an AS by its number in the range of 1 to 4294967295. This argument applies only to the bgp4+ protocol. If you do not specify this argument, the command redistributes all IPv6 EBGP routes. As a best practice, specify an AS to prevent the system from redistributing excessive routes.

process-id: Specifies a process by its ID in the range of 1 to 65535. The default value is 1. This argument is available only when the protocol is ripng, isisv6, or ospfv3.

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 cost-value: Specifies a cost for redistributed routes, in the range of 0 to 4261412864.

level-1: Redistributes routes into the Level-1 routing table.

level-1-2: Redistributes routes into Level-1 and Level-2 routing tables.

level-2: Redistributes routes into the Level-2 routing table. If you do not specify a level, the routes are redistributed into the Level-2 routing table.

route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to filter redistributed routes.

tag tag: Specifies an administrative tag for marking redistributed routes, in the range of 1 to 4294967295.

allow-ibgp: Allows redistribution of IBGP routes. This keyword is available only when the protocol is bgp4+.

Usage guidelines

IPv6 IS-IS considers redistributed routes as AS-external routes.

You can specify a cost and a level for redistributed routes.

The import-route bgp4+ command redistributes only EBGP routes. The import-route bgp4+ allow-ibgp command redistributes both EBGP and IBGP routes, and might cause routing loops. Therefore, use it with caution.

Examples

# Configure IPv6 IS-IS to redistribute static routes and set the cost for redistributed routes to 15.

<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] address-family ipv6
[Sysname-isis-1-ipv6] import-route static cost 15