C613-50631-01 Rev A Command Reference for IE340 Series 1519
AlliedWare Plus™ Operating System - Version 5.5.3-0.x
BGP AND BGP4+ COMMANDS
NEIGHBOR
WEIGHT
neighbor weight
Overview Use this command to set default weights for routes from this BGP or BGP4+
neighbor.
Use the no variant of this command to remove a weight assignment.
Syntax
neighbor <neighborid> weight <weight>
no neighbor <neighborid> weight [<weight>]
Mode [BGP] Router Configuration or IPv4 Address Family Configuration
Mode [BGP4+] IPv6 Address Family Configuration
Usage notes Use this command to specify a weight value to all routes learned from a BGP or
BGP4+ neighbor. The route with the highest weight gets preference when there
are other routes on the network.
Unlike the local-preference attribute, the weight attribute is relevant only to the
local router.
The weights assigned using the set weight command overrides the weights
assigned using this command.
Parameter Description
<neighborid> {<ip-address>|<ipv6-addr>|<peer-group>}
<ip-address>
Specify the address of an IPv4 BGP neighbor, in
dotted decimal notation A.B.C.D.
<ipv6-addr>
Specify the address of an IPv6 BGP4+ neighbor,
entered in hexadecimal in the format X:X::X:X.
<peer- group>
Enter the name of an existing peer-group.
For information on how to create peer groups,
refer to the neighbor peer-group (add a
neighbor) command, and neighbor route-map
command.
When this parameter is used with this
command, the command applies on all peers
in the specified group.
<weight>
<0-65535> Specifies the weight this command assigns to the route.