home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

protocols ospf distance

Sets the OSPF administrative distance by route type.

set protocols ospf [ process pid ] distance { global global | ospf [ external external | inter-area inter | intra-area intra ] }
delete protocols ospf [ process pid ] distance [ global | ospf [ external | inter-area | intra-area ] ]
show protocols ospf [ process pid ] distance [ global | ospf [ external | inter-area | intra-area ] ]

The default administrative distance for OSPF routes is 110.

process pid
Specifies the PID of an IPv4 OSPF process.
global global
Sets the administrative distance for all routes. The distance ranges from 1 through 255.
external external
Sets the OSPF administrative distance for external routes (routes learned from another protocol by redistribution). The distance ranges from 1 through 255. The default distance is 110.
inter-area inter
Sets the OSPF administrative distance for interarea routes (routes to another area). The distance ranges from 1 through 255. The default is distance 110.
intra-area intra
Sets the OSPF administrative distance for intra-area routes (routes within an area). The distance ranges from 1 through 255. The default distance is 110.

Configuration mode

protocols {
       ospf {
               process pid {
                      distance {
                              global global
                              ospf {
                                     external external
                                     inter-area inter
                                     intra-area intra
                              }
                      }
               }
       }
}

Use this command to set the administrative distance for OSPF routes.

The administrative distance indicates the trustworthiness of a router or group of routers as a source of routing information. In general, as the distance increases, the entity becomes less trusted. An administrative distance of 1 usually represents a directly connected network, and an administrative distance of 255 indicates that the routing source is unreliable or unknown. The administrative distance that is conventionally applied to OSPF is 110.

Use the set form of this command to set the administrative distance.

Use the delete form of this command to restore the default administrative distance, which is 110.

Use the show form of this command to display the administrative distance.