
mpls ldp
In Configuration command mode: Enables LDP/deletes all LDP entities. Changes the command mode to LDP configuration.
In Interface LDP configuration command mode: Creates/destroys an LDP entity associated with the interface. Changes the command mode to LDP interface configuration mode.
Syntax: [no] mpls ldp [label-space-id num]
label-space-id num
Assigns a unique label-space-id to parallel links between two connected routers. This option is only valid in interface mode. Valid Values: 0 - 65536. Default Value: 0 (no parallel link).
Description: LDP must be globally enabled before it can be enabled on individual interfaces, composite links, or tunnels. Enabling LDP on an interface or composite link creates an LDP entity associated with that interface or composite link.
LDP traffic can only be forwarded over interfaces on which an active LDP session has been established. The ability to form multiple LDP sessions with the same physical peer LSR across different interfaces requires the configuration of a unique interface label-space-id for each parallel link. Assigning a unique LDP Label Space ID to each interface ensures that all LDP adjacencies will be able to establish an LDP session.
NOTE The commands to globally enable LDP must appear in the configuration file before the commands to enable LDP on individual interfaces, composite links, and tunnels.
In Configuration command mode:
Use the mpls ldp command to globally enable LDP on the Avici router and to change the command mode to LDP configuration.
Use the no mpls ldp command to disable LDP on the Avici router. All LDP entities are destroyed.
In Interface configuration command mode:
Use the mpls ldp command to create an LDP entity with default values on the interface (if no entity already exists), and change the command mode to LDP configuration.
NOTE If LDP has not been globally enabled, the following error message is displayed:
LDP is disabled on TSR, cannot enable it on interface
Use the mpls ldp label-space-id command to specify a unique label-space-id per parallel LDP enabled interface between two LSRs.
Use the no mpls ldp command in Interface configuration command mode to delete the LDP entity associated with the interface.
Factory Default: Not configured.
Command Mode: Configuration and interface LDP configuration.
Example 1: The following example demonstrates the mpls ldp command in Configuration command mode:
- The first show mpls ldp command shows that LDP is not enabled on the Avici router.
- The mpls ldp command globally enables LDP on the Avici router.
- The second show mpls ldp command shows the new setting:
router#show mpls ldp
LDP status is not configured.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#mpls ldp
router(config-ldp)#end
router# show mpls ldp
% LDP status is administratively up.
router#
Example 2: The following example demonstrates the mpls ldp command in Interface command mode:
- The interface pos 1/1/3 command identifies a specific interface and changes the command mode to Interface Configuration.
- The mpls ldp command enables LDP on the specified interface, creates an LDP entity associated with the interface, and changes the command mode to Interface LDP configuration.
- The show mpls ldp entity command shows the new LDP entity:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface pos 1/1/3
router(config-if)#mpls ldp
router(config-if-ldp)#end
router#show mpls ldp entity
POS 1/1/3 LDP is up
LDP Id: ipAddr 10.10.10.10, label space id 0
Protocol Version: 1
Loop Detection: enabled Vector Limit: 255
.
.
.
Example 3: The following example assigns unique label-space-ids to two parallel interfaces connecting the same LSRs:
- The interface pos 1/1/3 and interface pos 1/1/4 commands identify specific interfaces and change the command mode to Interface Configuration.
- The mpls ldp label-space-id command enables LDP on the specified interface, creates an LDP entity associated with the interface, assigns a label-space-id to each interface, and changes the command mode to Interface LDP configuration.
- The show mpls ldp entity command shows the new LDP entities:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface pos 1/1/3
router(config-if)#mpls ldp label-space-id 1
router(config-if-ldp)#end
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface pos 1/1/4
router(config-if)#mpls ldp label-space-id 2
router(config-if-ldp)#end
router#show mpls ldp entity
POS 1/1/3 LDP is up
LDP Id: ipAddr 10.10.10.10, label space id 1
Protocol Version: 1
Loop Detection: enabled Vector Limit: 255
.
.
.
POS 1/1/4 LDP is up
LDP Id: ipAddr 10.10.10.10, label space id 2
Protocol Version: 1
Loop Detection: enabled Vector Limit: 255
Related Commands: ecmp-max-paths
hello-hold-timer
keepalive-timeout
show mpls ldp entity
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: LDP%20Commands.fm
HTML File Name: LDP%20Commands10.html
Last Updated: 12/19/04 at 15:00:33