import-route bgp permit-ibgp (RIPng view)

Function

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

The undo import-route bgp permit-ibgp 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 bgp permit-ibgp [ [ cost cost | inherit-cost ] | [ route-policy route-policy-name | route-filter route-filter-name ] ] *

undo import-route bgp permit-ibgp

Parameters

Parameter Description Value
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-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.

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.

bgp

Imports BGP routes.

-

permit-ibgp

Imports IBGP routes.

-

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 IBGP routes to RIPng process 1 with cost 5 using route-policy abc.
<HUAWEI> system-view
[~HUAWEI] route-policy abc permit node 10
[*HUAWEI-route-policy] quit
[*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 >