neighbor weight
neighbor
{
ip-address | ipv6-address | peer-group-name
}
weight
numno neighbor
{
ip-address | ipv6-address |
peer-group-name
}
weight
numThe weight that the device adds to routes that are received from a BGP neighbor is 0.
BGP configuration mode
BGP address-family IPv6 unicast configuration mode
BGP L2VPN EVPN address family configuration mode
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.
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. |