The device adds weight to routes that are received from BGP neighbors. In the BGP4 path-selection algorithm, routes with larger weights have preference over routes with smaller weights.
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 1000
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# neighbor 10.11.12.13 weight 100
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 1000 device(config-bgp-router)# address-family ipv4 unicast device(config-bgp-ipv4u)# neighbor 10.11.12.13 weight 100