Change the Weight Added to Receive BGP4+ Routes

You can change the weight of routes that are received from a specified BGP4+ neighbor.
  1. Access global configuration mode.
    device# configure terminal
  2. Access BGP configuration mode.
    device(config)# router bgp
  3. Specify autonomous system in which your device resides.
    device(config-bgp-router)# local-as 65520
  4. Access address family IPv6 unicast configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  5. Specify the neighbor and the weight that you want to add to routes that are received from that neighbor.
    device(config-bgp-ipv6u)# neighbor 2001:db8:e0ff:783a::4 weight 200
    This examples shows the neighbor command, the IPv6 address of the neighbor, the weight keyword, and the weight value of 200.

The following example summarizes the commands in this procedure.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 65520
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# neighbor 2001:db8:e0ff:783a::4 weight 200