Administrator Guide

Layer 3 Routing Commands 1438
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.
Syntax
set metric value
no set metric 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
This command sets the Multi Exit Discriminator (MED) when used in a BGP
context. When there are multiple peering points between two autonomous
systems (AS), setting the MED on routes advertised by one router can
influence the other AS to send traffic through a specific peer