R0106-HP MSR Router Series MPLS Command Reference(V7)
56
Parameters
hop-number: Specifies the maximum hop count for loop detection, in the range of 1 to 32.
Usage guidelines
LDP adds a hop count in a label request or label mapping message. The hop count increments by 1 on
each LSR. When the hop count reaches the maximum hop count configured by this command, LDP
considers that a loop occurs and terminates LSP establishment.
Set a proper maximum hop count according to the number of LSRs in your network. For example, set a
smaller maximum hop count in small networks to allow for fast loop detection. Set a higher maximum
hop count in large networks to make sure that LSPs can be successfully established.
Examples
# Set the maximum hop count to 25 for loop detection on the public network.
<Sysname> system-view
[Sysname] mpls ldp
[Sysname-ldp] maxhops 25
Related commands
• display mpls ldp parameter
• loop-detect
• pv-limit
md5-authentication
Use md5-authentication to enable LDP MD5 authentication.
Use undo md5- authentication to restore the default.
Syntax
md5-authentication peer-lsr-id { cipher | plain } password
undo md5-authentication peer-lsr-id
Default
LDP MD5 authentication is disabled.
Views
LDP view, LDP-VPN instance view
Predefined user roles
network-admin
Parameters
peer-lsr-id: Specifies the LSR ID of a peer.
cipher: Sets a ciphertext key.
plain: Sets a plaintext key.
password: Specifies a case-sensitive key string. If plain is specified, it must be a plaintext string of 1 to 16
characters. If cipher is specified, it must be a ciphertext string of 1 to 53 characters.










