When the Level 1 carrier and Level 2 carrier are in different ASs, the Level 1 carrier takes the Level 2 carrier as its VPN user.
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.
The 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 PE 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 PE.
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 PE.
The configuration is committed.
The system view is displayed.
A route-policy is created for the Level 2 carrier PE.
Packets are matched against labeled IPv4 routes.
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 2 carrier PE is configured as an IBGP peer of the Level 1 carrier CE.
The interface for setting up a TCP connection is specified.
The capability of exchanging labeled IPv4 routes is enabled.
Labels are allocated to the labeled IPv4 routes to be advertised to the Level 2 carrier PE.
The internal routes of the Level 2 carrier network are imported.
The configuration is committed.
The system view is displayed.
The BGP view is displayed.
The Level 1 carrier CE is configured as an IBGP peer of the Level 2 carrier PE.
The interface for setting up a TCP connection is specified.
The capability of exchanging labeled IPv4 routes is enabled.
The configuration is committed.