Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring the Traffic Engineering Metric for a Specific OSPF Interface

This example shows how to configure the OSPF metric value used for traffic engineering.

Requirements

Before you begin:

Overview

You can configure an OSPF metric that is used exclusively for traffic engineering. To modify the default value of the traffic engineering metric, include the te-metric statement. The OSPF traffic engineering metric does not affect normal OSPF forwarding. By default, the traffic engineering metric is the same value as the OSPF metric. The range is 1 through 65,535.

In this example, you configure the OSPF traffic engineering metric on OSPF interface fe-0/1/1 in area 0.0.0.0.

Configuration

CLI Quick Configuration

To quickly configure the OSPF traffic engineering metric for a specific interface, copy the following command and paste it into the CLI.

[edit]set protocols ospf area 0.0.0.0 interface fe-0/1/1 te-metric 10

Step-by-Step Procedure

To configure an OSPF traffic engineering metric for a specific interface used only for traffic engineering:

  1. Create an OSPF area.

    Note: To specify OSPFv3, include the ospf3 statement at the [edit protocols] hierarchy level.

    [edit]user@host# edit protocols ospf area 0.0.0.0
  2. Configure the traffic engineering metric of the OSPF network segments.
    [edit protocols ospf area 0.0.0.0]user@host set interface fe-0/1/1 te-metric 10
  3. If you are done configuring the device, commit the configuration.
    [edit protocols ospf area 0.0.0.0]user@host# commit

Results

Confirm your configuration by entering the show protocols ospf command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

user@host# show protocols ospf area 0.0.0.0 {interface fe-0/1/1.0 {te-metric 10;}}

To confirm your OSPFv3 configuration, enter the show protocols ospf3 command.

Verification

Confirm that the configuration is working properly.

Verifying the Configured Traffic Engineering Metric

Purpose

Verify the traffic engineering metric value. Confirm that Metric field displays the configured traffic engineering metric.

Action

From operational mode, enter the show ted database extensive command.

Published: 2012-12-08