181
Examples
# Configure the node to perform loop detection when setting up tunnel 0.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te loop-detection
mpls te metric
Description
Use the mpls te metric command to assign a TE metric to the link.
Use the undo mpls te metric command to restore the default.
By default, the link uses its IGP metric as its TE metric.
Related commands: mpls te path metric-type.
Syntax
mpls te metric value
undo mpls te metric
View
Interface view
Default level
2: System level
Parameters
value: Specifies the TE metric of the link, ranging from 0 to 4,294,967,295.
Examples
# Assign a TE metric of 20 to the link on VLAN-interface 1.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] mpls te metric 20
mpls te path
Description
Use the mpls te path command to specify a path for the tunnel to use and set the preference of the path.
Use the undo mpls te path command to remove a path used by the tunnel.
By default, a tunnel uses the dynamically calculated path.
• Up to 10 paths can be specified for an MPLS TE tunnel.
• The paths for a tunnel to use must have different preferences.
• A path with the highest preference is preferred for CSPF calculation.
Syntax
mpls te path { dynamic | explicit-path pathname } preference value
undo mpls te path { dynamic | explicit-path pathname }