When the Level 1 carrier and Level 2 carrier are in different ASs, the Level 2 carrier functions as the VPN user of the Level 1 carrier, the same as the CE of 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.
A route-policy is created for the Level 1 carrier CE.
An action of allocating MPLS labels to the selected IPv4 routes is configured in the route-policy.
Return to the system view.
The BGP view is displayed.
The BGP-VPN instance IPv4 address family view is displayed.
A Level 1 carrier CE is configured as an EBGP peer of the Level 1 carrier PE.
The capability of exchanging labeled IPv4 routes is enabled.
Labels are assigned to the routes advertised to the Level 1 carrier CE.
The configuration is committed.
The system view is displayed.
The view of the interface connected to the Level 1 carrier CE is displayed.
The IP address is configured for the interface.
MPLS is enabled on the interface.
Return to the system view.
A route-policy is created for the Level 1 carrier CE.
An action of allocating MPLS labels to the selected IPv4 routes is configured in the route-policy.
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 capability of exchanging labeled IPv4 routes is enabled.
Labels are assigned to the routes advertised to the Level 1 carrier CE.
Routing loops are permitted.
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.
The configuration is committed.