Name
distance — router
Synopsis
distancedistance[addressmask][access-list] no distancedistance[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.
-
addressmask 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access