distance (EIGRP)

To allow the use of two administrative distances (internal and external) for the Enhanced Interior Gateway Routing Protocol (EIGRP) that could provide a better route to a node, use the distance command. To return to the default setting, use the no form of this command.

distance internal-distance external-distance

no distance

Syntax Description

internal-distance
Administrative distance for EIGRP internal routes. Internal routes are routes that are learned from another entity within the same autonomous system (AS). The distance can be a value from 1 to 255. The default value is 90.
external-distance
Administrative distance for EIGRP external routes. External routes are routes for which the best path is learned from a source external to this autonomous system. The distance can be a value from 1 to 255. The default value is 170.

Command Default

internal-distance: 90
external-distance: 170

Command Modes

Address-family configuration mode
Router configuration mode
Router VRF configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

An administrative distance is a rating of the trustworthiness of a routing information source, such as an individual router or a group of routers. Numerically, an administrative distance is an integer from 0 to 255. In general, a higher value indicates a lower trust rating. An administrative distance of 255 means that the routing information source cannot be trusted and should be ignored.

Use the distance command if another protocol is known to provide a better route to a node than was actually learned through the external EIGRP or some internal routes should be preferred by EIGRP.

This command requires the LAN Base Services license.

Examples

This example shows how to set the administrative distance of all EIGRP 1 internal routes to 80 and all EIGRP external routes to 130:

switch(config)# router eigrp 1
switch(config-router)# distance 80 130
 

Related Commands

Command
Description
show ip eigrp
Displays EIGRP information.