
69
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 IGP to take the
MPLS TE tunnels in up state
into account when
performing enhanced SPF
calculation.
mpls te igp shortcut
[
isis
|
ospf
]
MPLS TE tunnels are not
considered in the enhanced SPF
calculation of IGP.
If no IGP type is specified, the
configuration applies to both
OSPF and ISIS by default.
4.
Assign a metric to the MPLS
TE tunnel.
mpls te igp metric
{
absolute
|
relative
}
value
Optional.
The metrics of TE tunnels equal
the metrics of their corresponding
IGP routes by default.
5.
Submit current tunnel
configuration.
mpls te commit
N/A
6.
Exit to system view.
quit
N/A
7.
Enter OSPF view.
ospf
[
process-id
]
N/A
8.
Enable the IGP shortcut
function.
enable traffic-adjustment
Disabled by default.
Configuring a forwarding adjacency
To make forwarding adjacency take effect, create two MPLS TE tunnels in opposite directions and
enable forwarding adjacency at both ends of the tunnels.
To configure forwarding adjacency:
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.
Enable IGP to advertise the
route of the MPLS TE tunnel
to IGP neighbors.
mpls te igp advertise
[
hold-time
value
]
Routes of MPLS TE tunnels are
not advertised to IGP neighbors
by default.
4.
Assign a metric to the MPLS
TE tunnel.
mpls te igp metric
{
absolute
|
relative
}
value
Optional.
The metrics of TE tunnels equal
the metrics of their corresponding
IGP routes by default.
5.
Submit current tunnel
configuration.
mpls te commit
N/A
6.
Exit to system view.
quit
N/A
7.
Enter OSPF view.
ospf
[
process-id
]
N/A
8.
Enable forwarding
adjacency.
enable traffic-adjustment
advertise
Disabled by default.