A VPN instance can be configured on a PE to manage VPN routes.
In the hub-spoke networking, the PE connected to a central site (Hub site) is called a Hub-PE and the PE connected to a non-central site (Spoke site) is called a Spoke-PE.
VPN-in is used to receive and maintain the VPNv6 routes advertised by all the Spoke-PEs.
VPN-out is used to maintain the routes of the Hub site and all the Spoke sites and advertise the routes to all Spoke-PEs.
Steps 1 to 8 are performed to configure one VPN instance. Configurations of different VPN instances are similar. Note that the different VPN instances on the same device must have different names, RDs, and description.
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.
The description is used to record the purpose of creating the VPN instance and the CEs connected to the VPN instance.
The IPv6 address family is enabled for the VPN instance and the VPN instance IPv6 address family view is displayed.
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. Before setting the RD, you can configure only the description about the VPN instance. No other parameters can be configured.
The device is configured to assign a unique label to each VPNv6 route sent to its BGP VPNv6 peer and forward the data packets received from its BGP VPNv6 peer through outbound interfaces found in the local ILM table.
After the apply-label per-route pop-go command is configured, the local device records in the ILM the mapping between the label assigned to each VPNv6 route and the outbound interface of the route. Then, after the local device receives a labeled data packet from its BGP VPNv6 peer, the local device directly searches the ILM for an outbound interface based on label information carried in the packet and forwards the packet through the found outbound interface after removing its label. This implementation significantly accelerates packet forwarding.
The apply-label per-route pop-go command is mutually exclusive with the apply-label per-instance command. If the two commands are both configured, the later configuration overrides the previous one.
MPLS label allocation based on VPN instances IPv6 address family is configured. Then, all the routes of the VPN instance IPv6 address family use one label.
The maximum number of prefixes of the VPN instance IPv6 address family is set.
To prevent a PE from importing excessive prefixes, you can set the maximum number of prefixes supported by the VPN instance IPv6 address family.
The configuration is committed.