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 > Setting the Administrative Distance for a Route
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...
 

Related Documentation

  • IP Routing Information Tables Overview
  • Monitoring IP Protocols
  • Monitoring the Current State of IP Routing Tables
  • Monitoring the Status of IP Static Routes in the Routing Table
  • distance
  • distance ip
 

Setting the Administrative Distance for a Route

The administrative distance is an integer that is associated with each route known to a router. The distance represents how reliable the source of the route is considered to be. A lower value is preferred over a higher value. An administrative distance of 255 indicates no confidence in the source; routes with this distance are not installed in the routing table.

Table 1 lists the default distance for each type of source from which a route can be learned.

Table 1: Default Administrative Distances for Route Sources

Route Source

Default Distance

Connected interface

0

Static route

1

Internal access route

2

Access route

3

External BGP

20

OSPF

110

IS-IS

115

RIP

120

Internal BGP

200

Unknown

255

If the IP routing table contains several routes to the same prefix—for example, an OSPF route and a RIP route—the route with the lowest administrative distance is used for forwarding.

To set the administrative distance for BGP routes, see JunosE BGP and MPLS Configuration Guide.

You can set the administrative distance for RIP, IS-IS, and OSPF using the distance and distance ip commands.

To set an administrative distance:

  • For RIP and OSPF, issue the distance command in Router Configuration mode.
    host1(config-router)#distance 100

    The range for administrative distance is 0–255. The default value is 120 for RIP routes and 110 for OSPF routes. You can use the no version to restore the default value.

  • For IS-IS, issue the distance ip command in Router Configuration mode.
    host1(config-router)#distance 80 ip

    The range for administrative distance is 1–255. The default value is 115 for IS-IS routes. You can use the no version to restore the default value.

 

Related Documentation

  • IP Routing Information Tables Overview
  • Monitoring IP Protocols
  • Monitoring the Current State of IP Routing Tables
  • Monitoring the Status of IP Static Routes in the Routing Table
  • distance
  • distance ip
 

Published: 2012-06-20

 
  • 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