Users Guide

Layer 3 Routing Commands 1442
set local-preference
To set the local preference of specific BGP routes, use the set local-preference
command in route-map configuration mode. To remove a set command from
a route map, use the no form of this command.
Syntax
set local-preference value
no set local-preference value
valueA local preference value, from 0 to 4,294,967,295 (any 32 bit
integer).
Default Configuration
There is no default configuration for this command.
Command Mode
Route Map Configuration
User Guidelines
The local preference is the first attribute used to compare BGP routes.
Setting the local preference can influence which route BGP selects as the best
route. When used in conjunction with a match as-path or match ip-address
command, this command can be used to prefer routes that transit certain ASs
or to make the local router a more preferred exit point to certain destinations.
Command History
Introduced in version 6.2.0.1 firmware.
Example
console(route-map)#set local-preference 6432
set metric
To set the metric of a route, use the set metric command. To remove a set
command from a route map, use the no form of this command.