R2511-HP MSR Router Series MPLS Command Reference(V5)
304
Parameters
value: Specifies the TE metric of the link, in the range of 0 to 4294967295.
Examples
# Assign a TE metric of 20 to the link on Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] mpls te metric 20
Related commands
mpls te path metric-type
mpls te path
Use mpls te path to specify a path for the tunnel to use and set the preference of the path.
Use undo mpls te path to remove a path used by the tunnel.
Syntax
mpls te path { dynamic | explicit-path path-name } preference value
undo mpls te path { dynamic | explicit-path path-name }
Default
A tunnel uses the dynamically calculated path.
Views
Tunnel interface view
Default command level
2: System level
Parameters
dynamic: Uses the path that is dynamically calculated.
explicit-path path-name: Uses an existing explicit path. The pathname argument is a case-insensitive
string of 1 to 31 characters.
preference value: Specifies the preference of the path. The value argument is in the range of 1 to 10. The
smaller the value, the higher the preference.
Usage guidelines
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.
Examples
# Configure interface Tunnel 0 to use the explicit path named path1 and the dynamically calculated path,
setting the preferences of the paths to 1 and 2 respectively.
<Sysname> system-view
[Sysname] interface tunnel 0
[Sysname-Tunnel0] mpls te path explicit-path path1 preference 1
[Sysname-Tunnel0] mpls te path dynamic preference 2










