
BGP Commands
©2008 Allied Telesis Inc. All rights reserved.
31.90
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
Software Version 5.2.1
neighbor weight
Use this command to set default weights for routes from this neighbor.
Use the
no
parameter with this command to remove a weight assignment.
Syntax
neighbor
<
neighborid
>
weight
<weight>
no neighbor
<
neighborid
>
weight
[
<weight>
]
Mode
Router mode
Usage
Use this command to specify a weight value to all routes learned from a 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.
Examples
Parameter
Description
<
neighborid
>
{
A.B.C.D
|
TAG
}
A.B.C.D
Specifies the address of the BGP neighbor in IPv4 format.
TAG
Name of an existing peer-group. For information on how to
create peer groups, refer to the
neighbor peer-group (adding
a neighbor) command on page 31.71
,
and
neighbor remote-
as command on page 31.75
. When this parameter is used
with a command, the command applies on all peers in the
specified group.
<weight>
<0-65535> Specifies the weight this command assigns to the route.
awplus#
configure terminal
awplus(config)#
router bgp 12
awplus(config-router)#
neighbor 10.10.10.10 weight 60