The ipv6 import-rib vpn-instance protocol direct command enables a device to import IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.
The undo ipv6 import-rib vpn-instance protocol direct command disables a device from importing IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.
By default, a device does not import IPv6 routes from a VPN instance to the public network instance's IPv6 routing table.
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. |
protocol |
Specifies the type of routes to be imported. |
- |
direct |
Imports direct routes. |
- |
route-policy route-policy-name |
Specifies the name of a route-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. |
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
In BGP/MPLS IPv6 VPN networking, IPv6 users of two VPNs with matching VPN targets can communicate, but IPv6 VPN users cannot communicate with IPv6 public network users. To enable IPv6 VPN users to communicate with IPv6 public network users, you must configure IPv6 route import between VPN and public network instances. To enable a device to import IPv6 routes from a VPN instance to the public network instance, run the ipv6 import-rib vpn-instance protocol direct command.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf1 [*HUAWEI-vpn-instance-vrf1] ipv6-family [*HUAWEI-vpn-instance-vrf1-af-ipv6] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vrf1-af-ipv6] quit [*HUAWEI-vpn-instance-vrf1] quit [*HUAWEI] ipv6 import-rib vpn-instance vrf1 protocol direct