distance bgp — router, BGP
external-distance internal-distance local-distanceno distance bgp
Administrative distance for BGP
External distance, 20; internal distance, 200; local distance, 200
distance bgp 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.
external-distance applies to external BGP routes (routes learned from a peer outside your AS);
internal-distance applies to internal BGP routes (routes learned from a peer within your AS);
local-distance applies to routes added with the
network command. It’s usually not a good idea to change BGP’s routing distances.
distance bgp command is often used to change the internal distance so that its value is equal to the external distance, as in the following example:
router bgp 101 distance bgp 20 20 200