Specifying the Weight Added to 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 BGP 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 neighbor weight command and specify an IP address and a weight value to specify a weight that the device adds to routes that are received from the specified BGP4 neighbor.
    device(config-bgp-router)# neighbor 10.11.12.13 weight 100

The following example specifies a weight of 100 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)# neighbor 10.11.12.13 weight 100