< Home

import-route (upgrade-compatible command)

Function

The import-route command configures IS-IS to import routes from UNR.

Format

import-route unr [ cost cost | tag tag | route-policy route-policy-name | { level-1 | level-2 | level-1-2 } ] *

import-route { direct | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } inherit-cost [ { level-1 | level-2 | level-1-2 } | tag tag route-policy route-policy-name ] *

import-route { direct | static | unr | { ospfv3 | ripng | isis } [ process-id ] | bgp [ permit-ibgp ] } [ { level-1 | level-2 | level-1-2 } | cost cost | tag tag route-policy route-policy-name ] *

Parameters

Parameter Description Value
unr

Specifies the imported source routing protocol as unr.

User Network Route (UNR) is allocated if dynamic routing protocols cannot be used when users are getting online.

-
cost cost

Specifies the cost value of the imported route.

The value is an integer which varies with the cost type.
  • When the cost type is narrow, narrow-compatible, or compatible, the value ranges from 0 to 63.
  • When the cost type is wide or wide-compatible, the value ranges from 0 to 4261412864.
The default value is 0.

The cost type can be configured using the cost-style command.

tag tag

Indicates the administrative tag assigned to the imported routes.

The value ranges from 1 to 4294967295.
route-policy route-policy-name

Specifies the name of the routing policy.

The parameter route-policy-name is a string ranges from 1 to 40. It is case-sensitive.
level-1

Imports the route into Level-1 routing table.

-
level-2

Imports the route into Level-2 routing table.

-
level-1-2

Imports the route into Level-1 and Level-2 routing table.

NOTE:

If the level of the routing table to which routes are imported is not specified in the command, the routes are imported to Level-2 routing table by default.

-
direct Indicates that the imported routes are direct routes. -
ospfv3 Specifies the protocol, from which routes are imported, as OSPFv3. -
ripng Specifies the protocol, from which routes are imported, as RIPng. -
isis Specifies the protocol, from which routes are imported, as IS-IS. -
process-id Specifies the process ID when the protocol is ospfv3, ospfv3, or isis. The value is an integer ranging from 1 to 65535. By default, the process ID is 1.
bgp Specifies the protocol, from which routes are imported, as BGP. -
permit-ibgp Specifies the imported source route as an IBGP route. If you do not configure this parameter, only the EBGP routes are imported. -
inherit-cost Retains the original cost of the imported external route. When configuring IS-IS to retain the original cost value of the imported route, you cannot set the cost type or cost value for the imported route. -
static Indicates that the imported routes are active static routes. -

Views

IS-IS topology view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

After the upgrade, this command is no longer supported, and it is replaced by the import-route command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >