distance

To enable the administrative distance (that is, the metric to reach destination) of the routing protocol and set the administrative distance value, use the command distance in RIP Router Configuration Mode. The no form of this command disables the administrative distance.

distance

distance { <1-255> } { [route-map } { <name(1-20)>] }

no distance

no distance { [route-map } { <name(1-20)>] }

Parameters

Parameter Type Description
<1-255> Integer Enter a value for the administrative distance. The distance value (i.e. the preference value) ranges between 1 and 255. The default is 121.

This distance value will not be used for distribute list. The administrative distance can be enabled for only one route map. The distance should be disabled for the already assigned route map, if distance needs to be enabled for another route map.

route-map   Enter to configure the name of the Route Map for which the distance value should be enabled and set
<name(1-20)>   Enter a name for the Route Map for which the distance value should be enabled and set. This value is a string with maximum string of 20.

Mode

RIP Router Configuration Mode

Default

121

Examples

iS5comm(config)# router rip

is5comm(config-router)# distance 10 route-map rmap-test