
C613-50186-01 Rev B
Command Reference for AR2050V
1419
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
R
OUTE
M
AP
C
OMMANDS
SET
WEIGHT
set weight
Overview
Use this command to add a weight set clause to a route map entry.
The weight value assists in best path selection of BGP routes. It is stored with the
route in the BGP routing table, but is not advertised to peers. When there are
multiple routes with a common destination, the device uses the route with the
highest weight value.
When a route matches the route map entry, the device sets its weight to the
specified value.
Use the
no
variant of this command to remove the set clause.
Syntax
set weight <
weight
>
no set weight [<
weight
>]
Mode
Route-map Configuration
Usage
This command is valid for BGP routes only.
Example
To use entry
3
of the route map called
rmap1
to give matching routes a weight of
60
, use the commands:
awplus#
configure terminal
awplus(config)#
route-map rmap1 permit 3
awplus(config-route-map)#
set weight 60
Related
Commands
Parameter
Description
<
weight
>
<
0-4294967295
>
The weight value.