The ipv6 import-route command configures IS-IS to import IPv6 routes from other routing protocols.
The undo ipv6 import-route command disables IS-IS form importing IPv6 routes from other routing protocols.
By default, IS-IS does not import IPv6 routes from other routing protocols.
ipv6 import-route { direct | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } inherit-cost [ tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] *
ipv6 import-route { static | direct | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } [ cost cost | tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] *
ipv6 import-route limit limit-number [ threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value ] { level-1 | level-2 | level-1-2 }
undo ipv6 import-route { direct | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } inherit-cost [ tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] *
undo ipv6 import-route { static | direct | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } [ cost cost | tag tag | route-policy route-policy-name | [ level-1 | level-2 | level-1-2 ] ] *
undo ipv6 import-route limit [ limit-number ] [ threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value ] { level-1 | level-2 | level-1-2 }
Parameter | Description | Value |
---|---|---|
direct |
Indicates that the imported routes are direct routes. |
- |
static |
Indicates that the imported routes are activated static routes. |
- |
unr |
Indicates that the routing protocol from which routes are imported is UNR. The user network route (UNR) is used to allocate routes to user traffic when users cannot use dynamic routing protocols during logins. |
- |
ospfv3 |
Indicates that the routing protocol from which routes are imported is OSPFv3. |
- |
ripng |
Indicates that the routing protocol from which routes are imported is RIPng. |
- |
isis |
Indicates that the routing protocol from which routes are imported is IS-IS. |
- |
process-id |
When the protocol is ospfv3, ripng, or isis, a process ID needs to be specified. |
The value is an integer that ranges from 1 to 65535. |
bgp |
Indicates that the routing protocol from which routes are imported is BGP. |
- |
permit-ibgp |
Indicates that the imported routes are IBGP routes. If this parameter is not set, only EBGP routes can be imported. |
- |
inherit-cost |
Indicates that the original cost value of imported external routes is retained. |
- |
cost cost |
Specifies the cost value of imported routes. |
The value is an integer that ranges from 0 to 4261412864. The default value is 0. |
tag tag |
Specifies the administrative tag of imported routes. |
The value is an integer that ranges from 1 to 4294967295. |
route-policy route-policy-name |
Specifies the name of a route-policy. |
The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
level-1 |
Indicates that routes are imported into Level-1 routing tables. If no level is specified, routes are imported to Level-2 routing tables by default. |
- |
level-2 |
Indicates that routes are imported into Level-2 routing tables. If no level is specified, routes are imported to Level-2 routing tables by default. |
- |
level-1-2 |
Indicates that routes are imported into Level-1 and Level-2 routing tables. If no level is specified, routes are imported to Level-2 routing tables by default. |
- |
limit limit-number |
Specifies the maximum number of external IPv6 routes allowed to be imported to the IS-IS area. |
The value is an integer ranging from 1 to 10000000. |
threshold-alarm |
Specifies the alarm threshold for imported routes. |
- |
upper-limit upper-limit-value |
Specifies the upper alarm threshold for imported routes. |
The value is an integer ranging from 1 to 100. The default value is 80. |
lower-limit lower-limit-value |
Specifies the lower alarm threshold for imported routes. |
The value is an integer ranging from 1 to 100. The default value is 70. |
Usage Scenario
Configure IS-IS on a Level-1-2 device to advertise default routes into the IS-IS routing domain.
Configure IS-IS on a Level-1-2 device to import routes of other routing domains into the IS-IS routing domain.
If there are multiple Level-1-2 devices in the IS-IS routing domain, optimal routes destined for another routing domain need to be selected. This requires all devices in the IS-IS routing domain learn all or some external routes.
Configure IS-IS on a Level-1-2 device to import routes of other routing domains into the IS-IS routing domain. Alternatively, run the route-policy route-policy-name command to import some external routes from other routing domains.
Prerequisites
IS-IS has been enabled using the isis command and the IS-IS view has been displayed. IPv6 has been enabled for the IS-IS process using the ipv6 enable command.
Precautions
When routes of other routing protocols are imported, you can set the cost value and cost style of the imported routes. You can also configure IS-IS to retain the original cost value of the imported external routes. During route advertisement and route calculation, the original cost values of these routes are used. In this case, the cost style and cost value of the imported routes cannot be set, and static routes cannot be imported.
After the ipv6 import-route direct command is executed, routes to the network segment where the IPv6 address of the management interface belongs are also imported in the IS-IS routing table. Therefore, use this command with caution.
Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, all IPv6 routes of the specified routing domain are imported to the IS-IS routing table.
# Configure IS-IS to import static IPv6 routes and set the cost value of the routes to 15.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] isis [HUAWEI-isis-1] ipv6 enable [HUAWEI-isis-1] ipv6 import-route static cost 15
# Configure IS-IS to import OSPFv3 routes and retain the original cost value of the routes.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] isis [HUAWEI-isis-1] ipv6 enable [HUAWEI-isis-1] ipv6 import-route ospfv3 1 inherit-cost