# mpls ldp autoconfig

#### Syntax

From Interface Configuration mode and Subinterface Configuration mode:

[ no ] mpls ldp { isis | ospf } autoconfig

From Router Configuration mode for IS-IS:

mpls ldp autoconfig [ level-1 | level-2 | level-1-2 ]

no mpls ldp autoconfig

From Router Configuration mode for OSPF:

mpls ldp autoconfig [ areaId | areaIdInt ]

no mpls ldp autoconfig

#### Release Information

Command introduced in JunosE Release 8.1.0.

#### Description

In Interface Configuration mode, creates LDP on the current interface. The no version removes LDP from the interface.

In Router Configuration mode, creates LDP on all interfaces in the IS-IS or OSPF router, on interfaces in the specified level (IS-IS), or on interfaces in the specified area (OSPF). The no version removes the LDP configuration for all qualifying interfaces.

#### Options

- level-1—Enables LDP on all IS-IS level 1 interfaces
- level-1-2—Enables LDP on all IS-IS level 1-2 interfaces
- level-2—Enables LDP on all IS-IS level-2–only interfaces
- areaId—OSPF area ID in IP address format
- areaIdInt—OSPF area ID as a decimal value in the range 0–4294967295

#### Mode

Interface Configuration, Router Configuration, Subinterface Configuration