29 set weight – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 584
CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 584 of 855
28.28.1.3 Command
Mode
Route-map mode
28.28.1.4 Defaults
No set vpnv4 next-hop is specified by default.
28.28.1.5 Examples
Switch# configure terminal
Switch(config)# route-map rmap1 permit 3
Switch(config-route-map)# set vpnv4 next-hop 6.6.6.6
28.28.1.6 Related
Commands
28.29 set weight
Use this command to set weights for the routing table.
Use the no parameter with this command to delete an entry.
The weight value is used to assist in best path selection. It is assigned locally to a router. When
there are several routes with a common destination, the routes with a higher weight value are
preferred.
To use the set weight command, you must first have a match clause. Match and set commands
set the conditions for redistributing routes from one routing protocol to another. The match
command specifies the match criteria under which redistribution is allowed for the current
route-map. The set command specifies the set redistribution actions to be performed, if the
match criteria are met
match as-path 10
set weight 400
In the above configuration, all routes that apply to access-list 10 will have the weight set at 400.
If the packets do not match any of the defined criteria, they are routed through the normal
routing process.
Note:
This command is valid for BGP only.