Configure a routing policy to control MPLS label allocation for each IPv4 route. The ASBR only allocates labels to the IPv4 routes that match the rules in the policy.
The system view is displayed.
The routing policy for local PE is configured. For the labeled IPv4 routes established to PEs in the same AS, allocate a new MPLS label for them.
A filter rule is configured to match IPv4 routes with labels.
New labels are allocated to matched IPv4 routes.
The system view is displayed.
The routing policy for peer ASBRs is configured. For the routes received from PE of local AS, ASBR allocates MPLS labels to them before establish them to peer ASBRs.
New labels are allocated to matched IPv4 routes.
The system view is displayed.
The BGP view is displayed.
The unicast IPv4 address family view is displayed.
The route policy applicable to the local PE is applied.
The route policy applicable to the peer ASBR is applied.
The capability to exchange labeled IPv4 routes with the local PE and the peer ASBR is configured.
In Option C, an inter-AS LSP must be established and the public network routes advertised between PEs and ASBRs carry MPLS labels.
An EBGP peer relationship must be established between ASBRs in different ASs for them to exchange labeled IPv4 routes.
The public network routes carrying MPLS labels are advertised through MP-BGP. According to relevant standards, label mappings about routes can be piggybacked inside the BGP Update messages that are used to advertise these routes. This feature is implemented through an extended BGP attribute, which enables BGP peers to process labeled IPv4 routes.
The configuration is committed.