
C613-50186-01 Rev B
Command Reference for AR2050V
1300
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
BGP
AND
BGP4+ C
OMMANDS
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
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
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.