You can change the weight of routes that are received from a specified BGP
neighbor.
-
Access global configuration
mode.
device# configure terminal
-
Access BGP configuration mode.
device(config)# router bgp
-
Specify the autonomous system in which your device resides.
device(config-bgp-router)# local-as 1000
-
Access address-family IPv4
unicast configuration mode.
device(config-bgp-router)# address-family ipv4 unicast
-
Specify the neighbor and the
weight that you want to add to routes that are received from that neighbor.
device(config-bgp-ipv4u)# neighbor 10.11.12.13 weight 100
This example shows the neighbor command, the IP address of
the neighbor, the weight keyword, and the weight value of
100.
This example summarizes the commands in this
procedure.
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