Juniper Networks
Log in
|
How to Buy
|
Contact Us
|
United States (Change)
Choose Country
Close

Choose Country

North America

  • United States

Europe

  • Deutschland - Germany
  • España - Spain
  • France
  • Italia - Italy
  • Россия - Russia
  • United Kingdom

Asia Pacific

  • Asean Region (Vietnam, Indonesia, Singapore, Malaysia)
  • Australia
  • 中国 - China
  • India
  • 日本 - Japan
  • 대한민국 - Korea
  • 台灣 - Taiwan
Solutions
Products & Services
Company
Partners
Support
Education
Community
Security Intelligence Center

Technical Documentation

Support
Technical Documentation
Content Explorer New
 
Enterprise MIBs
 
EOL Documentation
 
Feature Explorer Login required New
 
File Format Help
 
Glossary
 
Portable Libraries
 
 
Home > Support > Technical Documentation > JunosE Software > distance
Print
Rate and give feedback:  Feedback Received. Thank You!
Rate and give feedback: 
Close
This document helped resolve my issue.  Yes No

Additional Comments

800 characters remaining

May we contact you if necessary?

Name:  
E-mail: 
Submitting...

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

  • distance—Weight applied to OSPF routes
  • ospfWeight—Value assigned to OSPF routes that are added to the IP routing table; a number in the range 1–255
  • ospf—OSPF routes
  • distExt—Distance for external type 5 and type 7 routes; a number in the range 1–255
  • disInter—Distance for interarea routes; a number in the range 1–255
  • disIntra—Distance for intra-area routes; a number in the range 1–255
  • *—Indicates that one or more parameters can be repeated multiple times in a list in the command line
  • ripWeight—Administrative distance assigned to RIP routes added to the IP routing table in the range 0–255; default value is 120

Mode

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

Published: 2012-06-28

 
  • About Juniper
  • Investor Relations
  • Press Releases
  • Newsletters
  • Juniper Offices
  • Green Networking
  • Resources
  • How to Buy
  • Partner Locator
  • Image Library
  • Visio Templates
  • Security Center
  • Community
  • Forums
  • Blogs
  • Junos Central
  • Social Media
  • Developers
  • Support
  • Technical Documentation
  • Knowledge Base (KB)
  • Software Downloads
  • Product Licensing
  • Contact Support
Site Map / RSS Feeds / Careers / Accessibility / Feedback / Privacy & Policy / Legal Notices
Copyright© 1999-2012 Juniper Networks, Inc. All rights reserved.
Help
|
My Account
|
Log Out