Table Of Contents
Information About MPLS LDP Autoconfiguration
How to Configure MPLS LDP Autoconfiguration
Configuring MPLS LDP Autoconfiguration
Selectively Disabling MPLS LDP Autoconfiguration from Some Interfaces
Verifying MPLS LDP Autoconfiguration
Configuration Examples for MPLS LDP Autoconfiguration
MPLS LDP Autoconfiguration
The Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) Autoconfiguration feature enables you to globally configure LDP on every interface associated with a specified Interior Gateway Protocol (IGP) instance.
Feature History for the MPLS LDP Autoconfiguration Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Information About MPLS LDP Autoconfiguration
•
How to Configure MPLS LDP Autoconfiguration
•
Configuration Examples for MPLS LDP Autoconfiguration
Information About MPLS LDP Autoconfiguration
To enable LDP, you must configure it globally, as well as on each interface where it is needed. Configuring LDP on many interfaces can be time consuming.
MPLS LDP Autoconfiguration enables you to globally enable LDP on every interface associated with an IGP instance. Currently, the only IGP that supports this feature is Open Shortest Path First (OSPF). Further, it provides a means to block LDP from being enabled on interfaces that you do not want enabled. The goal of MPLS LDP Autoconfiguration is to make configuration easier, faster, and error free.
You issue the mpls ldp autoconfig command to enable LDP on each interface that belongs to an OSPF area. If you do not want some of the interfaces to have LDP enabled, you can issue the no form of the mpls ldp igp autoconfig command on those interfaces.
How to Configure MPLS LDP Autoconfiguration
This section explains how to configure and verify MPLS LDP Autoconfiguration:
•
Configuring MPLS LDP Autoconfiguration (required)
•
Selectively Disabling MPLS LDP Autoconfiguration from Some Interfaces (optional)
•
Verifying MPLS LDP Autoconfiguration (optional)
Configuring MPLS LDP Autoconfiguration
Prerequisites
•
You must issue the global mpls ip command before issuing the mpls ldp autoconfig command.
Restrictions
This feature is not supported under the following circumstances:
•
If LDP is disabled globally, the mpls ldp autoconfig command fails and generates a console message explaining that LDP must be enabled globally by means of the global mpls ip command first.
•
If the mpls ldp autoconfig command is configured for an IGP instance, you cannot issue the global no mpls ip command. If you want to disable LDP, you must issue the no mpls ldp autoconfig command first.
•
The mpls ldp autoconfig command is supported only with OSPF. Other IGPs are not supported.
•
If LDP is enabled on an interface by the mpls ldp autoconfig command, you cannot use the interface-level no mpls ip command to disable LDP on the interface. LDP can be disabled on the interface by using the no mpls ldp igp autoconfig command.
•
You specify that the default label distribution protocol is LDP for a router or for an interface. Tag Distribution Protocol (TDP) is not supported.
•
MPLS LDP Autoconfiguration is not supported on Traffic Engineering tunnel interfaces.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
mpls ip
4.
mpls label protocol ldp
5.
interface interface
6.
ip address {prefix mask}
7.
router ospf process-id
8.
network ip-address wildcard-mask area area-id
9.
mpls ldp autoconfig [area area-id]
DETAILED STEPS
Selectively Disabling MPLS LDP Autoconfiguration from Some Interfaces
When you issue the mpls ldp autoconfig command, all the interfaces that belong to an OSPF area are enabled for LDP. If you want to remove LDP from some interfaces, you can use the no mpls ldp igp autoconfig command on those interfaces. The following configuration steps show how to disable LDP from some of the interfaces after they were configured with LDP through the mpls ldp autoconfig command.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface interface
4.
no mpls ldp igp autoconfig
DETAILED STEPS
Verifying MPLS LDP Autoconfiguration
Two commands display information about MPLS LDP Autoconfiguration.
The show mpls ldp discovery and show mpls interfaces commands list the method that was used to enable LDP on an interface.
•
If LDP is enabled by the mpls ldp autoconfig command, the output displays:
IP labeling enabled (ldp):IGP config•
If LDP is enabled by the mpls ip command, the output displays:
IP labeling enabled (ldp):Interface config•
If LDP is enabled by the mpls ip command and the mpls ldp autoconfig command, the output displays:
IP labeling enabled (ldp):Interface configIGP configThe following examples show that LDP was enabled on the interface by both the mpls ip and mpls ldp autoconfig commands:
Router# show mpls ldp discovery detail
Local LDP Identifier:11.11.11.11:0Discovery Sources:Interfaces:Serial2/0 (ldp): xmit/recvEnabled: Interface config, IGP config;Hello interval: 5000 ms; Transport IP addr: 11.11.11.11LDP Id: 10.10.10.10:0Src IP addr: 140.0.0.1; Transport IP addr: 10.10.10.10Hold time: 15 sec; Proposed local/peer: 15/15 secRouter# show mpls interfaces S2/0 detail
Interface Serial2/0:IP labeling enabled (ldp):Interface configIGP configLSP Tunnel labeling enabledBGP labeling not enabledMPLS operationalFast Switching Vectors:IP to MPLS Fast Switching VectorMPLS Turbo VectorMTU = 1500Troubleshooting Tips
You can use the debug mpls ldp autoconfig command to display events related to MPLS LDP Autoconfiguration.
Configuration Examples for MPLS LDP Autoconfiguration
The following configuration commands enable LDP for OSPF process 1 area 3. The mpls ldp autoconfig area 3 command and the OSPF network commands enable LDP on interfaces POS0/0, POS0/1, and POS1/1. The no mpls ldp igp autoconfig command on interface po1/0 prevents LDP from being enabled on interface po1/0, even though OSPF is enabled for that interface.
Router# config terminal
Router(config)# interface POS0/0
Router(config-if)# ip address 133.0.0.1
...Router(config)# interface POS0/1
Router(config-if)# ip address 133.0.1.1
...Router(config)# interface POS1/1
Router(config-if)# ip address 133.1.1.1
...Router(config)# interface POS1/0
Router(config-if)# ip address 133.1.0.1
...Router(config)# router ospf 1
Router(config-router)# ...Router(config-router)# network 133.0.0.0 0.0.255.255 area 3
Router(config-router)# network 133.1.0.0 0.0.255.255 area 3
Router(config-router)# mpls ldp autoconfig area 3
Router(config-router)# exit
Router(config)# interface POS1/0
Router(config-if)# no mpls ldp igp autoconfig
Router(config-if)# ...Additional References
The following sections provide references related to MPLS LDP Autoconfiguration.
Related Documents
Related Topic Document TitleMPLS LDP
MPLS Label Distribution Protocol
MPLS LDP-IGP Synchronization
MPLS LDP-IGP Synchronization
MPLS LDP Session Protection
MPLS LDP Session Protection
Standards
MIBs
MIB MIBs Link•
MPLS LDP MIB
To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:
RFCs
Technical Assistance
Command Reference
This section documents new and modified commands. All other commands are documented in Cisco IOS Release 12.3 Command Reference.
New commands
Modified commands
debug mpls ldp autoconfig
To enable the display of events related to Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP), use the debug mpls ldp autoconfig command in privileged EXEC mode. To disable this feature, use the no form of this command.
debug mpls ldp autoconfig [interface interface]
no debug mpls ldp autoconfig [interface interface]
Syntax Description
interface interface
(Optional) Enables the display of autoconfiguration events for the specified interface.
Defaults
None
Command Modes
Privileged EXEC
Command History
Examples
In the following example, the display of events related to MPLS LDP Autoconfiguration are enabled:
Router# debug mpls ldp autoconfig
00:06:06: LDP-AC: OSPF area 1 [flags 0x8, handle 0x1030110]:: Adding record00:06:06: LDP-AC: OSPF area 1 [flags 0x8, handle 0x1030110]:: Receivedenable request for Serial2/000:06:06: LDP-AC: OSPF area 1 [flags 0xA, handle 0x1030110]:: Adding recordto Serial2/000:06:06: LDP-AC: OSPF area 1 [flags 0xA, handle 0x1030110]:: Enqueued LDPenable request on Serial2/000:06:06: LDP-AC: OSPF area 1 [flags 0x8, handle 0x1030110]:: Receivedenable request for Tunnel100:06:06: LDP-AC: OSPF area 1 [flags 0xA, handle 0x1030110]:: Adding recordto Tunnel100:06:06: LDP-AC: OSPF area 1 [flags 0xA, handle 0x1030110]:: Enqueued LDPenable request on Tunnel100:06:06: LDP-AC: Enabling LDP on interface Serial2/000:06:06: LDP-AC: Enabling LDP on interface Tunnel1Related Commands
Command Descriptionmpls ldp autoconfig
Enables LDP on all interfaces that belong to an OSPF area.
show mpls ldp discovery
Displays information about interfaces configured for LDP.
mpls ldp autoconfig
To enable Label Distribution Protocol (LDP) on interfaces for which an Open Shortest Path First (OSPF) instance has been defined, use the mpls ldp autoconfig command in router configuration mode. To disable this feature, use the no form of this command.
mpls ldp autoconfig [area area-id]
no mpls ldp autoconfig [area area-id]
Syntax Description
Defaults
LDP is not enabled on interfaces. If an OSPF area is not specified, LDP is enabled on all interfaces belonging to the OSPF process.
Command Modes
Router configuration
Command History
Usage Guidelines
•
You can specify this command multiple times to enable LDP on different routing areas.
•
If LDP is disabled globally, the mpls ldp autoconfig command fails. LDP must be enabled globally by means of the global mpls ip command first.
•
If the mpls ldp autoconfig command is configured, you cannot issue the global no mpls ip command. If you want to disable LDP, you must issue the no mpls ldp autoconfig command first.
•
The mpls ldp autoconfig command is supported only with OSPF. Other IGPs are not supported.
•
If LDP is enabled on an interface by the mpls ldp autoconfig command, you cannot use the interface-level no mpls ip command to disable LDP on the interface. LDP can be disabled on the interface by using the no mpls ldp igp autoconfig command.
Examples
In the following example, MPLS LDP Autoconfiguration is enabled for OSPF area 5:
Router(config-router)# mpls ldp autoconfig area 5
Related Commands
mpls ldp igp autoconfig
To disable LDP on an interface that belongs to an OSPF area, use the no mpls ldp igp autoconfig command in interface configuration mode. (See the Usage Guidelines for more information.)
mpls ldp igp autoconfig
no mpls ldp igp autoconfig
Syntax Description
This command has no arguments or keywords.
Defaults
This command works with the mpls ldp autoconfig command, which enables LDP on all interfaces that belong to an OSPF area. So, by default, all interfaces are enabled for LDP.
Command Modes
Interface configuration
Command History
Usage Guidelines
This command works with the mpls ldp autoconfig command, which enables LDP on all interfaces that belong to an OSPF area. To disable LDP on selected interfaces, use the no mpls ldp igp autoconfig command.
Examples
In the following example, LDP is disabled on interface POS1/0:
Router(config)# interface pos1/0
Router(config-if)# no mpls ldp igp autoconfig
Related Commands
show mpls interfaces
To display information about one or more or all interfaces that are configured for label switching, use the show mpls interfaces command in privileged EXEC mode.
show mpls interfaces [vrf vpn-name] [interface] [detail]
show mpls interfaces [all]
Syntax Description
Defaults
If no optional keyword or argument is specified in this command, summary information is displayed for each interface that has been configured for label switching in the default routing domain.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
This command shows MPLS information about the specified interface, or about all the interfaces for which MPLS has been configured.
Examples
The following shows sample output generated by the show mpls interfaces command:
Router# show mpls interfacesInterface IP Tunnel OperationalEthernet1/1/1 Yes (tdp) No NoEthernet1/1/2 Yes (tdp) Yes NoEthernet1/1/3 Yes (tdp) Yes YesPOS2/0/0 Yes (tdp) No NoATM0/0.1 Yes (tdp) No No (ATM labels)ATM3/0.1 Yes (ldp) No Yes (ATM labels)ATM0/0.2 Yes (tdp) No Yes![]()
Note
If an interface uses LC-ATM procedures, the associated line in the display is flagged with the notation (ATM labels).
Table 1 describes the significant fields shown in the display.
The following is sample output from the show mpls interfaces command when you specify the detail keyword. The output shows that interface serial 2/0 has LDP enabled by both the mpls ip command and the mpls ldp autoconfig command.
Router# show mpls interfaces S2/0 detail
Interface Serial2/0:IP labeling enabled (ldp):Interface configIGP configLSP Tunnel labeling enabledBGP labeling not enabledMPLS operationalFast Switching Vectors:IP to MPLS Fast Switching VectorMPLS Turbo VectorMTU = 1500•
If LDP is enabled by the mpls ldp autoconfig command, the output displays:
IP labeling enabled (ldp):IGP config•
If LDP is enabled by the mpls ip command, the output displays:
IP labeling enabled (ldp):Interface config•
If LDP is enabled by the mpls ip command and the mpls ldp autoconfig command, the output displays:
IP labeling enabled (ldp):Interface configIGP configRelated Commands
Command Descriptiondebug mpls ldp autoconfig
Displays events related to MPLS LDP Autoconfiguration.
show mpls ldp discovery
Displays information about interfaces enabled for LDP.
show mpls ldp discovery
To display the status of the label distribution protocol (LDP) discovery process, use the show mpls ldp discovery command in privileged EXEC mode. This command generates a list of interfaces over which the LDP discovery process is running.
show mpls ldp discovery [all | detail | vrf vpn-name]
Syntax Description
Defaults
This command displays neighbor discovery information for the default routing domain if an optional argument is not specified.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
This command displays neighbor discovery information for LDP or Tag Distribution Protocol (TDP).
Examples
The following shows sample output from the show mpls ldp discovery command:
Router# show mpls ldp discoveryLocal LDP Identifier:8.1.1.1:0Discovery Sources:Interfaces:Ethernet1/1/3 (ldp): xmit/recvLDP Id: 177.73.0.77:0LDP Id: 144.0.0.44:0LDP Id: 155.0.0.55:0ATM3/0.1 (ldp): xmit/recvLDP Id: 203.0.7.7:2ATM0/0.2 (tdp): xmit/recvTDP Id: 119.1.0.1:1Targeted Hellos:8.1.1.1 -> 133.0.0.33 (ldp): active, xmit/recvLDP Id: 133.0.0.33:08.1.1.1 -> 168.7.0.16 (tdp): passive, xmit/recvTDP Id: 133.0.0.33:0The following shows sample output from the show mpls ldp discovery all command, which shows the interfaces engaged in LDP discovery activity for all the VPN routing/forwarding instances, including those in the default routing domain. In this example, note that the same neighbor LDP ID (14.14.14.14) appears in all the listed VRF interfaces, highlighting the fact that the same IP address can coexist in different VPN routing/forwarding instances.
Router# show mpls ldp discovery allLocal LDP Identifier:12.12.12.12:0Discovery Sources:Interfaces:ATM1/1/0.1 (tdp):xmit/recvTDP Id:11.11.11.11:0VRF vpn1:Local LDP Identifier:30.7.0.2:0Discovery Sources:Interfaces:ATM3/0/0.1 (ldp):xmit/recvLDP Id:14.14.14.14:0VRF vpn2:Local LDP Identifier:30.13.0.2:0Discovery Sources:Interfaces:ATM3/0/0.2 (ldp):xmit/recvLDP Id:14.14.14.14:0VRF vpn3:Local LDP Identifier:30.15.0.2:0Discovery Sources:Interfaces:ATM3/0/0.3 (ldp):xmit/recvLDP Id:14.14.14.14:0VRF vpn4:Local LDP Identifier:30.17.0.2:0Discovery Sources:Interfaces:ATM3/0/0.4 (ldp):xmit/recvLDP Id:14.14.14.14:0Table 2 describes the significant fields shown in the display.
The following shows sample output from the show mpls ldp discovery detail command, which displays the information related to LDP Autoconfiguration:
Router# show mpls ldp discovery detail
Local LDP Identifier:11.11.11.11:0Discovery Sources:Interfaces:Serial2/0 (ldp): xmit/recvEnabled: Interface config, IGP config;Hello interval: 5000 ms; Transport IP addr: 11.11.11.11LDP Id: 10.10.10.10:0Src IP addr: 140.0.0.1; Transport IP addr: 10.10.10.10Hold time: 15 sec; Proposed local/peer: 15/15 sec•
If LDP is enabled by the mpls ldp autoconfig command, the output displays:
Enabled: IGP config;•
If LDP is enabled by the mpls ip command, the output displays:
Enabled: Interface config;•
If LDP is enabled by the mpls ip command and the mpls ldp autoconfig command, the output displays:
Enabled: Interface config; IGP config;Related Commands
![]()
Copyright © 2004, 2005 Cisco Systems, Inc. All rights reserved.