On a seamless MPLS network, before an E2E BGP LSP is established, BGP peers must be enabled to exchange labeled IPv4 routes with each other.
The system view is displayed.
The BGP view is displayed.
The capability of exchanging labeled IPv4 routes with devices in the local AS is enabled.
By default, the capability of exchanging labeled IPv4 routes is disabled.
The check-tunnel-reachable parameter helps prevent a data forwarding failure when the CSG and MASG successfully set up an MP-EBGP peer relationship but a section along the LSP between them fails to be established.
If the check-tunnel-reachable parameter is specified:
When a tunnel between a local and remote device is unreachable, the local device advertises an IPv4 unicast route to its peer. When the tunnel is reachable, the local device advertises a labeled IPv4 route.
If the check-tunnel-reachable parameter is not specified:
The local device advertises a labeled IPv4 route, regardless of whether a tunnel between the local and remote devices is reachable.
The system view is displayed.
The view of the interface connected to the peer ASBR is displayed.
An IP address is assigned to the interface.
MPLS is enabled.
Return to the system view.
The BGP view is displayed.
The capability of exchanging labeled IPv4 routes between BGP peers, including the peer ASBR and the devices in the local AS, is enabled.
By default, the capability of exchanging labeled IPv4 routes is disabled.
The ASBR is disabled from advertising BGP supernet labeled routes.
By default, BGP supernet labeled routes can be preferentially selected and advertised.
First disable the ASBR from advertising BGP supernet labeled routes, to advertise the loopback address route of a PE in the local AS to a PE in another AS. Next, run the network command on the ASBR to advertise the BGP route to the loopback address of the PE in the same AS.
An IBGP peer relationship between the PE and the ASBR is unnecessary in this solution. An ASBR learns the labeled public BGP routes of the remote AS from the peer ASBR. Then these labeled public BGP routes are imported to IGP to trigger the establishment of an LDP LSP. A complete LDP LSP can then be established between the two PEs.
Run quit
The system view is displayed.
Run mpls
The MPLS view is displayed.
Run lsp-trigger bgp-label-route [ ip-prefix ip-prefix-name ] [ not-only-host ]
An LDP LSP is established for the labeled BGP routes of the public network that is filtered by the IP prefix list.
By default, LDP does not allocate labels to labeled BGP routes on the public network.