A VPN instance of the IPv6 address family can be configured to manage IPv6 VPN routes.
An instance is created to comprise the VPN forwarding information for each VPN in a BGP/MPLS IPv6 VPN. This instance is called a VPN instance or a VRF table. In related standards, the VPN instance is also called a per-site forwarding table.
VPN instances are used to isolate VPN routes from public network routes. Routes of different VPN instances are isolated from one another. VPN instances need to be configured in all types of BGP/MPLS IPv6 VPN networking solutions.
The system view is displayed.
A VPN instance is created, and the VPN instance view is displayed.
The name of a VPN instance is case sensitive. For example, vpn1 and VPN1 are considered different VPN instances.
The description of the VPN instance is configured. Similar to a host name or an interface description, the VPN instance description helps users memorize the VPN instance.
A service ID is created for the VPN instance. A service ID is unique on a device. It distinguishes a VPN service from other VPN services on the network.
A VPN ID is set.
You can run this command to create a globally unique ID for a VPN instance based on the plan. In a CU separation scenario, you can run this command to set the same VPN ID for the control plane and forwarding plane, preventing a VPN ID inconsistency.
A VPN instance IPv6 address family is configured, and its view is displayed. VPN instances support both the IPv4 and IPv6 address families. The VPN instance configuration is performed only after an address family is configured based on the types of routes to be advertised and data to be forwarded.
An RD is set for the VPN instance IPv6 address family. A VPN instance IPv6 address family takes effect only after being assigned an RD. The RDs of different VPN instances on a PE must be different.
One or more import VPN targets, one or more export VPN targets, or both of import and export VPN targets are configured for the VPN instance IPv6 address family. A VPN target is a BGP extended community attribute. It is used to control the advertisement or acceptance of VPNv6 route information. A maximum of eight VPN targets can be configured using the vpn-target command. If you want to configure more VPN targets in the VPN instance IPv6 address family view, repeat running the vpn-target command.
After the number of route prefixes exceeds the maximum number, direct and static routes can still be added to the VPN routing table of the VPN instance IPv6 address family.
An import route-policy is applied to the VPN instance IPv6 address family. In addition to using a VPN target to control the advertisement or acceptance of VPN routes, you can use an import route-policy to better control the acceptance of VPN routes. It filters routes to be imported into the VPN instance IPv6 address family.
An export route-policy is applied to the VPN instance IPv6 address family. In addition to using a VPN target to control the advertisement or acceptance of VPN routes, you can use an export route-policy to better control the advertisement of VPN routes. The export route-policy filters routes before they are advertised to other PEs.
By default, export VPN targets are added to VPN routes after these routes match an export route-policy. If the export route-policy contains VPN target-related filter rules, the route-policy cannot apply to these routes. To prevent such rule-induced failures, configure the add-ert-first parameter to instruct the device to add export VPN targets to VPN routes before these routes are matched against the export route-policy.
An import route-filter is configured for the VPN instance IPv6 address family. In addition to using a VPN target to control the advertisement or acceptance of VPN routes, you can use an import route-filter to better control the acceptance of VPN routes. It filters routes to be imported into the VPN instance IPv6 address family.
An export route-filter is configured for the VPN instance IPv6 address family.
In addition to using a VPN target to control the advertisement or acceptance of VPN routes, you can use an export route-filter to better control the advertisement of VPN routes.
By default, export route targets are added to VPN routes before these routes are matched against an export route-filter. If the export route-filter contains route target-related filtering rules, these rules cannot apply to these routes. If you want to apply the VPN target-related filter rules defined in an export route-filter to VPN routes, configure the add-ert-first parameter to configure the system to add export VPN targets to VPN routes before matching these routes against the export route-filter.
A tunnel policy is applied to the VPN instance IPv6 address family. A tunnel can be specified for VPNv6 data forwarding when a tunnel policy is applied to the VPN instance IPv6 address family.
The apply-label { per-nexthop | per-route } pop-go command is mutually exclusive with the apply-label { per-instance | per-nexthop | per-route }. If you run both commands, the later configuration overrides the previous one.
The configuration is committed.