Supported Platforms
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:
- Configure the device interfaces. See the Junos® OS Network Interfaces.
- Configure OSPF for traffic engineering. See Example: Enabling OSPF Traffic Engineering Support
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.
Step-by-Step Procedure
To configure an OSPF traffic engineering metric for a specific interface used only for traffic engineering:
- 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 - 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
- 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.
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.