ECS4660-28F_Management Guide-R03

Table Of Contents
C
HAPTER
51
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 1858
distance bgp This command sets the administrative distance for external BGP, internal
BGP, and local routes. Use the no form to restore the default settings.
SYNTAX
distance bgp ebgp-distance ibgp-distance local-distance
no distance bgp
ebgp-distance – Administrative distance for eBGP routes.
(Range: 1-255)
ibgp-distance – Administrative distance for iBGP routes.
(Range: 1-255)
local-distance – Administrative distance for local routes.
(Range: 1-255)
COMMAND MODE
Router Configuration
DEFAULT SETTING
eBGP: 20
iBGP: 200
local: 200
COMMAND USAGE
External routes are learned from an external autonomous system, and
internal routes from a peer within the local autonomous system. Local
routes are those configured with the network command as a back door
for the router or for the networks being redistributed from another
routing process.
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 command can be used to indicate that another protocol can
provide a better route to a node than that learned via eBGP, or to
indicate that some internal routes should be preferred by BGP.
Changing the administrative distance of iBGP routes is not
recommended. It may cause an accumulation of routing table
inconsistencies which can break routing to many parts of the network.
EXAMPLE
Console(config-router)#distance bgp 20 200 20
Console(config-router)#
RELATED COMMANDS
distance (1857)