Configuring LDP Sessions
Context
The MPLS LDP session is classified into local LDP sessions and remote LDP sessions. You can choose one of the following configurations according to your requirements:
Configuring a local LDP session (based on interfaces)
In most cases, you need to configure a local LDP session when deploying MPLS LDP services.
Configuring local LDP sessions (based on routes)
When the MPLS LDP function is configured, the MPLS LDP function must be enabled globally first and then on all the required interfaces. If too many interfaces need to be enabled with the function, the configuration method wastes too much time and energy, and cannot ensure the configuration accuracy.
After the MPLS LDP function is enabled globally, the function is automatically enabled on the IGP-enabled interfaces and the IGP-based LDP sessions are configured. This simplifies configuration and guarantees the configuration accuracy.
Configuring a remote LDP session
In most cases, remote LDP sessions are not established between adjacent LSRs. A remote LDP session is used for configuring a VPLS in Martini mode.
A local LDP session and a remote LDP session can coexist. That is, two LSRs can establish a local LDP session and a remote LDP session simultaneously. In this case, configurations of the local and remote LDP sessions at both ends must be the same.
Procedure
- Configuring a local LDP session (based on interfaces)
Perform the following steps on two directly connected LSRs.
- Configuring local LDP sessions (based on routes)
Configure automatic LDP deployment based on Intermediate System to Intermediate System (IS-IS).
Configure automatic LDP deployment based on Open Shortest Path First (OSPF).
- Configuring a remote MPLS LDP session
Perform the following steps on the LSRs on both ends of a remote LDP session.