The import-rib vpn-instance command imports BGP routes from a specified VPN instance into the public network BGP routing table.
The undo import-rib vpn-instance command cancels the configuration.
By default, a device does not import BGP routes from a VPN instance into the public network BGP routing table.
import-rib vpn-instance vpn-instance-name [ include-label-route ] [ valid-route ] [ route-policy route-policy-name | route-filter route-filter-name ]
undo import-rib vpn-instance vpn-instance-name [ include-label-route ] [ valid-route ] [ route-policy route-policy-name | route-filter route-filter-name ]
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, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
include-label-route |
Includes labeled routes received from BGP peers as well as locally and remotely leaked VPN routes. |
- |
valid-route |
Imports all valid BGP routes from a VPN instance. |
- |
route-policy route-policy-name |
Specifies the name of a route-policy to filter routes. |
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. |
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. |
Usage Scenario
To configure a device to import BGP routes from a specified VPN instance into the public network BGP IPv6 routing table, run the import-rib vpn-instance command in the BGP-IPv6 unicast address family view.
If the valid-route parameter is specified in the import-rib vpn-instance command, all valid BGP routes in the specified VPN instance are imported. If the valid-route parameter is not specified, only active BGP routes among valid BGP routes are imported. If the include-label-route parameter is specified in the import-rib vpn-instance command, the device will import the labeled routes that are received from BGP peers and that are leaked to the specified VPN instance. If you want newly imported BGP routes to be preferentially selected, specify the route-policy route-policy-name or route-filter route-filter-name parameter so that the BGP attribute values in the filtered routes to be imported can be changed using the specified route-policy or route-filter.Precautions
If the route-policy route-policy-name parameter is specified in the import-rib vpn-instance command, the if-match interface command configuration in the route-policy will not take effect.
The import-rib vpn-instance command configuration does not take effect for unlabeled routes that are leaked locally or remotely. Nor does this configuration take effect for the routes imported using the import-route command or network command.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv6-family [*HUAWEI-vpn-instance-vpna-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpna-af-ipv6] vpn-target 111:1 both [*HUAWEI-vpn-instance-vpna-af-ipv6] quit [*HUAWEI-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] import-rib vpn-instance vpna