BGP Attributes: Weight and Local Preference:
.
Usually if we want to modify some attributes for best path selection, we will mosify one of these: WEIGHT, LOC_PREF, AS_PATH
Influencing BGP Weight:
It is not actually an attribute since it is not part of a bgp packet
It was previously Cisco proprietary (now used by others like Arista as well) and configured locally on a router
It is locally significant to the router and is not advertised to any other BGP neighbor as part of BGP Update
It can be used to influence the choice of outbound routes
It is set on inbound routes (.ie. for updates coming into the router, a weight is set)