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).
ip import-rib vpn-instance

ip import-rib vpn-instance

Function

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

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

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

NOTE:

CE6810LI series does not support this command.

Format

ip import-rib vpn-instance vpn-instance-name protocol direct [ route-policy route-policy-name ]

undo ip import-rib vpn-instance vpn-instance-name protocol direct

ip import-rib vpn-instance vpn-instance-name protocol static [ valid-route ] [ route-policy route-policy-name ]

undo ip import-rib vpn-instance vpn-instance-name protocol static

ip import-rib vpn-instance vpn-instance-name protocol { isis process-id | ospf process-id } [ valid-route ] [ route-policy route-policy-name ]

undo ip import-rib vpn-instance vpn-instance-name protocol { isis process-id | ospf process-id } [ 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.
protocol Specifies a protocol type of routes to be imported to the public network routing table. -
direct Imports direct routes, excluding direct VLINK routes. -
static Imports static routes. -
isis process-id Imports IS-IS routes of the specified process. The process-id parameter specifies the process ID.

The value is an integer ranging from 1 to 4294967295.

ospf process-id Imports OSPF routes of the specified process. The process-id parameter specifies the process ID.

The value is an integer ranging from 1 to 4294967295.

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.
valid-route Imports only the valid routes of the specified route type. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In BGP/MPLS IP VPN networking, users of two VPNs with matching VPN targets can communicate, but VPN users cannot communicate with public network users. To enable VPN users to communicate with public network users, you must configure route import between VPN and public network instances. To enable a device to import routes from a VPN instance to the public network instance, run the ip import-rib vpn-instance command.

Precautions

If you run the ip import-rib vpn-instance command on a device without specifying the valid-route parameter, the device will import the optimal IP route of the specified type from the specified VPN instance to the public network routing table. If the imported route is preferred in this routing table, the device will advertise the route to other devices and deliver the route to the IP routing table to guide traffic forwarding.

If you run the ip import-rib vpn-instance command with the valid-route parameter, the device will import the valid IP routes of the specified type from the specified VPN instance to the public network instance routing table. If the imported routes are preferred in this routing table, the device will advertise these routes to other devices and deliver these routes to the IP routing table to guide traffic forwarding.

Example

# Enable the device to import valid IS-IS routes in the routing table of VPN instance vrf1 to the public network routing table.

<HUAWEI> system-view
[~HUAWEI] ip import-rib vpn-instance vrf1 protocol isis 1 valid-route

# Enable the device to import direct routes in the routing table of VPN instance vrf1 to the public network routing table.

<HUAWEI> system-view
[~HUAWEI] ip import-rib vpn-instance vrf1 protocol direct
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 69228

Downloads: 374

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