distance (RIP)

Increases the administrative distance that the RIP router adds to routes.
Syntax
distance num
no distance num
Command Default

The default RIP administrative distance is 120.

Parameters
num
A decimal value from 1 through 255 that designates the administrative distance for all RIP routes.
Modes

RIP router configuration mode

Usage Guidelines

The no form of the command returns the administrative distance to the default value of 120.

Routes with lower administrative distance are more likely to be used when administrative distance is used for route comparison.

Examples

The following example sets the administrative distance for RIP routes to 140.

device# configure terminal
device(config)# router rip
device(config-rip-router)# distance 140

The following example returns the administrative distance for RIP routes set in the previous example to the default of 120.

device# configure terminal
device(config)# router rip
device(config-rip-router)# no distance 140