neighbor weight

Specifies a weight that the device will add to routes that are received from the specified BGP neighbor.
Syntax
neighbor { ip-address | ipv6-address | peer-group-name } weight num
no neighbor { ip-address | ipv6-address | peer-group-name } weight num
Parameters
ip-address
Specifies the IPv4 address of the neighbor.
ipv6-address
Specifies the IPv6 address of the neighbor
peer-group-name
Specifies the name of the peer group.
num
Specifies a value. Valid values range from 1 through 65535. The default is 0.
Modes

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

Usage Guidelines

BGP prefers larger weights over smaller weights.

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

Examples

The following example changes the weight from the default.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 10.11.12.13 weight 100