Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
OSPF User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

definition (Protocols OSPF)

Syntax

content_copy zoom_out_map
definition {
    (spf | strict-spf);
    metric-type (igp-metric | te-metric);
    priority priority;
}

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems name routing-instances name routing-options flex-algorithm],
[edit logical-systems name routing-options flex-algorithm],
[edit logical-systems name tenants name routing-instances name routing-options flex-algorithm],
[edit routing-instances name routing-options flex-algorithm],
[edit routing-options flex-algorithm],
[edit tenants name routing-instances name routing-options flex-algorithm]

Description

Configure the flex-algorithm definition (FAD) and specify the parameters of the definition. OSPFv2 calculates the path based on these specified parameters of the FAD. We recommend configuring flexible algorithm on only a couple of routers to provide redundancy and to avoid conflicts.

Options

spf

Normal SPF of type 0

strict-spf

Strict SPF

metric-type

Specify the metric type that you would like to use in your network.

  • Values:

    • igp-metric— Specify this option to use the IGP route metric instead of the traffic engineering metric.

    • te-metric— Specify this option to use the configured traffic engineering metric instead of the IGP metric if you have enabled traffic engineering on the device.

priority

Specify a priority to the flexible algorithm advertisement. OSPFv2 prioritizes a particular FAD advertisement over another FAD based on your assigned priority.

  • Range: 0 through 255

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing

Release Information

Statement introduced in Junos OS Release 21.1R1.

footer-navigation