29 set weight – CANOGA PERKINS 9175 Command Reference User Manual
Page 359
CanogaOS Command Reference
19-28
Defaults
No set vpnv4 next-hop is specified by default.
Examples
Switch# configure terminal
Switch(config)# route-map rmap1 permit 3
Switch(config-route-map)# set vpnv4 next-hop 6.6.6.6
Related Commands
19.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.
Command Syntax
set weight
WEIGHT
no set weight
Syntax Description
WEIGHT
<0-4294967295> Specifies the weight value.