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
Command Default

The weight that the device adds to routes that are received from a BGP neighbor is 0.

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

BGP L2VPN EVPN address family configuration mode

Usage Guidelines

The BGP route selection algorithm gives preference to the neighbor route with the highest weight.

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. Use this command in BGP L2VPN EVPN address family configuration mode for BGP L2VPN EVPN configurations.

This command can be configured in BGP L2VPN EVPN address family configuration mode for RUCKUS ICX 7850 and ICX 7550 devices only.

The no form of the command removes the configured weight that the device adds to routes that are received from a specified BGP neighbor.

Examples

The following example changes the weight from the default value of 0 for the specified neighbor in the IPv4 address family.

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

The following example changes the weight from the default value of 0 for the specified neighbor for the BGP L2VPN EVPN address family.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# local-as 656
device(config-bgp-router)# neighbor 10.1.1.35 remote-as 656
device(config-bgp-router)# address-family l2vpn evpn
device(config-bgp-l2vpn-evpn)# neighbor 10.1.1.35 activate
device(config-bgp-l2vpn-evpn)# neighbor 10.1.1.35 send-community both
device(config-bgp-l2vpn-evpn)# neighbor 10.1.1.35 weight 100
Release version Command history
10.0.20 This command can also be configured in BGP L2VPN EVPN address family configuration mode.