
enable
In Configuration command mode: Globally enables/disables LDP without removing the LDP configuration.
In Interface LDP Configuration command mode: Enables/disables LDP on an interface without removing the LDP configuration.
Syntax: [no] enable
Description: In Configuration command mode:
If you have LDP configured on one or more interfaces, use the no enable command to globally disable all LDP entities. The state of all LDP entities changes to "Administratively Down", but the LDP configuration is not removed.
Use the enable command to globally re-enable all LDP entities. The Administrative status of all LDP entities is restored to the value each entity had before the no enable command was used.
In Interface LDP configuration command mode:
If you have LDP configured on an interface or composite link, use the no enable command to disable LDP on that interface or composite link without removing the configuration.
Use the enable command to re-enable LDP on a specific POS or composite link interface.
Factory Default: Enabled.
Command Mode: Configuration and interface LDP configuration.
Example 1: The following example demonstrates the no enable and enable command in Configuration command mode:
- The show mpls ldp command shows that LDP is enabled.
- The mpls ldp command changes the mode to LDP configuration command mode.
- The no enable command globally disables all LDP entities, but does not remove the LDP configurations.
- The show mpls ldp command shows that LDP is not enabled.
- The show mpls ldp entity brief command shows that LDP is disabled (Admin-Down) at the entity level, and that the configurations for each entity have not been removed.
- The enable command globally re-enables all LDP entities.
- The show mpls ldp command shows that LDP is globally re-enabled.
- The show mpls ldp entity command shows that LDP is re-enabled at the entity level:
router#show mpls ldp
LDP status is administratively up.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#mpls ldp
router(config-ldp)#no enable
router(config-ldp)#end
router#show mpls ldp
LDP status is administratively down.
router#show mpls ldp entity brief
Interface/Egress LDP Id Status Neighbor
---------------- --------------------- --------- --------
POS 1/1/3 10.10.10.10 0 Admin-Down 0
TP 20.20.20.20 10.10.10.10 0 Admin-Down 0
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#mpls ldp
router(config-ldp)#enable
router(config-ldp)#end
router#show mpls ldp
LDP status is administratively up.
router#show mpls ldp entity brief
Interface/Egress LDP Id Status Neighbor
---------------- --------------------- --------- --------
POS 1/1/3 10.10.10.10 0 up 0
TP 20.20.20.20 10.10.10.10 0 up 1
Example 2: The following example demonstrates the no enable command in Interface Configuration command mode:
- The interface pos command specifies POS 1/1/3 and changes the command mode to Interface configuration.
- The mpls ldp command changes the command mode to interface LDP configuration.
- The no enable command disables LDP on the specified interface, but does not remove the LDP configuration from the interface.
- The show mpls ldp entity interface pos 1/1/3 command shows that LDP is Admin-Down on the interface, and that the LDP configuration has not been removed:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#interface pos 1/1/1
router(config-if)#mpls ldp
router(config-if-ldp)#no enable
router(config-if-ldp)#end
router#show mpls ldp entity interface pos 1/1/3
POS 1/1/3 LDP is Admin-Down
LDP Id: ipAddr 10.10.10.10, label space id 0
Protocol Version: 1
Loop Detection: enabled Vector Limit: 255
Hold Time: session keep-alive is 40, hello is 15
Session Init Threshold: 8
Neighbor Count: 0, Attempted Sessions: 1
Notifications:
0 reject/no hello
0 rejected advertisements
0 session max PDU length.
.
.
.
Related Commands: mpls ldp
show mpls ldp
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%20Commands5.html
Last Updated: 12/19/04 at 15:00:33