The command is ‘mpls ldp autoconfig’ on IOS / IOS XE and ‘mpls ldp auto-config’ on IOS-XR.
- IOS / IOS-XE
- IOS-XR
#Configuration
router isis 100
mpls ldp autoconfig
router ospf 100
mpls ldp autoconfig
#Verification
IOS-XE#sh mpls interfaces
Interface IP Tunnel BGP Static Operational
GigabitEthernet1 Yes (ldp) No No No Yes
GigabitEthernet2 Yes (ldp) No No No Yes
IOS-XE#sh mpls interfaces detail | i Int|config
Interface GigabitEthernet1:
IGP config
Interface GigabitEthernet2:
IGP config
IOS-XE#
#Configuration
router isis 100
address-family ipv4 unicast
mpls ldp auto-config
router ospf 100
mpls ldp auto-config
#Verification
RP/0/0/CPU0:IOS-XR#sh mpls interfaces
Thu Aug 31 20:44:39.357 UTC
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/0 Yes No No Yes
GigabitEthernet0/0/0/1 Yes No No Yes
RP/0/0/CPU0:IOS-XR#sh mpls ldp interface | utility egrep "Int|config"
Thu Aug 31 20:58:51.319 UTC
Interface GigabitEthernet0/0/0/0 (0x40)
Enabled via config: IGP Auto-config
Interface GigabitEthernet0/0/0/1 (0x60)
Enabled via config: IGP Auto-config
RP/0/0/CPU0:IOS-XR#