72
Configuring traffic forwarding
Perform the tasks in this section on the ingress node of the MPLS TE tunnel.
Configuring static routing to direct traffic to an MPLS TE
tunnel
1. Enter system view.
system-view
N/A
2.
Configure a static route to
direct traffic to an MPLS TE
tunnel.
For information about static
routing commands, see Layer
3—
Reference.
By default, no static route exists
on the device.
The interface specified in this
command must be an MPLS TE
tunnel interface
mode.
Configuring automatic route advertisement to direct traffic to
an MPLS TE tunnel
You can use either IGP shortcut or forwarding adjacency to implement automatic route
advertisement. When you use IGP shortcut, you can specify a metric for the TE tunnel. If you assign
an absolute metric, the metric is directly used as the MPLS TE tunnel's metric. If you assign a relative
metric, the MPLS TE tunnel's metric is the assigned metric plus the IGP link metric.
Before configuring automatic route advertisement, perform the following tasks:
• Enable OSPF or IS-IS on the tunnel interface to advertise the tunnel interface address to OSPF
or IS-IS.
• Enable MPLS TE for an OSPF area or an IS-IS process by executing the mpls te enable
command in OSPF area view or IS-IS view.
Follow these restrictions and guidelines when you configure automatic route advertisement:
• The destination address of the MPLS TE tunnel can be the LSR ID of the egress node or the
primary IP address of an interface on the egress node. As a best practice, configure the
destination address of the MPLS TE tunnel as the LSR ID of the egress node.
• If you configure the tunnel destination address as the primary IP address of an interface on the
egress node, you must enable MPLS TE, and configure OSPF or IS-IS on that interface. This
makes sure the primary IP address of the interface can be advertised to its peer.
• The route to the tunnel interface address and the route to the tunnel destination must be in the
same OSPF area or at the same IS-IS level.
Configuring IGP shortcut
1. Enter system view.
system-view
N/A
2. Enter
interface view.
interface tunnel
tunnel-number [
mode
mpls-te
]
N/A
3. Enable IGP shortcut.
mpls te igp shortcut
[
isis
|
ospf
]
By default, IGP shortcut is
disabled.
If no IGP is specified, both