Configuring LDP Autoconfiguration
LDP autoconfiguration with the mpls ldp autoconfig command enables you to ensure that LDP is configured on all interfaces running the IGP (IS-IS or OSPFv2). Using this command prevents you from having to configure LDP individually on each interface in the IGP. You can prevent LDP from being enabled on selected interfaces by issuing the no mpls ldp autoconfig command on the interface.
When autoconfiguration is enabled for IS-IS, you can specify whether LDP is automatically configured on all IS-IS interfaces in the virtual router or just the interfaces in a particular IS-IS level. When autoconfiguration is enabled for OSPF, you can specify whether LDP is automatically configured on all OSPF interfaces in the virtual router or just the interfaces in a particular OSPF area.
mpls ldp autoconfig
- Use to create LDP on the current interface when you issue the command from Interface Configuration mode.
- When you issue the command from Router Configuration mode for IS-IS, use to create LDP on all interfaces (on all levels) in the current router instance or on all interfaces in the specified level.
- When you issue the command from Router Configuration mode for OSPFv2, use to create LDP on all interfaces (in all areas) in the current router instance or on all interfaces in the specified area.
- By default, LDP autoconfiguration is not configured for IS-IS or OSPFv2.
- Example 1
host1(config)#router ospf 1host1(config-router)#mpls ldp autoconfig area 1Example 2 host1(config)#router isis 1host1(config-router)#mpls ldp autoconfig level 1Example 3 host1(config)#interface atm 2/0host1(config-if)#mpls ldp isis autoconfigUse the no version from Interface Configuration mode to remove LDP from the interface. Use the no version from Router Configuration mode to remove the LDP configuration from the interfaces on which it was configured in that router instance.