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:

Follow these restrictions and guidelines when you configure automatic route advertisement:

Configuring IGP shortcut

Step

Command

Remarks

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 OSPF and IS-IS will include the MPLS TE tunnel in route calculation.

4. Assign a metric to the MPLS TE tunnel.

mpls te igp metric { absolute value | relative value }

By default, the metric of an MPLS TE tunnel equals its IGP metric.

Configuring forwarding adjacency

To use forwarding adjacency, you must establish two MPLS TE tunnels in opposite directions between two nodes, and configure forwarding adjacency on both the nodes.

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 [ mode mpls-te ]

N/A

3. Enable forwarding adjacency.

mpls te igp advertise [ hold-time value ]

By default, forwarding adjacency is disabled.