No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
import-rib

import-rib

Function

The import-rib command enables a device to import BGP routes of a public network instance or a VPN instance to the BGP routing table of a specified VPN instance.

The undo import-rib command restores the default configuration.

By default, a device does not import BGP routes of a public network instance or a VPN instance to the BGP routing table of a specified VPN instance.

NOTE:

CE6810LI series does not support this command.

Format

import-rib { public | vpn-instance vpn-instance-name } [ valid-route ] [ route-policy route-policy-name ]

undo import-rib { public | vpn-instance vpn-instance-name } [ valid-route ] [ route-policy route-policy-name ]

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.

public Indicates the public network instance. -
valid-route Imports valid BGP routes to be imported from a public network instance or a VPN instance. -
route-policy route-policy-name Specifies a route-policy to filter routes to be imported.

The name is a string of 1 to 200 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string.

Views

BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To enable VPN users to communicate with public network users, you can run the following commands to configure BGP route import between VPN and public network instances:
  • Run the import-rib vpn-instance vpn-instance-name [ valid-route ] [ route-policy route-policy-name ] command to enable a device to import BGP routes of a VPN instance to the BGP routing table of a public network instance.

  • Run the import-rib public [ valid-route ] [ route-policy route-policy-name ] command to enable a device to import BGP routes of a public network instance to the BGP routing table of a VPN instance.

To enable users in one VPN to communicate with users in another VPN, run the import-rib vpn-instance vpn-instance-name command to configure route import between VPN instances.

If you run the import-rib command without specifying the valid-route parameter, the device will import only active valid BGP routes from a VPN instance or public network instance. To enable the device to import all valid BGP routes, specify the valid-route parameter when running the import-rib command.

If a BGP route newly imported to the BGP routing table of a VPN instance shares the same prefix with a BGP route in the table, the VPN instance compares the two routes and delivers only the preferred route to the IP routing table to guide traffic forwarding. If you want a newly imported BGP route to be preferred, specify the route-policy route-policy-name parameter, so that the VPN instance changes the route attributes based on the route-policy.

Precautions

If the route-policy route-policy-name parameter is specified in the import-rib command, the if-match interface command will become ineffective.

Example

# Enable a device to import valid BGP routes of a public network instance to the BGP routing table of the specified VPN instance.

<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-vpna] import-rib public valid-route
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 43913

Downloads: 330

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next