When Level 1 and Level 2 carriers are in different ASs, the Level 2 carrier functions as the VPN user of the Level 1 carrier, the scenario of which is the same as that the CE's access to the PE in the basic BGP/MPLS IP VPN.
The system view is displayed.
A VPN instance is created, and the VPN instance view is displayed.
The VPN instance IPv4 address family is enabled, and the view of this address family is displayed.
An RD is set for the VPN instance IPv4 address family.
The label distribution mode is set to per-route per-label.
A VPN target is configured for the VPN instance IPv4 address family.
Return to the system view.
The view of the interface connected to the Level 1 carrier CE is displayed.
The interface is associated with the VPN instance.
The IP address is configured for the interface.
MPLS is enabled on the interface.
The configuration is committed.
The system view is displayed.
The BGP view is displayed.
A BGP-VPN instance is created and the BGP-VPN instance view is displayed.
The Level 1 carrier CE is configured as an EBGP peer in the BGP-VPN instance view.
Return to the BGP view.
The BGP-VPN instance IPv4 address family view is displayed.
Labeled BGP VPN routes are imported to the BGP VPN routing table.
Return to the BGP view.
The BGP-labeled-VPN instance IPv4 address family view is displayed.
The BGP peer relationship is enabled in the BGP-labeled-VPN instance IPv4 address family view so that the Level 1 carrier PE and the Level 1 carrier CE can exchange labeled BGP routes.
The device is enabled to import the labeled BGP routes that are imported from the VPN instance to the routing table of the BGP-labeled-VPN instance IPv4 address family.
The configuration is committed.
The system view is displayed.
The view of the interface connected to the Level 1 carrier PE is displayed.
The IP address is configured for the interface.
MPLS is enabled on the interface.
Return to the system view.
The BGP view is displayed.
The Level 1 carrier PE is configured as an EBGP peer of the Level 1 carrier CE.
The BGP-labeled address family view is displayed.
The BGP peer relationship is enabled in the BGP-labeled address family view so that the Level 1 carrier CE and the Level 1 carrier PE can exchange labeled BGP routes.
Routing loops are allowed.
Perform this step if the Level 1 carrier and Level 2 carriers belong to different ASs and Level 2 carriers belong to the same AS.
Return to the BGP view.
BGP VPN labeled routes are imported to the BGP public network routing table.
The configuration is committed.