118
Specifying the link metric type for tunnel path calculation
To specify the metric type for tunnel path calculation:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS view.
mpls
N/A
3.
Specify the metric type to use
when no metric type is
explicitly configured for a
tunnel.
mpls te path metric-type
{
igp
|
te
}
Optional.
TE metrics of links are used by
default.
4.
Return to system view.
quit
N/A
5.
Enter MPLS TE tunnel interface
view.
interface tunnel
tunnel-number
N/A
6.
Specify the metric type to use
for path calculation of the
current tunnel.
mpls te path metric-type
{
igp
|
te
}
Optional.
If you do not configure the
mpls te
path metric-type
command in
MPLS TE tunnel interface view, the
metric type specified in MPLS view
takes effect.
7.
Submit current tunnel
configuration.
mpls te commit
Optional.
8.
Return to system view.
quit
N/A
9.
Enter interface view of MPLS
TE link.
interface
interface-type
interface-number
N/A
10.
Assign a TE metric to the link.
mpls te metric
value
Optional.
If no TE metric is assigned to the
link, IGP metric is used as the TE
metric by default.
Configuring the traffic flow type of a tunnel
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter MPLS TE tunnel interface
view.
interface tunnel
tunnel-number
N/A
3.
Configure the traffic flow type
of the TE tunnel.
mpls te vpn-binding
{
acl
acl-number
|
vpn-instance
vpn-instance-name
}
Optional.
Traffic flow types of TE tunnels are
not restricted by default.
4.
Submit current tunnel
configuration.
mpls te commit
N/A