Table Of Contents
NSF/SSO - MPLS LDP and LDP Graceful Restart
Prerequisites for NSF/SSO - MPLS LDP and LDP Graceful Restart
Restrictions for NSF/SSO - MPLS LDP and LDP Graceful Restart
Information About NSF/SSO - MPLS LDP and LDP Graceful Restart
How NSF/SSO - MPLS LDP and LDP Graceful Restart Works
What Happens During an LDP Restart and an LDP Session Reset
How a Route Processor Advertises That It Supports NSF/SSO - MPLS LDP and LDP Graceful Restart
What Happens if a Route Processor Does Not Have LDP Graceful Restart
How to Configure and Use NSF/SSO - MPLS LDP and LDP Graceful Restart
Configuring MPLS LDP Graceful Restart
Configuration Examples for LDP NSF
Configuring NSF/SSO - MPLS LDP and LDP Graceful Restart: Example
debug mpls ldp graceful-restart
mpls label protocol (global configuration)
mpls ldp graceful-restart timers forwarding-holding
mpls ldp graceful-restart timers max-recovery
mpls ldp graceful-restart timers neighbor-liveness
show mpls ldp graceful-restart
Feature Information for NSF/SSO - MPLS LDP and LDP Graceful Restart
NSF/SSO - MPLS LDP and LDP Graceful Restart
First Published: August 16, 2004Last Updated: August 21, 2007Cisco Nonstop Forwarding with Stateful Switchover provides continuous packet forwarding, even during a network processor hardware or software failure. In a redundant system, the secondary processor recovers control plane service during a critical failure in the primary processor. SSO synchronizes the network state information between the primary and the secondary processor.
Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) uses SSO, NSF, and graceful restart to allow a Route Processor to recover from disruption in control plane service (specifically, the LDP component) without losing its MPLS forwarding state. LDP NSF works with LDP sessions between directly connected peers and with peers that are not directly connected (targeted sessions).
Note
In this document, the NSF/SSO - MPLS LDP and LDP Graceful Restart feature is called LDP NSF for brevity.
Finding Feature Information in This Module
Your Cisco IOS software release may not support all of the features documented in this module. To reach links to specific feature documentation in this module and to see a list of the releases in which each feature is supported, use the "Feature Information for NSF/SSO - MPLS LDP and LDP Graceful Restart" section.
Finding Support Information for Platforms and Cisco IOS and Catalyst OS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Contents
•
Prerequisites for NSF/SSO - MPLS LDP and LDP Graceful Restart
•
Restrictions for NSF/SSO - MPLS LDP and LDP Graceful Restart
•
Information About NSF/SSO - MPLS LDP and LDP Graceful Restart
•
How to Configure and Use NSF/SSO - MPLS LDP and LDP Graceful Restart
•
Configuration Examples for LDP NSF
•
Feature Information for NSF/SSO - MPLS LDP and LDP Graceful Restart
Prerequisites for NSF/SSO - MPLS LDP and LDP Graceful Restart
For information about supported hardware, see the following documents:
•
For Cisco IOS Release 12.2(25)S, see the Cross-Platform Release Notes for Cisco IOS
Release 12.2S.•
For Cisco IOS Release 12.2(28)SB, see the Cross-Platform Release Notes for Cisco IOS
Release 12.2SB.•
For Cisco IOS Release 12.2(33)SRA, see the Release Notes for Cisco IOS Release 12.2SR for the Cisco 7600 Series Routers
•
For Cisco IOS Release 12.2(33)SXH, see the following documents:
–
Release Notes for Cisco IOS Release 12.2SX on the Catalyst 6500 Series MSFC
MPLS high availability (HA) requires that neighbor networking devices be NSF-aware.
To perform LDP NSF, Route Processors must be configured for SSO. See the Stateful Switchover feature module for more information:
You must enable nonstop forwarding on the routing protocols running between the provider (P) routers, provider edge (PE) routers, and customer edge (CE) routers. The routing protocols are:
•
Border Gateway Protocol (BGP)
•
Open Shortest Path First (OSPF)
•
Intermediate System-to-Intermediate System (IS-IS)
See the Cisco Nonstop Forwarding feature module for more information.
Restrictions for NSF/SSO - MPLS LDP and LDP Graceful Restart
LDP NSF has the following restrictions:
•
Tag Distribution Protocol (TDP) sessions are not supported. Only LDP sessions are supported.
•
LDP NSF cannot be configured on label-controlled ATM (LC-ATM) interfaces.
Information About NSF/SSO - MPLS LDP and LDP Graceful Restart
To configure LDP NSF, you need to understand the following concepts:
•
How NSF/SSO - MPLS LDP and LDP Graceful Restart Works
•
How a Route Processor Advertises That It Supports NSF/SSO - MPLS LDP and LDP Graceful Restart
How NSF/SSO - MPLS LDP and LDP Graceful Restart Works
LDP NSF allows a Route Processor to recover from disruption in service without losing its MPLS forwarding state. LDP NSF works under the following circumstances:
•
LDP restart—An LDP Restart occurs after an SSO event interrupts LDP communication with all LDP neighbors. If the Route Processors are configured with LDP NSF, the backup Route Processor retains the MPLS forwarding state and reestablishes communication with the LDP neighbors. Then the Route Processor ensures that the MPLS forwarding state is recovered.
•
LDP session reset—An LDP session reset occurs after an individual LDP session has been interrupted, but the interruption is not due to an SSO event. The LDP session might have been interrupted due to a TCP or UDP communication problem. If the Route Processor is configured with MPLS LDP NSF support and graceful restart, the Route Processor associates a new session with the previously interrupted session. The LDP bindings and MPLS forwarding states are recovered when the new session is established.
If an SSO event occurs on an LSR, that LSR performs an LDP restart. The adjacent LSRs perform an LDP session reset.
See the following section for more information about LDP restart and reset.
What Happens During an LDP Restart and an LDP Session Reset
In the topology shown in Figure 1, the following elements have been configured:
•
LDP sessions are established between Router 1 and Router 2, as well as between Router 2 and Router 3.
•
A label switched path (LSP) has been established between Router 1 and Router 3.
•
The routers have been configured with LDP NSF.
Figure 1 Example of a Network Using LDP Graceful Restart
The following process shows how LDP recovers when one of the routers fails:
1.
When a Route Processor fails on Router 2, communications between the routers is interrupted.
2.
Router 1 and Router 3 mark all the label bindings from Router 2 as stale, but they continue to use the bindings for MPLS forwarding.
3.
Router 1 and Router 3 attempt to reestablish an LDP session with Router 2.
4.
Router 2 restarts and marks all of its forwarding entries as stale. If you issue a show mpls ldp graceful-restart command, the command output includes the following line:
LDP is restarting gracefully.5.
Router 1 and Router 3 reestablish LDP sessions with Router 2, but they keep their stale label bindings. If you issue a show mpls ldp neighbor command with the graceful-restart keyword, the command output displays the recovering LDP sessions.
6.
All three routers readvertise their label binding information. If a label has been relearned after the session has been established, the stale flags are removed. The show mpls forwarding-table command displays the information in the MPLS forwarding table, including the local label, outgoing label or VC, prefix, label-switched bytes, outgoing interface, and next hop.
You can set various timers to limit how long the routers wait for an LDP session to be reestablished before restarting the router. See the following commands for more information:
•
mpls ldp graceful-restart timers forwarding-holding
•
mpls ldp graceful-restart timers max-recovery
•
mpls ldp graceful-restart timers neighbor-liveness
How a Route Processor Advertises That It Supports NSF/SSO - MPLS LDP and LDP Graceful Restart
A Route Processor that is configured to perform LDP NSF includes the Fault Tolerant (FT) Type Length Value (TLV) in the LDP initialization message. The Route Processor sends the LDP initialization message to a neighbor to establish an LDP session.
The FT session TLV includes the following information:
•
The Learn from Network (L) flag is set to 1, which indicates that the Route Processor is configured to perform LDP Graceful Restart.
•
The Reconnect Timeout field shows the time (in milliseconds) that the neighbor should wait for a reconnection if the LDP session is lost. This field is set to 120 seconds and cannot be configured.
•
The Recovery Time field shows the time (in milliseconds) that the neighbor should retain the MPLS forwarding state during a recovery. If a neighbor did not preserve the MPLS forwarding state before the restart of the control plane, the neighbor sets the recovery time to 0.
What Happens if a Route Processor Does Not Have LDP Graceful Restart
If a Route Processor is not configured for MPLS LDP Graceful Restart and it attempts to establish an LDP session with a Route Processor that is configured with LDP Graceful Restart, the following events occur:
1.
The Route Processor that is configured with MPLS LDP Graceful Restart sends an initialization message that includes the FT session TLV value to the Route Processor that is not configured with MPLS LDP Graceful Restart.
2.
The Route Processor that is not configured for MPLS LDP Graceful Restart receives the LDP initialization message and discards the FT session TLV.
3.
The two Route Processors create a normal LDP session but do not have the ability to perform MPLS LDP Graceful Restart.
You must enable all Route Processors with MPLS LDP Graceful Restart for an LDP session to be preserved during an interruption in service.
Checkpointing
Checkpointing is a function that copies state information from the active Route Processor to the backup Route Processor, thereby ensuring that the backup Route Processor has the latest information. If the active Route Processor fails, the backup Route Processor can take over.
For the LDP NSF feature, the checkpointing function copies the active Route Processor's LDP local label bindings to the backup Route Processor. The active Route Processor sends updates to the backup Route Processor when local label bindings are modified as a result of routing changes.
Note
Local label bindings that are allocated by BGP and null local label bindings are not included in the checkpointing operation.
The checkpointing function is enabled by default.
To display checkpointing data, issue the show mpls ldp graceful-restart command on the active Route Processor.
To check that the active and backup Route Processors have identical copies of the local label bindings, you can issue the show mpls ldp bindings command with the detail keyword on the active and backup Route Processors. This command displays the local label bindings that have been saved. The active Route Processor and the backup Route Processor should have the same local label bindings.
Troubleshooting Tips
You can use the debug mpls ldp graceful-restart command to enable the display of MPLS LDP checkpoint events and errors.
How to Configure and Use NSF/SSO - MPLS LDP and LDP Graceful Restart
•
Configuring MPLS LDP Graceful Restart (required)
•
Verifying the Configuration (optional)
Configuring MPLS LDP Graceful Restart
MPLS LDP Graceful Restart (GR) is enabled globally. When you enable LDP GR, it has no effect on existing LDP sessions. LDP GR is enabled for new sessions that are established after the feature has been globally enabled.
Prerequisites
•
Route Processors must be configured for SSO. See the Stateful Switchover feature module for more information:
•
You must enable Nonstop Forwarding on the routing protocols running between the P, PE, routers, and CE routers. See the Cisco Nonstop Forwarding feature module for more information.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
ip cef [distributed]
4.
mpls ldp graceful-restart
5.
interface type slot/port
6.
mpls ip
7.
mpls label protocol {ldp | tdp | both}
DETAILED STEPS
Verifying the Configuration
Use the following procedure to verify that MPLS LDP Graceful Restart has been configured correctly.
SUMMARY STEPS
1.
show mpls ldp graceful-restart
2.
show mpls ldp neighbor graceful restart
3.
show mpls ldp checkpoint
DETAILED STEPS
Step 1
show mpls ldp graceful-restart
The command output displays Graceful Restart sessions and session parameters:
Router# show mpls ldp graceful-restartLDP Graceful Restart is enabledNeighbor Liveness Timer: 5 secondsMax Recovery Time: 200 secondsDown Neighbor Database (0 records):Graceful Restart-enabled Sessions:VRF default:Peer LDP Ident: 10.18.18.18:0, State: estabPeer LDP Ident: 10.17.17.17:0, State: estabStep 2
show mpls ldp neighbor graceful restart
The command output displays the Graceful Restart information for LDP sessions:
Router# show mpls ldp neighbor graceful-restartPeer LDP Ident: 10.20.20.20:0; Local LDP Ident 10.17.17.17:0TCP connection: 10.20.20.20.16510 - 10.17.17.17.646State: Oper; Msgs sent/rcvd: 8/18; DownstreamUp time: 00:04:39Graceful Restart enabled; Peer reconnect time (msecs): 120000Peer LDP Ident: 10.19.19.19:0; Local LDP Ident 10.17.17.17:0TCP connection: 10.19.19.19.11007 - 10.17.17.17.646State: Oper; Msgs sent/rcvd: 8/38; DownstreamUp time: 00:04:30Graceful Restart enabled; Peer reconnect time (msecs): 120000Step 3
show mpls ldp checkpoint
The command output displays the summary of the checkpoint information:
Router# show mpls ldp checkpointCheckpoint status: dynamic-syncCheckpoint resend timer: not running5 local bindings in add-skipped9 local bindings in added1 of 15+ local bindings in noneConfiguration Examples for LDP NSF
This section contains the following examples:
•
Configuring NSF/SSO - MPLS LDP and LDP Graceful Restart: Example
Configuring NSF/SSO - MPLS LDP and LDP Graceful Restart: Example
The following configuration example shows the LDP NSF feature configured on three routers. (See Figure 2.) In this configuration example, Router 1 creates an LDP session with Router 2. Router 1 also creates a targeted session with Router 3 through a TE tunnel using Router 2.
Figure 2 MPLS LDP: NSF/SSO Support and Graceful Restart Configuration Example
Router 1—Cisco 7500 Series
boot system slot0:rsp-pv-mzhw-module slot 2 image slot0:rsp-pv-mzhw-module slot 3 image slot0:rsp-pv-mzredundancymode ssoip subnet-zeroip cefmpls label range 16 10000 static 10001 1048575mpls label protocol ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartmpls traffic-eng tunnelsno mpls traffic-eng auto-bw timers frequency 0mpls ldp router-id Loopback0 force!interface Loopback0ip address 172.20.20.20 255.255.255.255no ip directed-broadcastno ip mroute-cache!interface Tunnel1ip unnumbered Loopback0no ip directed-broadcastmpls label protocol ldpmpls iptunnel destination 10.19.19.19tunnel mode mpls traffic-engtunnel mpls traffic-eng autoroute announcetunnel mpls traffic-eng priority 7 7tunnel mpls traffic-eng bandwidth 500tunnel mpls traffic-eng path-option 1 dynamic!interface ATM5/1/0no ip addressno ip directed-broadcastatm clock INTERNALno atm enable-ilmi-trapno atm ilmi-keepalive!interface ATM5/1/0.5 point-to-pointip address 172.17.0.2 255.255.0.0no ip directed-broadcastno atm enable-ilmi-trappvc 6/100encapsulation aal5snapmpls label protocol ldpmpls traffic-eng tunnelsmpls ipip rsvp bandwidth 1000!router ospf 100log-adjacency-changesredistribute connectednsf enforce globalnetwork 172.17.0.0 0.255.255.255 area 100network 172.20.20.20 0.0.0.0 area 100mpls traffic-eng router-id Loopback0mpls traffic-eng area 100Router 2—Cisco 7500 Series
boot system slot0:rsp-pv-mzhw-module slot 2 image slot0:rsp-pv-mzhw-module slot 3 image slot0:rsp-pv-mzredundancymode sso!ip cefno ip domain-lookupmpls label range 17 10000 static 10001 1048575mpls label protocol ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartmpls traffic-eng tunnelsno mpls traffic-eng auto-bw timers frequency 0no mpls advertise-labelsmpls ldp router-id Loopback0 force!interface Loopback0ip address 172.18.17.17 255.255.255.255no ip directed-broadcast!interface ATM4/0/0no ip addressno ip directed-broadcastno ip mroute-cacheatm clock INTERNALatm sonet stm-1no atm enable-ilmi-trapno atm ilmi-keepalive!interface ATM4/0/0.5 point-to-pointip address 172.17.0.1 255.255.0.0no ip directed-broadcastno atm enable-ilmi-trappvc 6/100encapsulation aal5snapmpls label protocol ldpmpls traffic-eng tunnelsmpls ipip rsvp bandwidth 1000!interface POS5/1/0ip address 10.0.0.1 255.0.0.0no ip directed-broadcastencapsulation pppmpls label protocol ldpmpls traffic-eng tunnelsmpls ipno peer neighbor-routeclock source internalip rsvp bandwidth 1000!router ospf 100log-adjacency-changesnsf enforce globalredistribute connectednetwork 10.0.0.0 0.255.255.255 area 100network 172.17.0.0 0.255.255.255 area 100network 172.18.17.17 0.0.0.0 area 100mpls traffic-eng router-id Loopback0mpls traffic-eng area 100!ip classlessRouter 3—Cisco 7500 Series
boot system slot0:rsp-pv-mzhw-module slot 2 image slot0:rsp-pv-mzhw-module slot 3 image slot0:rsp-pv-mzredundancymode sso!ip subnet-zeroip cef!no ip fingerno ip domain-lookupmpls label protocol ldpmpls ldp neighbor 10.11.11.11 targeted ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartmpls traffic-eng tunnelsno mpls traffic-eng auto-bw timers frequency 0mpls ldp discovery directed-hello interval 12mpls ldp discovery directed-hello holdtime 130mpls ldp discovery directed-hello acceptmpls ldp router-id Loopback0 force!interface Loopback0ip address 172.19.19.19 255.255.255.255no ip directed-broadcast!interface POS1/0ip address 10.0.0.2 255.0.0.0no ip directed-broadcastencapsulation pppmpls label protocol ldpmpls traffic-eng tunnelsmpls ipno peer neighbor-routeclock source internalip rsvp bandwidth 1000!router ospf 100log-adjacency-changesnsf enforce globalredistribute connectednetwork 10.0.0.0 0.255.255.255 area 100network 172.19.19.19 0.0.0.0 area 100mpls traffic-eng router-id Loopback0mpls traffic-eng area 100!ip classlessRouter 1—Cisco 10000 Series
boot system flash:c10k2-p11-mzredundancymode ssoip subnet-zeroip cefmpls label protocol ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartno mpls traffic-eng auto-bw timers frequency 0mpls ldp router-id Loopback0 force!interface Loopback0ip address 172.20.20.20 255.255.255.255no ip directed-broadcastno ip mroute-cache!interface ATM5/1/0no ip addressno ip directed-broadcastatm clock INTERNALno atm enable-ilmi-trapno atm ilmi-keepalive!interface ATM5/1/0.5 point-to-pointip address 172.18.0.2 255.255.0.0no ip directed-broadcastno atm enable-ilmi-trappvc 6/100encapsulation aal5snapmpls label protocol ldpmpls ip!router ospf 100log-adjacency-changesredistribute connectednsf enforce globalnetwork 172.18.0.0 0.255.255.255 area 100network 172.20.20.20 0.0.0.0 area 100Router 2—Cisco 10000 Series
boot system flash:c10k2-p11-mzredundancymode sso!ip cefno ip domain-lookupmpls label protocol ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartno mpls traffic-eng auto-bw timers frequency 0mpls ldp router-id Loopback0 force!interface Loopback0ip address 172.17.17.17 255.255.255.255no ip directed-broadcast!interface ATM4/0/0no ip addressno ip directed-broadcastno ip mroute-cacheatm clock INTERNALatm sonet stm-1no atm enable-ilmi-trapno atm ilmi-keepalive!interface ATM4/0/0.5 point-to-pointip address 172.18.0.1 255.255.0.0no ip directed-broadcastno atm enable-ilmi-trappvc 6/100encapsulation aal5snapmpls label protocol ldpmpls ip!interface POS5/1/0ip address 10.0.0.1 255.0.0.0no ip directed-broadcastencapsulation pppmpls label protocol ldpmpls ipno peer neighbor-routeclock source internal!router ospf 100log-adjacency-changesnsf enforce globalredistribute connectednetwork 10.0.0.0 0.255.255.255 area 100network 172.18.0.0 0.255.255.255 area 100network 172.17.17.17 0.0.0.0 area 100mpls traffic-eng router-id Loopback0!ip classlessRouter 3—Cisco 10000 Series
boot system flash:c10k2-p11-mzredundancymode sso!ip subnet-zeroip cef!no ip fingerno ip domain-lookupmpls label protocol ldpmpls ldp logging neighbor-changesmpls ldp graceful-restartno mpls traffic-eng auto-bw timers frequency 0mpls ldp router-id Loopback0 force!interface Loopback0ip address 172.19.19.19 255.255.255.255no ip directed-broadcast!interface POS1/0ip address 10.0.0.2 255.0.0.0no ip directed-broadcastencapsulation pppmpls label protocol ldpmpls ipno peer neighbor-routeclock source internal!router ospf 100log-adjacency-changesnsf enforce globalredistribute connectednetwork 10.0.0.0 0.255.255.255 area 100network 172.19.19.19 0.0.0.0 area 100mpls traffic-eng router-id Loopback0!ip classlessAdditional References
The following sections provide references related to the NSF/SSO - MPLS LDP and LDP Graceful Restart feature.
Related Documents
Related Topic Document TitleStateful switchover
MPLS Label Distribution Protocol
Cisco nonstop forwarding
Standards
MIBs
RFCs
Technical Assistance
Command Reference
This section documents only commands that are new or modified.
•
debug mpls ldp graceful-restart
•
mpls label protocol (global configuration)
•
mpls ldp graceful-restart timers forwarding-holding
•
mpls ldp graceful-restart timers max-recovery
•
mpls ldp graceful-restart timers neighbor-liveness
•
show mpls ldp graceful-restart
debug mpls ldp graceful-restart
To display debugging information for Multiprotocol (MPLS) Label Distribution Protocol (LDP) Stateful Switchover (SSO) Nonstop Forwarding (NSF) Support and Graceful Restart, use the debug mpls ldp graceful-restart command in privileged EXEC mode. To disable the display of this debugging information, use the no form of this command.
debug mpls ldp graceful-restart
no debug mpls ldp graceful-restart
Syntax Description
This command has no arguments or keywords.
Defaults
The display of debugging information is not enabled.
Command Modes
Privileged EXEC
Command History
Usage Guidelines
This command shows events and errors related to LDP Graceful Restart.
Examples
The following example shows sample output from the debug mpls ldp graceful-restart command. The output shows that a session was lost. The status message show the events that happen during recovery of the bindings.
Router# debug mpls ldp graceful-restartLDP GR: GR session 10.110.0.10:0:: lostLDP GR: down nbr 10.110.0.10:0:: created [1 total]LDP GR: GR session 10.110.0.10:0:: bindings retainedLDP GR: down nbr 10.110.0.10:0:: added all 7 addresses [7 total]LDP GR: down nbr 10.110.0.10:0:: state change (None -> Reconnect-Wait)LDP GR: down nbr 10.110.0.10:0:: reconnect timer started [120000 msecs]LDP GR: down nbr 10.110.0.10:0:: added to bindings task queue [1 entries]LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: Tagcon querying for up to 12 bindings update tasksLDP GR: down nbr 10.110.0.10:0:: requesting bindings MARK for {10.110.0.10:0, 1}LDP GR: down nbr 10.110.0.10:0:: removed from bindings task queue [0 entries]LDP GR: Requesting 1 bindings update tasks [0 left in queue]LDP GR: 2.0.0.0/8:: updating binding from 10.110.0.10:0, inst 1:: marking stale;LDP GR: 10.2.0.0/16:: updating binding from 10.110.0.10:0, inst 1:: marking stale;LDP GR: 14.0.0.14/32:: updating binding from 10.110.0.10:0, inst 1:: marking stale;LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: searching for down nbr record (10.110.0.10:0, 10.2.0.10)LDP GR: search for down nbr record (10.110.0.10:0, 10.2.0.10) returned 10.110.0.10:0LDP GR: Added FT Sess TLV (Rconn 120000, Rcov 120000) to INIT msg to 10.110.0.10:0LDP GR: Received FT Sess TLV from 10.110.0.10:0 (fl 0x1, rs 0x0, rconn 120000, rcov 120000)LDP GR: GR session 10.110.0.10:0:: allocated instance, 2LDP GR: GR session 10.110.0.10:0:: establishedLDP GR: GR session 10.110.0.10:0:: found down nbr 10.110.0.10:0LDP GR: down nbr 10.110.0.10:0:: reconnect timer stoppedLDP GR: down nbr 10.110.0.10:0:: state change (Reconnect-Wait -> Recovering)LDP GR: down nbr 10.110.0.10:0:: recovery timer started [120000 msecs]%LDP-5-GR: GR session 10.110.0.10:0 (inst. 2): starting graceful recovery%LDP-5-NBRCHG: LDP Neighbor 10.110.0.10:0 is UPLDP GR: 2.0.0.0//8:: refreshing stale binding from 10.110.0.10:0, inst 1 -> inst 2LDP GR: 10.43.0.0//16:: refreshing stale binding from 10.110.0.10:0, inst 1 -> inst 2LDP GR: down nbr 10.110.0.10:0:: recovery timer expired%LDP-5-GR: GR session 10.110.0.10:0 (inst. 2): completed graceful recoveryLDP GR: down nbr 10.110.0.10:0:: destroying record [0 left]LDP GR: down nbr 10.110.0.10:0:: state change (Recovering -> Delete-Wait)LDP GR: down nbr 10.110.0.10:0:: added to bindings task queue [1 entries]LDP GR: Tagcon querying for up to 12 bindings update tasksLDP GR: down nbr 10.110.0.10:0:: requesting bindings DEL for {10.110.0.10:0, 1}LDP GR: down nbr 10.110.0.10:0:: removed from bindings task queue [0 entries]LDP GR: Requesting 1 bindings update tasks [0 left in queue]LDP GR: GR session 10.110.0.10:0:: released instance, 1The debug output is formatted in three general ways.
•
LDP GR: GR session 10.110.0.10:0:: found down nbr 10.110.0.10:0
•
down nbr 10.110.0.10:0:: removed from bindings task queue [0 entries]
•
LDP GR: 2.0.0.0/8:: updating binding from 10.110.0.10:0, inst 1:: marking stale;
Table 1 describes the fields for the debug command output.
:
Related Commands
Command Descriptionshow mpls ldp graceful-restart
Displays a summary of the LDP Graceful Restart status.
mpls label protocol (global configuration)
To specify the Label Distribution Protocol (LDP) for a platform, use the mpls label protocol command in global configuration mode. To restore the default LDP, use the no form of this command.
mpls label protocol {ldp | tdp}
no mpls label protocol
Syntax Description
ldp
Specifies that LDP is the default label distribution protocol.
tdp
Specifies that Tag Distribution Protocol (TDP) is the default label distribution protocol.
Defaults
LDP is the default label distribution protocol.
Command Modes
Global configuration
Command History
Usage Guidelines
If neither the global mpls label protocol ldp command nor the interface mpls label protocol ldp command is used, all label distribution sessions use LDP.
Note
Use caution when upgrading the image on a router that uses TDP. Ensure that the TDP sessions are established when the new image is loaded. You can accomplish this by issuing the global configuration command mpls label protocol tdp. Issue this command and save it to the startup configuration before loading the new image. Alternatively, you can enter the command and save the running configuration immediately after loading the new image.
Examples
The following command establishes LDP as the label distribution protocol for the platform:
Router(config)# mpls label protocol ldpRelated Commands
mpls ldp graceful-restart
To enable Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) Graceful Restart, use the mpls ldp graceful-restart command in global configuration mode. To disable LDP Graceful Restart, use the no form of this command.
mpls ldp graceful-restart
no mpls ldp graceful-restart
Syntax Description
This command has no arguments or keywords.
Defaults
LDP Graceful Restart is not enabled.
Command Modes
Global configuration
Command History
Usage Guidelines
LDP Graceful Restart must be enabled before an LDP session is established.
Using the no form of the command disables the Graceful Restart functionality on all LDP sessions.
Examples
The command in the following example enables LDP Graceful Restart on a router:
Router(config)# mpls ldp graceful-restartRelated Commands
mpls ldp graceful-restart timers forwarding-holding
To specify the amount of time the Multiprotocol Label Switching (MPLS) forwarding state should be preserved after the control plane restarts, use the mpls ldp graceful-restart timers forwarding-holding command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers forwarding-holding secs
no mpls ldp graceful-restart timers forwarding-holding
Syntax Description
Defaults
After the control plane on the Cisco 7500 and Cisco 10000 series router restarts, the MPLS forwarding state is preserved for 300 seconds.
Command Modes
Global configuration
Command History
Usage Guidelines
Configuring the local forwarding-holding timer to a value less than the IOS FT Reconnect Timeout of 120 seconds may prevent an LDP session from being established. Configure the forwarding-holding timer to less than 120 seconds only if an LDP neighbor has an FT Reconnect Timeout value of less than 120 seconds.
If the timer expires, all entries that are marked stale are deleted.
Examples
In the following example, the MPLS forwarding state is preserved for 300 seconds after the control plane restarts:
Router(config)# mpls ldp graceful-restart timers forwarding-holding 300Related Commands
mpls ldp graceful-restart timers max-recovery
To specify the amount of time a router should hold stale label-Forwarding Equivalence Class (FEC) bindings after a Label Distribution Protocol (LDP) session has been reestablished, use the mpls ldp graceful-restart timers max-recovery command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers max-recovery secs
no mpls ldp graceful-restart timers max-recovery
Syntax Description
Defaults
Stale label-FEC bindings are held for 120 seconds after an LDP session has been reestablished.
Command Modes
Global configuration
Command History
Usage Guidelines
After the timer expires, all stale label-FEC bindings learned from the associated LDP session are removed, which results in the removal of any forwarding table entries that are based on those bindings.
Examples
In the following example, the router should hold stale label-FEC bindings after an LDP session has been reestablished for 180 seconds:
Router(config)# mpls ldp graceful-restart timers max-recovery 180Related Commands
mpls ldp graceful-restart timers neighbor-liveness
To specify the upper bound on the amount of time a router should wait for a Label Distribution Protocol (LDP) session to be reestablished, use the mpls ldp graceful-restart timers neighbor-liveness command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers neighbor-liveness secs
no mpls ldp graceful-restart timers neighbor-liveness
Syntax Description
secs
The amount of time (in seconds) that the router should wait for an LDP session to be reestablished. The default is 120 seconds. The range is 5 to 300 seconds.
Defaults
The default is a maximum of 120 seconds.
Command Modes
Global configuration
Command History
Usage Guidelines
The amount of time a router waits for an LDP session to be reestablished is the lesser of the following values:
•
The value of the peer's fault tolerant (FT) type length value (TLV) reconnect timeout
•
The value of the neighbor liveness timer
If the router cannot reestablish an LDP session with the neighbor in the time allotted, the router deletes the stale label-FEC bindings received from that neighbor.
Examples
The command in the following example sets the amount of time that the router should wait for an LDP session to be reestablished to 30 seconds:
Router(config)# mpls ldp graceful-restart timers neighbor-liveness 30Related Commands
show mpls ip binding
To display specified information about label bindings learned by the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP), use the show mpls ip binding command in user EXEC or privileged EXEC mode.
show mpls ip binding [vrf vrf-name | all] [network {mask | length} [longer-prefixes]]
[neighbor address | local] [local-label {atm vpi vci | label [- label]}]
[remote-label {atm vpi vci | label [- label]}] [interface interface] [generic | atm]show mpls ip binding [vrf vrf-name | all] [detail | summary]
Cisco 10000 Series Routers
show mpls ip binding [network {mask | length} [longer-prefixes]] [neighbor address | local] [local-label label [- label]] [remote-label label [- label]] [generic]
show mpls ip binding [detail | summary]
Syntax Description
Defaults
All label bindings are displayed when no optional arguments or keywords are specified.
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
The show mpls ip binding command displays label bindings learned by LDP or the Tag Distribution Protocol (TDP).
Note
TDP is not supported for LDP features in Cisco IOS 12.0(30)S and later releases, 12.2(27)SBC and later 12.2S releases, and 12.3(14)T and later releases.
To summarize information about label bindings learned by LDP, use the show mpls ip binding summary command in user EXEC or privileged EXEC mode.
A request can specify that the entire database be displayed, that a summary of entries from the database be displayed, or that the display be limited to a subset of entries. The subset can be limited according to any of the following:
•
Prefix
•
Input or output label values or ranges
•
Neighbor advertising the label
•
Interface for label bindings of interest (LC-ATM only)
Note
LC-ATM label binding interface does not apply to the Cisco 10000 series routers.
•
Generic (non-LC-ATM) label bindings
•
LC-ATM label bindings
Note
LC-ATM label binding interface does not apply to the Cisco 10000 series routers.
Examples
The following is sample output from the show mpls ip binding command. The output shows all the label bindings in the database.
Router# show mpls ip binding10.0.0.0/8in label: 20out label: 26 lsr: 10.0.0.55:0out vc label: 1/80 lsr: 10.0.7.7:2 ATM1/0.8Active ingress 3 hops (vcd 49)172.16.0.0/8in label: 25in vc label: 1/36 lsr: 10.0.7.7:2 ATM1/0.8Active egress (vcd 55)out label: imp-null lsr: 10.0.0.55:0 inuse192.168.0.66/32in label: 26in vc label: 1/39 lsr: 10.0.7.7:2 ATM1/0.8Active egress (vcd 58)out label: 16 lsr: 10.0.0.55:0 inuse...In the following example, a request is made for the display of the label binding information for prefix 192.168.44.0/24:
Router# show mpls ip binding 192.168.44.0 24192.168.44.0/24in label: 24in vc label: 1/37 lsr: 10.0.7.7:2 ATM1/0.8Active egress (vcd 56)out label: imp-null lsr: 10.0.0.55:0 inuseIn the following example, the local-label keyword is used to request that label binding information be displayed for the prefix with local label 58:
Router# show mpls ip binding local-label 58192.168.0.0/16in label: 58out label: imp-null lsr: 10.0.0.55:0 inuseThe following sample output shows the label bindings for the VPN routing and forwarding instance named vpn1:
Router# show mpls ip binding vrf vpn110.3.0.0/16in label: 117out label: imp-null lsr:10.14.14.14:010.13.13.13/32in label: 1372out label: 268 lsr:10.14.14.14:010.14.14.14/32in label: 118out label: imp-null lsr:10.14.14.14:010.15.15.15/32in label: 1370out label: 266 lsr:10.14.14.14:010.16.16.16/32in label: 8370out label: 319 lsr:10.14.14.14:010.18.18.18/32in label: 21817out label: 571 lsr:10.14.14.14:030.2.0.0/16in label: 6943out label: 267 lsr:10.14.14.14:010.30.3.0/16in label: 2383out label: imp-null lsr:10.14.14.14:010.30.4.0/16in label: 77out label: imp-null lsr:10.14.14.14:010.30.5.0/16in label: 20715out label: 504 lsr:10.14.14.14:010.30.7.0/16in label: 17out label: imp-null lsr:10.14.14.14:010.30.10.0/16in label: 5016out label: 269 lsr:10.14.14.14:010.30.13.0/16in label: 76out label: imp-null lsr:10.14.14.14:0The following sample output shows label binding information for all VRFs:
Router# show mpls ip binding all10.0.0.0/24in label: imp-nullout label: imp-null lsr: 10.131.0.1:010.11.0.0/24in label: imp-nullout label: imp-null lsr: 10.131.0.1:010.101.0.1/32out label: imp-null lsr: 10.131.0.1:010.131.0.1/32in label: 20out label: imp-null lsr: 10.131.0.1:0 inuse10.134.0.1/32in label: imp-nullout label: 16 lsr: 10.131.0.1:0VRF vrf1:10.0.0.0/24out label: imp-null lsr: 10.132.0.1:010.11.0.0/24out label: imp-null lsr: 10.132.0.1:010.12.0.0/24in label: 17out label: imp-null lsr: 10.132.0.1:010.132.0.1/32out label: imp-null lsr: 10.132.0.1:010.134.0.2/32in label: 18out label: 16 lsr: 10.132.0.1:010.134.0.4/32in label: 19out label: 17 lsr: 10.132.0.1:010.138.0.1/32out label: imp-null lsr: 10.132.0.1:0Cisco 10000 Series Examples Only
The following sample shows binding information for a Cisco 10000 series router:
Router# show mpls ip binding0.0.0.0/0in label: imp-null10.29.0.0/16in label: imp-nullout label: imp-null lsr: 10.66.66.66:0out label: imp-null lsr: 10.44.44.44:010.20.0.0/24in label: imp-nullout label: 26 lsr: 10.66.66.66:0out label: imp-null lsr: 10.44.44.44:010.30.0.0/24in label: imp-nullout label: imp-null lsr: 10.66.66.66:0out label: 18 lsr: 10.44.44.44:010.44.44.44/32in label: 21out label: 19 lsr: 10.66.66.66:0in label: imp-nullout label: 26 lsr: 10.66.66.66:0out label: imp-null lsr: 10.44.44.44:010.30.0.0/24in label: imp-nullout label: imp-null lsr: 10.66.66.66:0out label: 18 lsr: 10.44.44.44:010.44.44.44/32in label: 21out label: 19 lsr: 10.66.66.66:0out label: imp-null lsr: 10.44.44.44:0 inuse10.55.55.55/32in label: imp-nullout label: 25 lsr: 10.66.66.66:0out label: 55 lsr: 10.44.44.44:010.66.66.66/32in label: 18out label: imp-null lsr: 10.66.66.66:0 inuseout label: 16 lsr: 10.44.44.44:010.255.254.244/32in label: 24out label: 16 lsr: 10.66.66.66:0out label: 59 lsr: 10.44.44.44:0In the following example on a Cisco 10000 series router, a request is made for the display of the label binding information for prefix 172.16.44.44/32:
Router# show mpls ip binding 172.16.44.44 32172.16.44.44/32in label: 21out label: 19 lsr: 10.66.66.66:0out label: imp-null lsr: 10.44.44.44:0 inuseIn the following example on a Cisco 10000 series router, the local-label keyword is used to request that label binding information be displayed for the prefix with local label 21:
Router# show mpls ip binding local-label 2110.44.44.44/32in label: 21Table 2 describes the significant fields shown in the displays.
The following sample output displays detailed information about the label bindings:
Router# show mpls ip binding detail10.0.0.0/8, rev 2, chkpt: add-skippedin label: imp-null (owner LDP)Advertised to:10.60.60.60:0 10.30.30.30:0out label: imp-null lsr: 10.60.60.60:0out label: imp-null lsr: 10.30.30.30:010.10.10.10/32, rev 18, chkpt: addedin label: 17 (owner LDP)Advertised to:10.60.60.60:0 10.30.30.30:0out label: 142 lsr: 10.60.60.60:0out label: 19 lsr: 10.30.30.30:0 inuse10.0.0.1/32, rev 10, chkpt: add-skippedin label: imp-null (owner LDP)Advertised to:10.60.60.60:0 10.30.30.30:0out label: 21 lsr: 10.60.60.60:0out label: 17 lsr: 10.30.30.30:010.30.30.30/32, rev 20, chkpt: addedin label: 18 (owner LDP)Advertised to:10.60.60.60:0 10.30.30.30:0out label: 22 lsr: 10.60.60.60:0Table 3 describes the significant fields shown in the display.
Cisco 7500 Series Example Only
The following sample output shows summary information about the label bindings learned by LDP:
Router# show mpls ip binding summaryTotal number of prefixes: 53Generic label bindingsassigned learnedprefixes in labels out labels53 53 51ATM label bindings summaryinterface total active local remote Bwait Rwait IFwaitATM1/0.8 47 47 40 7 0 0 0Router#Table 4 describes the significant fields shown in the display.
Cisco 10000 Series Example Only
The following sample output displays summary information about the label bindings learned by LDP:
Router# show mpls ip binding summaryTotal number of prefixes: 53Generic label bindingsassigned learnedprefixes in labels out labels53 53 51Table 5 describes the significant fields shown in the display.
Related Commands
Command Descriptionshow mpls atm-ldp bindings
Displays specified entries from the ATM label binding database.
show mpls ldp bindings
Displays the contents of the LIB.
show mpls ldp bindings
To display the contents of the Label Information Base (LIB), use the show mpls ldp bindings command in user EXEC or privileged EXEC mode:
show mpls ldp bindings [vrf vrf-name | all] [network {mask | length} [longer-prefixes]]
[local-label label [- label]] [remote-label label [- label]] [neighbor address | local] [detail]Syntax Description
Defaults
If no optional keywords or arguments are supplied, the command displays the LIB for the default routing domain only.
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
The show mpls ldp bindings command displays label bindings learned by the LDP or Tag Distribution Protocol (TDP).
Note
TDP is not supported for LDP features in Cisco IOS 12.0(30)S and later releases, 12.2(28)SB and later 12.2S releases, and 12.3(14)T and later releases.
A request can specify that the entire database be displayed, or that the display be limited to a subset of entries according to the following:
•
Prefix
•
Input or output label values or ranges
•
Neighbor advertising the label
Note
The show mpls ip binding command includes the output generated by the show mpls ldp bindings command. On the Cisco 7000 series router, this command displays information about label bindings for LC-ATM interfaces.
Examples
The following is sample output from the show mpls ldp bindings command. This form of the command displays the contents of the LIB for the default routing domain.
Router# show mpls ldp bindings10.0.0.0/8, rev 9local binding: label: imp-nullremote binding: lsr: 10.10.0.55:0, label: 17remote binding: lsr: 10.66.0.66:0, label: 18remote binding: lsr: 10.0.0.44:0, label: imp-null172.16.0.0/8, rev 17local binding: label: 19remote binding: lsr: 10.0.0.55:0, label: imp-nullremote binding: lsr: 10.66.0.66:0, label: 16remote binding: lsr: 10.0.0.44:0, label: imp-null192.168.0.66/32, rev 19local binding: label: 20remote binding: lsr: 10.0.0.55:0, label: 19remote binding: lsr: 10.66.0.66:0, label: imp-nullremote binding: lsr: 10.0.0.44:0, label: 18...The following is sample output from the show mpls ldp bindings network length longer-prefixes neighbor address variant of the command; it displays labels learned from label switch router (LSR) 10.144.0.44 for network 10.166.0.0 and any of its subnets. The use of the neighbor keyword suppresses the output of local labels and labels learned from other neighbors.
Router# show mpls ldp bindings 10.166.0.0 8 longer-prefixes neighbor 10.144.0.4410.166.44.0/16, rev 31remote binding: lsr: 10.144.0.44:0, label: 2510.166.45.0/16, rev 33remote binding: lsr: 10.144.0.44:0, label: 2610.166.245.0/16, rev 71remote binding: lsr: 10.144.0.44:0, label: 4510.166.246.0/16, rev 73remote binding: lsr: 10.144.0.44:0, label: 46...The following is sample output from the show mpls ldp bindings vrf vpn1 command, which displays the label bindings for the specified VPN routing and forwarding instance named vpn1:
Router# show mpls ldp bindings vrf vpn110.3.3.0/16, rev 164local binding: label:117remote binding:lsr:10.14.14.14:0, label:imp-null10.13.13.13/32, rev 1650local binding: label:1372remote binding:lsr:10.14.14.14:0, label:26810.14.14.14/32, rev 165local binding: label:118remote binding:lsr:10.14.14.14:0, label:imp-null10.15.15.15/32, rev 1683local binding: label:1370remote binding:lsr:10.14.14.14:0, label:26610.16.16.16/32, rev 775local binding: label:8370remote binding:lsr:10.14.14.14:0, label:31910.18.18.18/32, rev 1655local binding: label:21817remote binding:lsr:10.14.14.14:0, label:57110.30.2.0/16, rev 1653local binding: label:6943remote binding:lsr:10.14.14.14:0, label:26710.30.3.0/16, rev 413local binding: label:2383remote binding:lsr:10.14.14.14:0, label:imp-null10.30.4.0/16, rev 166local binding: label:77remote binding:lsr:10.14.14.14:0, label:imp-null10.30.5.0/16, rev 1429local binding: label:20715remote binding:lsr:10.14.14.14:0, label:50410.30.7.0/16, rev 4local binding: label:17remote binding:lsr:10.14.14.14:0, label:imp-null10.30.10.0/16, rev 422local binding: label:5016remote binding:lsr:10.14.14.14:0, label:269...The following is sample output from the show mpls ldp bindings all command, which displays the label bindings for all VRFs:
Router# show mpls ldp bindings alllib entry: 10.0.0.0/24, rev 4local binding: label: imp-nullremote binding: lsr: 10.131.0.1:0, label: imp-nulllib entry: 10.11.0.0/24, rev 15local binding: label: imp-nullremote binding: lsr: 10.131.0.1:0, label: imp-nulllib entry: 10.101.0.1/32, rev 18remote binding: lsr: 10.131.0.1:0, label: imp-nulllib entry: 10.131.0.1/32, rev 17local binding: label: 20remote binding: lsr: 10.131.0.1:0, label: imp-nulllib entry: 10.134.0.1/32, rev 6local binding: label: imp-nullremote binding: lsr: 10.131.0.1:0, label: 16VRF vrf1:lib entry: 10.0.0.0/24, rev 6remote binding: lsr: 10.132.0.1:0, label: imp-nulllib entry: 10.11.0.0/24, rev 7remote binding: lsr: 10.132.0.1:0, label: imp-nulllib entry: 10.12.0.0/24, rev 8local binding: label: 17remote binding: lsr: 10.132.0.1:0, label: imp-nulllib entry: 10.132.0.1/32, rev 4remote binding: lsr: 10.132.0.1:0, label: imp-nulllib entry: 10.134.0.2/32, rev 9local binding: label: 18remote binding: lsr: 10.132.0.1:0, label: 16lib entry: 10.134.0.4/32, rev 10local binding: label: 19remote binding: lsr: 10.132.0.1:0, label: 17lib entry: 10.138.0.1/32, rev 5remote binding: lsr: 10.132.0.1:0, label: imp-nullThe following is sample output from the show mpls ldp bindings detail command:
Router# show mpls ldp bindings detaillib entry: 10.3.3.0/16, rev 2,local binding: label: imp-nullAdvertised to:10.20.20.20:0 10.25.25.25:0remote binding: lsr: 10.20.20.20:0, label: imp-null staleremote binding: lsr: 10.25.25.25:0, label: imp-null stalelib entry: 10.13.1.0/24, rev 4,local binding: label: imp-nullAdvertised to:10.20.20.20:0 10.25.25.25:0remote binding: lsr: 10.20.20.20:0, label: imp-null staleremote binding: lsr: 10.25.25.25:0, label: 16 stalelib entry: 10.13.2.0/24, rev 6,local binding: label: imp-nullAdvertised to:10.20.20.20:0 10.25.25.25:0remote binding: lsr: 10.20.20.20:0, label: 16 staleremote binding: lsr: 10.25.25.25:0, label: imp-null stalelib entry: 10.6.1.0/24, rev 22,local binding: label: 21Advertised to:10.20.20.20:0 10.25.25.25:0remote binding: lsr: 10.20.20.20:0, label: 19 staleremote binding: lsr: 10.25.25.25:0, label: imp-null staleTable 6 describes the significant fields shown in the display.
Related Commands
Command Descriptionshow mpls ip binding
Displays specified information about label bindings learned by the MPLS LDP.
show mpls ldp neighbor
Displays the status of LDP sessions.
show mpls ldp checkpoint
To display information about the Label Distribution Protocol (LDP) checkpoint system on the active route processor, use the show mpls ldp checkpoint command in user EXEC or privileged EXEC mode.
show mpls ldp checkpoint
Syntax Description
This command has no arguments or keywords.
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
This command shows the following LDP checkpointing information:
•
The status of the checkpointing system
•
The status of the resend timer
•
The number of Label Information Base (LIB) entries in a checkpointed state
This command displays checkpoint status information only for the active route processor.
Examples
The following example shows the LDP checkpoint settings and configuration:
Router# show mpls ldp checkpointCheckpoint status: dynamic-syncCheckpoint resend timer: not running5 local bindings in add-skipped9 local bindings in added1 of 15+ local bindings in noneTable 7 describes the significant fields shown in the display.
Related Commands
Command Descriptionshow mpls ldp graceful-restart
Displays a summary of the LDP Graceful Restart status.
show mpls ldp graceful-restart
To display a summary of the Label Distribution Protocol (LDP) Graceful Restart status, use the show mpls ldp graceful-restart command in user EXEC or privileged EXEC mode.
show mpls ldp graceful-restart
Syntax Description
This command has no arguments or keywords.
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
This command shows the following information about LDP sessions:
•
Configured parameters.
•
The state of the LDP sessions (for which Graceful Restart was negotiated during initialization).
•
The list of LDP sessions for which graceful recovery is pending. However, the router has retained the state information from those neighbors.
Examples
The following example shows a summary of the LDP Graceful Restart settings and configuration:
Router# show mpls ldp graceful-restartLDP Graceful Restart is enabledNeighbor Liveness Timer: 5 secondsMax Recovery Time: 200 secondsDown Neighbor Database (0 records):Graceful Restart-enabled Sessions:VRF default:Peer LDP Ident: 10.18.18.18:0, State: estabPeer LDP Ident: 10.17.17.17:0, State: estabTable 8 describes the significant fields shown in the display.
Related Commands
show mpls ldp neighbor
To display the status of Label Distribution Protocol (LDP) sessions, use the show mpls ldp neighbor command in user EXEC or privileged EXEC mode.
show mpls ldp neighbor [vrf vrf-name | all] [address | interface] [detail] [graceful-restart]
Syntax Description
Defaults
This command displays information about LDP neighbors for the default routing domain if you do not specify the optional vrf keyword.
Command Modes
User EXEC
Privileged EXECCommand History
Usage Guidelines
The show mpls ldp neighbor command can provide information about all LDP neighbors, or the information can be limited to the following:
•
Neighbor with specific IP address
•
LDP neighbors known to be accessible over a specific interface
Note
This command displays information about LDP and Tag Distribution Protocol (TDP) neighbor sessions.
Examples
For explanations of the significant fields shown in the displays, see Table 9.
The following is sample output from the show mpls ldp neighbor command:
Router# show mpls ldp neighborPeer LDP Ident: 10.0.7.7:2; Local LDP Ident 10.1.1.1:1TCP connection: 10.0.7.7.11032 - 10.1.1.1.646State: Oper; Msgs sent/rcvd: 5855/6371; Downstream on demandUp time: 13:15:09LDP discovery sources:ATM3/0.1Peer LDP Ident: 10.1.1.1:0; Local LDP Ident 10.1.1.1:0TCP connection: 10.1.1.1.646 - 10.1.1.1.11006State: Oper; Msgs sent/rcvd: 4/411; DownstreamUp time: 00:00:52LDP discovery sources:Ethernet1/0/0Addresses bound to peer LDP Ident:10.0.0.29 10.1.1.1 10.0.0.199 10.10.1.110.205.0.9The following is sample output from the show mpls ldp neighbor command, in which duplicate addresses are detected. They indicate an error because a given address should be bound to only one peer.
Router# show mpls ldp neighborPeer LDP Ident: 10.0.7.7:2; Local LDP Ident 10.1.1.1:1TCP connection: 10.0.7.7.11032 - 10.1.1.1.646State: Oper; Msgs sent/rcvd: 5855/6371; Downstream on demandUp time: 13:15:09LDP discovery sources:ATM3/0.1Peer LDP Ident: 10.1.1.1:0; Local LDP Ident 10.1.1.1:0TCP connection: 10.1.1.1.646 - 10.1.1.1.11006State: Oper; Msgs sent/rcvd: 4/411; DownstreamUp time: 00:00:52LDP discovery sources:Ethernet1/0/0Addresses bound to peer LDP Ident:10.0.0.29 10.1.1.1 10.0.0.199 10.10.1.110.205.0.9Duplicate Addresses advertised by peer:10.10.8.111The following is sample output from the show mpls ldp neighbor vrf vpn10 command, which displays the LDP neighbor information for the specified VPN routing and forwarding instance named vpn10:
Router# show mpls ldp neighbor vrf vpn10Peer LDP Ident:10.14.14.14:0; Local LDP Ident 10.29.0.2:0TCP connection:10.14.14.14.646 - 10.29.0.2.11384State:Oper; Msgs sent/rcvd:1423/800; DownstreamUp time:02:38:11LDP discovery sources:ATM3/0/0.10Addresses bound to peer LDP Ident:10.3.36.9 10.7.0.1 10.14.14.14 10.13.0.110.15.0.1 10.17.0.1 10.19.0.1 10.21.0.110.23.0.1 10.25.0.1 10.27.0.1 10.29.0.110.31.0.1 10.33.0.1 10.35.0.1 10.37.0.110.39.0.1 10.41.0.1 10.43.0.1 10.45.0.110.47.0.1 10.49.0.1 10.51.0.1 10.53.0.110.55.0.1 10.57.0.1 10.59.0.1 10.61.0.110.63.0.1 10.65.0.1 10.67.0.1 10.69.0.110.71.0.1 10.73.0.1 10.75.0.1 10.77.0.110.79.0.1 10.81.0.1 10.83.0.1 10.85.0.110.87.0.1 10.89.0.1 10.91.0.1 10.93.0.110.95.0.1 10.97.0.1 10.99.0.1 10.101.0.110.103.0.1 10.105.0.1 10.107.0.1 10.109.0.110.4.0.2 10.3.0.2The following shows sample output from the show mpls ldp neighbor detail command, which displays information about inbound filtering:
Router# show mpls ldp neighbor vrf vpn1 detailPeer LDP Ident: 10.13.13.13:0; Local LDP Ident 10.33.0.2:0TCP connection: 10.13.13.13.646 - 10.33.0.2.31581State: Oper; Msgs sent/rcvd: 11/10; Downstream; Last TIB rev sent 13Up time: 00:02:25; UID: 26; Peer Id 0;LDP discovery sources:Ethernet1/0/2; Src IP addr: 10.33.0.1holdtime: 15000 ms, hello interval: 5000 msAddresses bound to peer LDP Ident:10.3.105.1 10.13.13.13 10.33.0..1Peer holdtime: 180000 ms; KA interval: 60000 ms; Peer state: estabLDP inbound filtering accept acl:1Peer LDP Ident: 10.14.14.14:0; Local LDP Ident 10.33.0.2:0TCP connection: 10.14.14.14.646 - 10.33.0.2.31601State: Oper; Msgs sent/rcvd: 10/9; Downstream; Last TIB rev sent 13Up time: 00:01:17; UID: 29; Peer Id 3;LDP discovery sources:Ethernet1/0/3; Src IP addr: 10.33.0.1holdtime: 15000 ms, hello interval: 5000 msAddresses bound to peer LDP Ident:10.3.104.1 10.14.14.14 10.32.0.1Peer holdtime: 180000 ms; KA interval: 60000 ms; Peer state: estabLDP inbound filtering accept acl:1The following is sample output from the show mpls ldp neighbor all command, which displays the LDP neighbor information for all VPN routing and forwarding instances, including those in the default routing domain. In this example, note that the same neighbor LDP ID (10.14.14.14) appears in all the listed VRF interfaces, highlighting the fact that the same IP address can coexist in different VPN routing and forwarding instances.
Router# show mpls ldp neighbor allPeer TDP Ident:10.11.11.11:0; Local TDP Ident 10.12.12.12:0TCP connection:10.11.11.11.711 - 10.12.12.12.11003State:Oper; PIEs sent/rcvd:185/187; DownstreamUp time:02:40:02TDP discovery sources:ATM1/1/0.1Addresses bound to peer TDP Ident:10.3.38.3 10.1.0.2 10.11.11.11VRF vpn1:Peer LDP Ident:10.14.14.14:0; Local LDP Ident 10.7.0.2:0TCP connection:10.14.14.14.646 - 10.7.0.2.11359State:Oper; Msgs sent/rcvd:952/801; DownstreamUp time:02:38:49LDP discovery sources:ATM3/0/0.1Addresses bound to peer LDP Ident:10.3.36.9 10.7.0.1 10.14.14.14 10.13.0.110.15.0.1 10.17.0.1 10.19.0.1 10.21.0.110.23.0.1 10.25.0.1 10.27.0.1 10.29.0.110.31.0.1 10.33.0.1 10.35.0.1 10.37.0.110.39.0.1 10.41.0.1 10.43.0.1 10.45.0.110.47.0.1 10.49.0.1 10.51.0.1 10.53.0.110.55.0.1 10.57.0.1 10.59.0.1 10.61.0.110.63.0.1 10.65.0.1 10.67.0.1 10.69.0.110.71.0.1 10.73.0.1 10.75.0.1 10.77.0.110.79.0.1 10.81.0.1 10.83.0.1 10.85.0.110.87.0.1 10.89.0.1 10.91.0.1 10.93.0.110.95.0.1 10.97.0.1 10.99.0.1 10.101.0.110.103.0.1 10.105.0.1 10.107.0.1 10.109.0.110.4.0.2 10.3.0.2VRF vpn2:Peer LDP Ident:10.14.14.14:0; Local LDP Ident 10.13.0.2:0TCP connection:10.14.14.14.646 - 10.13.0.2.11361State:Oper; Msgs sent/rcvd:964/803; DownstreamUp time:02:38:50LDP discovery sources:ATM3/0/0.2Addresses bound to peer LDP Ident:10.3.36.9 10.7.0.1 10.14.14.14 10.13.0.110.15.0.1 10.17.0.1 10.19.0.1 10.21.0.110.23.0.1 10.25.0.1 10.27.0.1 10.29.0.110.31.0.1 10.33.0.1 10.35.0.1 10.37.0.110.39.0.1 10.41.0.1 10.43.0.1 10.45.0.110.47.0.1 10.49.0.1 10.51.0.1 10.53.0.110.55.0.1 10.57.0.1 10.59.0.1 10.61.0.110.63.0.1 10.65.0.1 10.67.0.1 10.69.0.110.71.0.1 10.73.0.1 10.75.0.1 10.77.0.110.79.0.1 10.81.0.1 10.83.0.1 10.85.0.110.87.0.1 10.89.0.1 10.91.0.1 10.93.0.110.95.0.1 10.97.0.1 10.99.0.1 10.101.0.110.103.0.1 10.105.0.1 10.107.0.1 10.109.0.110.4.0.2 10.3.0.2VRF vpn3:Peer LDP Ident:10.14.14.14:0; Local LDP Ident 10.15.0.2:0TCP connection:10.14.14.14.646 - 10.15.0.2.11364State:Oper; Msgs sent/rcvd:1069/800; DownstreamUp time:02:38:52LDP discovery sources:ATM3/0/0.3Addresses bound to peer LDP Ident:10.3.36.9 10.17.0.1 10.14.14.14 10.13.0.110.15.0.1 10.17.0.1 10.19.0.1 10.21.0.110.23.0.1 10.25.0.1 10.27.0.1 10.29.0.110.31.0.1 10.33.0.1 10.35.0.1 10.37.0.110.39.0.1 10.41.0.1 10.43.0.1 10.45.0.110.47.0.1 10.49.0.1 10.51.0.1 10.53.0.110.55.0.1 10.57.0.1 10.59.0.1 10.61.0.110.63.0.1 10.65.0.1 10.67.0.1 10.69.0.110.71.0.1 10.73.0.1 10.75.0.1 10.77.0.110.79.0.1 10.81.0.1 10.83.0.1 10.85.0.110.87.0.1 10.89.0.1 10.91.0.1 10.93.0.110.95.0.1 10.97.0.1 10.99.0.1 10.101.0.110.103.0.1 10.105.0.1 10.107.0.1 10.109.0.110.4.0.2 10.3.0.2VRF vpn4:Peer LDP Ident:10.14.14.14:0; Local LDP Ident 10.17.0.2:0TCP connection:10.14.14.14.646 - 10.17.0.2.11366State:Oper; Msgs sent/rcvd:1199/802; DownstreamThe following example shows the Graceful Restart status of the LDP neighbors:
Router# show mpls ldp neighbor graceful-restartPeer LDP Ident: 10.20.20.20:0; Local LDP Ident 10.17.17.17:0TCP connection: 10.20.20.20.16510 - 10.17.17.17.646State: Oper; Msgs sent/rcvd: 8/18; DownstreamUp time: 00:04:39Graceful Restart enabled; Peer reconnect time (msecs): 120000Peer LDP Ident: 10.19.19.19:0; Local LDP Ident 10.17.17.17:0TCP connection: 10.19.19.19.11007 - 10.17.17.17.646State: Oper; Msgs sent/rcvd: 8/38; DownstreamUp time: 00:04:30Graceful Restart enabled; Peer reconnect time (msecs): 120000The following sample output from the show mpls ldp neighbor detail command displays information about the MD5 password configuration:
Router# show mpls ldp neighbor detailPeer LDP Ident: 10.3.3:0; Local LDP Ident 10.1.1.1:0TCP connection: 10.3.3.3.11018 - 10.1.1.1.646Password: required, neighbor, in useState: Oper; Msgs sent/rcvd: 167/167; Downstream; Last TIB rev sent 9Up time: 02:24:02; UID: 5; Peer Id 3;LDP discovery sources:Targeted Hello 10.1.1.1 -> 10.3.3.3, passive;holdtime: 90000 ms, hello interval: 10000 msAddresses bound to peer LDP Ident:10.3.3.3 10.0.30.3Peer holdtime: 180000 ms; KA interval: 60000 ms; Peer state: estabPeer LDP Ident: 10.4.4.4:0; Local LDP Ident 10.1.1.1:0TCP connection: 10.4.4.4.11017 - 10.1.1.1.646Password: not required, none, staleState: Oper; Msgs sent/rcvd: 9/9; Downstream; Last TIB rev sent 9Up time: 00:05:35; UID: 6; Peer Id 1;LDP discovery sources:Ethernet1/0; Src IP addr: 10.0.20.4holdtime: 15000 ms, hello interval: 5000 msAddresses bound to peer LDP Ident:10.0.40.4 10.4.4.4 10.0.20.4Peer holdtime: 180000 ms; KA interval: 60000 ms; Peer state: estabTable 9 describes the significant fields shown in the displays.
Related Commands
Feature Information for NSF/SSO - MPLS LDP and LDP Graceful Restart
Table 10 lists the release history for this feature.
Not all commands may be available in your Cisco IOS software release. For release information about a specific command, see the command reference documentation.
Use Cisco Feature Navigator to find information about platform support and software image support. Cisco Feature Navigator enables you to determine which Cisco IOS and Catalyst OS software images support a specific software release, feature set, or platform. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Note
Table 10 lists only the Cisco IOS software release that introduced support for a given feature in a given Cisco IOS software release train. Unless noted otherwise, subsequent releases of that Cisco IOS software release train also support that feature.
Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental.
© 2004-2007 Cisco Systems, Inc. All rights reserved.




