import-route (RIPng view)

Function

The import-route command configures RIPng to import routes from other routing protocols or RIPng processes.

The undo import-route command prevents RIPng from importing routes from other routing protocols or RIPng processes.

By default, RIPng does not import routes from any other routing protocols or RIPng processes.

Format

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

undo import-route { { direct | static | bgp | unr } | { { ospfv3 | ripng | isis } [ process-id ] } }

Parameters

Parameter Description Value
static

Imports static routes.

-

direct

Imports direct routes.

-

bgp

Imports BGP routes.

-

unr

Imports user network routes.

-

ripng

Imports RIPng routes.

-

ospfv3

Imports OSPFv3 routes.

-

isis

Imports IS-IS routes.

-

process-id

Specifies the ID of a ripng, ospf, or isis process.

A device can import RIPng routes from another process only when its ID is different from the local one.

The value is an integer ranging from 1 to 4294967295. The default value is 1.

cost cost

Specifies the cost of imported routes. If no cost is specified, run the default-cost command to set the default cost.

The value is an integer ranging from 0 to 15. The default value is 0.

inherit-cost

Retains the original cost of the imported route.

-

route-filter route-filter-name

Specifies the name of a route-filter used to filter imported routes. A device imports only routes matching the policy.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

route-policy route-policy-name

Specifies the name of a route-policy used to filter imported routes. A device imports only routes matching the policy.

The name is a string of 1 to 200 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

Task Name and Operations

Task Name Operations
ripng write

Usage Guidelines

Usage Scenario

When RIPng and other routing protocols are deployed on a network, you can enable the traffic within a RIPng domain to reach a destination outside the RIPng domain using import-route command.

Prerequisites

A RIPng process has been created and the RIPng view has been displayed using the ripng command.

Configuration Impact

Importing routes of another routing protocol may lead to routing loops. Therefore, exercise caution when running the command.

Precautions

The import-route (RIPng) command cannot import default routes.

Example

# Import static routes to RIPng process 1 using route-filter abc and XPL para (10,11,12,13,14,15,16,17).
<HUAWEI> system-view
[~HUAWEI] ripng 1
[*HUAWEI-ripng-1] import-route static route-filter abc(10,11,12,13,14,15,16,17)
# Import a route from IS-IS process 7 and set the cost of the route to 5.
<HUAWEI> system-view
[~HUAWEI] ripng 1
[*HUAWEI-ripng-1] import-route isis 7 cost 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >