The mpls l2vpn auto-create-session command enables a device to automatically establish remote LDP sessions during LDP PW establishment.
The undo mpls l2vpn auto-create-session command disables a device from automatically establishing remote LDP sessions during LDP PW establishment.
By default, a device cannot automatically establish remote LDP sessions during LDP PW establishment.
Usage Scenario
Establishing a remote LDP session between two PEs is the prerequisite for establishing an LDP VPLS or VPWS PW between the two PEs. Usually, the mpls ldp remote-peer command is used to establish a remote LDP session. If a PE has to establish multiple LDP VPLS or VPWS PWs with other PEs, the mpls ldp remote-peer command has to be run multiple times. To simplify LDP VPLS or VPWS PW establishment, run the mpls l2vpn auto-create-session command. Then, a remote LDP session will be automatically established during LDP VPLS or VPWS establishment.
Prerequisites
MPLS L2VPN has been enabled using the mpls l2vpn command.
Precautions