O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

distance — router

Synopsis

distance distance [address mask] [access-list]
no distance distance [address mask] [access-list]

Configures

Administrative distance

Default

Depends on the protocol

Description

The distance command allows you to change the trustworthiness of a route’s source relative to other routing protocols. The lower the distance, the more the route’s source is trusted. Routes with a distance of 255 are not added to the route table. Chapter 8 discusses how routing protocols use administrative distances and lists the default value for each protocol.

distance

The administrative distance to be assigned to this protocol (or to routes selected by the other arguments to this command). Administrative distance must be a value from 1 to 255.

address mask

Optional. If these arguments are present, the administrative distance applies only to routes whose destinations match this address/mask pair.

access-list

Optional. If this argument is present, the administrative distance applies only to routes that match the given access list.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required