weight (bgp-neighbor-config)

Configures a weight for all routes learned from this BGP neighbor. Weight is used to decide the preferred route when the same route is learned from multiple neighbors. The highest weight is always chosen.

Supported in the following platforms:

  • Wireless Controllers — RFS 4000

  • Service Platforms — NX 95XX, NX 96XX

Syntax

weight <0-65535>

Parameters

weight <0-65535>
weight <0-65535> Specifies a relative weightage for all routes learned from this neighbor
  • <0-65535> – Specify a value from 0 - 65535.

Examples

nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#
weight 10
nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#show context
  bgp neighbor 192.168.13.99
   remote-as 100
   advertisement-interval 100
   peer-group eBGPPeerGrp1
   port 21
   strict-capability-match
   timers connect 20
   timers 20 40
   allowas-in 10
   attribute-unchanged as-path
   capability orf prefix-list both
   default-originate
   description neighbor "This neighbor is an external AS neighbor"
   disable-connected-check
   dont-capability-negotiate
   ebgp-multihop 20
   enforce-multihop
   local-as 20 no-prepend
   maximum-prefix 400 50 warning-only
   next-hop-self
   override-capability
   passive
   password neighbor eBGPneighbor@300
   remove-private-as
   route-server-client
   send-community both
   update-source 192.168.13.1
   weight 10
nx9500-6C8809(config-profile testNX9000-router-bgp-neighbor-192.168.13.99)#

Related Commands

no (bgp-neighbor-config) Reverts to default value