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.

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.