Specifications

Table Of Contents
mpls ldp maxhops
MP-241
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
mpls ldp maxhops
To limit the number of hops permitted in a label switched path (LSP) established by the Downstream on
Demand method of label distribution, use the mpls ldp maxhops command in global configuration
mode. To disable this feature, use the no form of this command.
mpls ldp maxhops nu
mber
no mpls ldp maxhops
Syntax Description
Defaults The default is 254 hops.
Command Modes Global configuration
Command History
Usage Guidelines When an ATM label switch router (LSR) initiates a request for a label binding, it sets the hop count value
in
the Label Request message to 1. Subsequent ATM-LSRs along the path to the edge of the ATM label
switching region increment the hop count before forwarding the Label Request message to the next hop.
When an ATM LSR receives a Label Request message, it does not send a Label Mapping message in
re
sponse, nor does it propagate the request to the destination next hop if the hop count value in the
request equals or exceeds the maxhops value. Instead, the ATM LSR returns an error message that
specifies that the maximum allowable hop count has been reached. This threshold is used to prevent
forwarding loops in the setting up of label switch paths across an ATM region.
Examples The following example sets the hop count limit to 10:
Router(config)# mpls ldp maxhops 10
number Number from 1 to 255, inclusive, that defines the maximum hop count. The default is 254.
Release Modification
11.1CT This command was introduced.
12.0(10)ST This command was updated with MPLS command syntax and terminology.
12.1(2)T This command was integrated into Cisco IOS Release 12.1(2)T.
12.1(8a)E This command was integrated into Cisco IOS Release 12.1(8a)E.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.2SX This command is supported in the Cisco IOS Release 12.2SX train. Support
i
n a specific 12.2SX release of this train depends on your feature set,
platform, and platform hardware.