5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1042
internal peers, and BGP routes locally originated. A route with a lower preference value is preferred to a
route with a higher preference value to the same destination. Routes with a preference of 255 may not be
selected as best routes and used for forwarding.
The change to the default BGP distances does not affect existing routes. To apply a distance change to
existing routes, you must force the routes to be deleted from the RIB and relearned, either by resetting
the peers from which the routes are learned or by disabling and re-enabling BGP.
Use the
no
command to set the default route preference value of BGP routes in the router.
distance bgp external-distance internal-distance local-distance
no distance bgp
Parameters
external-distance
The preference value for routes learned from external peers. The range
is 1 to 255.
internal-distance
The preference value for routes learned from internal peers. The range
is 1 to 255.
local-distance
The preference value for locally-originated routes. The range is 1 to 255.
Default
The default is as follows: external – 20, internal – 200, local – 200.
Command Mode
IPv4 VRF Address Family Config
11-29 distance BGP (IPv6 Address Family Config)
Use this command to set the preference, (also known as administrative distance), for eBGP, iBGP, and
locally-originated BGP IPv6 routes. Different distance values can be configured for routes learned from
external peers, routes learned from internal peers, and BGP routes locally originated. A route with a lower
preference value is preferred to a route with a higher preference value to the same destination. Routes
with a preference of 255 may not be selected as best routes and used for fonrvarding.
The change to the default BGP distances does not affect existing routes. To apply a distance change to
existing routes, you must force the routes to be deleted from the RIB and relearned, either by resetting
the peers from which the routes are learned or by disabling and reenabling BGP.
Use the
no
command to set the default route preference value for eBGP, iBGP, and locally-originated
BGP IPv6 routes in the router.
distance bgp external-distance internal-distance local-distance
no distance bgp