distance
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.
The options available vary depending on your routing protocol context; that is, on whether you are configuring OSPF or RIP.
[ no ] distance { weight | ospf { external distExt | inter-area disInter | intra-area disIntra } [ external distExt | inter-area distInter | intra-area distIntra ]* }
- distanceWeight applied to OSPF routes
- weightValue assigned to OSPF routes that are added to the IP routing table; a number in the range 1255
- ospfOSPF routes
- distExtDistance for external type 5 and type 7 routes; a number in the range 1255
- disInterDistance for interarea routes; a number in the range 1255
- disIntraDistance for intra-area routes; a number in the range 1255
- *Indicates that one or more parameters can be repeated multiple times in a list in the command line
- weightAdministrative distance assigned to RIP routes added to the IP routing table in the range 0255; default value is 120
Address Family Configuration (RIP), Router Configuration (OSPF or RIP)
Release Information Command introduced before JUNOSe Release 7.1.0.