Command Manual – MPLS 
Quidway S8500 Series Routing Switches  Chapter 1  MPLS Basic Configuration Commands
 
Huawei Technologies Proprietary 
1-21 
View 
VLAN interface view  
Parameter 
None 
Description 
Use the mpls ldp enable command to enable LDP on a VLAN interface. 
Use the mpls ldp disable command to disable LDP on a VLAN interface.  
By default, LDP is disabled on an interface. 
To enable an interface, you must enable LDP first. After LDP is enabled on an interface, 
peer discovery and session creation proceed. 
Example 
# Enable LDP on a VLAN interface. 
<Quidway> system-view  
[Quidway] vlan 201 
[Quidway-Vlan201] port gigabitethernet 2/1/1 
[Quidway-Vlan201] quit 
[Quidway] interface vlan-interface 201 
[Quidway-Vlan-interface201] mpls 
[Quidway-vlan-interface201] mpls ldp enable 
1.2.11  mpls ldp hops-count 
Syntax 
mpls ldp hops-count hop-number 
undo mpls ldp hops-count 
View 
System view 
Parameter 
hop-number: Maximum hop count of loop detection, ranging from 1 to 32. 
Description 
Use the mpls ldp hops-count command to set the maximum hop count of loop 
detection. 
Use the undo mpls ldp hops-count command to restore the default value of the 
maximum hop count of loop detection.