ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
51
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 1857
EXAMPLE
Console(config-router)#bgp deterministic-med
Console(config-router)#
distance This command sets the administrative distance for a specified external BGP
(eBGP) routes. Use the no form to restore the default setting.
SYNTAX
distance distance ip-address netmask [access-list-name]
no distance ip-address netmask
distance – Administrative distance for an eBGP route.
(Range: 1-255)
ip-address – IP address of a route entry.
netmask – Network mask for the route. This mask identifies the
network address bits used for the associated routing entries.
access-list-name – Name of standard or extended access list.
(Maximum length: 16 characters, no spaces or other special
characters)
COMMAND MODE
Router Configuration
DEFAULT SETTING
None
COMMAND USAGE
The route distance indicates the trustworthiness of a router. The higher
the distance the lower the trust rating. A distance of 255 means that
the routing source cannot be trusted and should be ignored.
This distance set by this command only applies to external BGP paths
routes learned from a neighbor outside of the AS. Use the distance bgp
command to configure the global setting for the distance of eBGP, iBGP,
and local routes.
If an access-list is specified, it will be applied to received routes. If the
received routes are not matched in the access-list or the specified list
does not exist, the original distance value will be used.
EXAMPLE
Console(config-router)#distance 90 10.1.1.64 255.255.255.255
Console(config-router)#
RELATED COMMANDS
distance bgp (1858)