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 vpn-instance

import-rib vpn-instance

Function

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

The undo import-rib vpn-instance command restores the default configuration.

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

NOTE:

CE6810LI series does not support this command.

Format

import-rib vpn-instance vpn-instance-name [ valid-route ] [ route-policy route-policy-name ]

undo import-rib vpn-instance vpn-instance-name [ valid-route ] [ route-policy route-policy-name ]

Parameters

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

valid-route Imports all valid BGP routes of the 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 view, BGP-VPN IPv4 unicast address family view, BGP-VPN multi-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.

If you run the import-rib vpn-instance command without specifying the valid-route parameter, the device will import only active valid BGP routes from the VPN instance to the public network instance. To enable the device to import all valid BGP routes, specify the valid-route parameter when running the import-rib vpn-instance 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 vpn-instance command, the if-match interface command will become ineffective.

Example

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

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

Document ID: EDOC1000166501

Views: 44026

Downloads: 330

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