Before configuring LDP extension for inter-area LSP, familiarize yourself with the usage scenario, complete the pre-configuration tasks, and obtain the data required for the configuration.
On a large-scale network, multiple IGP areas usually need to be configured for flexible network deployment and fast route convergence. When advertising routes between IGP areas, to prevent a large number of routes from consuming too many resources, an area border router (ABR) needs to aggregate the routes in the area and then advertise the aggregated routes to the neighboring IGP areas. However, by default, when establishing LSPs, LDP searches the routing table for the route that exactly matches the forwarding equivalence class (FEC) carried in the received Label Mapping message. For aggregated routes, only liberal LDP LSPs, not inter-area LDP LSPs, can be set up.
In this case, you can run the longest-match command to configure LDP to search for routes based on the longest match rule to establish inter-area LDP LSPs.
Before configuring LDP extension for inter-area LSP, complete the following tasks:
Assign IP addresses to interfaces to make neighboring nodes on the network layer reachable.
Configure an IGP to advertise the network segments connecting to interfaces on each node and to advertise the routes of hosts with LSR IDs.
Configure the policy for aggregating routes.
Configure MPLS and MPLS LDP.