distance

Syntax

The options available vary depending on your routing protocol context; that is, on whether you are configuring OSPF or RIP.

For OSPF:

[ no ] distance { ospfWeight | ospf { external distExt | inter-area disInter | intra-area disIntra } [ external distExt | inter-area distInter | intra-area distIntra ]* }

For RIP:

[ no ] distance ripWeight

Release Information

Command introduced before JunosE Release 7.1.0.

Description

Defines an administrative distance for RIP or OSPF routes. A distance of 255 prevents the route from being installed in the routing table. The no version either negates a command or restores the command's defaults.

Options

Mode

Address Family Configuration (RIP), Router Configuration (OSPF or RIP)

Related Documentation