Assigns a locally-used weight to a neighbor connection for the route selection algorithm.
remoteaddr | Specifies the IPv4 or IPv6 address of a BGP neighbor. |
all | Specifies all IPv4 and IPv6 neighbors. |
weight | Specifies a BGP neighbor weight. |
By default, the weight is 1.
All routes learned from this peer are assigned the same weight. The route with the highest weight is more preferable when multiple routes are available to the same network. The range is 0 to 65,535.
higher weight
higher local preference
shortest length (shortest AS path)
lowest origin code
lowest MED
route from external peer
lowest cost to Next Hop
lowest routerID
This command applies to the current VR or VRF context.
The following command assigns a locally used weight of 10 to a neighbor connection:
configure bgp neighbor 192.168.1.5 weight 10
This command was first available in ExtremeXOS 10.1.
This command required a specific license in ExtremeXOS 11.1.
Support for IPv6 was added in ExtremeXOS 12.6 BGP.
This command is available on platforms that support the appropriate license. For complete information about software licensing, including how to obtain and upgrade your license and which licenses support the BGP feature, see the Feature License Requirements document.