Specifying the weight added to BGP4+ received routes

The weight that the device adds to received routes can be specified. The following task changes the weight from the default for routes that are received from a specified BGP4+ neighbor.

  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the local-as command to configure the autonomous system number (ASN) in which your device resides.
    device(config-bgp-router)# local-as 65520
  4. Enter the address-family ipv6 unicast command to enter address family IPv6 unicast configuration mode.
    device(config-bgp-router)# address-family ipv6 unicast
  5. Enter the neighbor weight command and specify an ipv6 address and a weight value to specify a weight that the device adds to routes that are received from the specified BGP4+ neighbor.

The following example specifies a weight of 200 that the device adds to routes that are received from the specified BGP4+ neighbor.

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