< Home

import-route (RIPng)

Function

The import-route command imports routes.

The undo import-route command cancels importing routes.

By default, no route is imported.

Format

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

undo import-route protocol [ process-id ]

Parameters

Parameter Description Value
protocol Specifies the routing protocol from which routes are imported. The value can be direct, static, ripng, isis, unr, bgp, or ospfv3.
ripng Imports RIPng routes. -
isis Imports IS-IS routes. -
ospfv3 Imports OSPFv3 routes. -
process-id Specifies the process ID of imported routes. The value is an integer that ranges from 1 to 65535.
bgp Imports BGP routes. -
permit-ibgp Imports IBGP routes in a public network instance.
NOTE:
  • Import of IBGP routes in RIPng process can lead to routing loops. Administrators should take care of routing loops before configuring permit-ibgp.
-
unr Imports UNR routes. -
direct Imports direct routes. -
static Imports static routes. -
cost cost Specifies the cost of imported routes. If no cost is specified, the default cost configured using the default-cost (RIPng) command is used. The value is an integer that ranges from 0 to 15.
inherit-cost Specifies to retain the original cost of the imported route. -
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.

Views

RIPng view

Default Level

2: Configuration level

Usage Guidelines

You can configure a route-policy to allow RIPng to import only the routes that match the rout-policy and set attributes for imported routes.

You can run one of the following commands to set the cost of imported routes. The following commands are listed in descending order of priorities.

  • Run the apply cost command to set the cost of routes.

  • Run the import-route (RIPng view) command to set the cost of imported routes.

  • Run the default-cost (RIPng) command to set the default cost of imported routes.

After the 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 RIPng routing table. Therefore, use this command with caution.

Example

# Import routes from IS-IS process 7 and set the cost of imported routes to 7.

<HUAWEI> system-view
[HUAWEI] ripng 1
[HUAWEI-ripng-1] import-route isis 7 cost 7

# Import the IBGP routes matching route-policy abc to RIPng process 1 and set the cost of imported routes to 5.

<HUAWEI> system-view
[HUAWEI] ripng 1
[HUAWEI-ripng-1] import-route bgp permit-ibgp cost 5 route-policy abc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >