To specify a preference value for the autonomous system path, use the set local-preference command. To delete an entry, use the no form of this command.
set local-preference number-value
no set local-preference number-value
|
number-value
|
Preference value. Range: 0 to 4294967295. Default: 100.
|
Preference value of 100 by default.
Route-map configuration mode
|
Release
|
Modification
|
|---|---|
|
5.0(3)N1(1)
|
This command was introduced.
|
The preference is sent only to all routers in the local autonomous system.
You must have a match clause (even if it points to a "permit everything" list) if you want to set tags.
Use the route-map global configuration command and the match and set route-map configuration commands to define the conditions for redistributing routes from one routing protocol into another. Each route-map command has a list of match and set commands associated with it. The match commands specify the match criteria—the conditions under which redistribution is allowed for the current route-map command. The set commands specify the set actions—the particular redistribution actions to perform if the criteria enforced by the match commands are met. The no route-map command deletes the route map.
The set route-map configuration commands specify the redistribution set actions to be performed when all the match criteria of a route map are met. When all match criteria are met, all set actions are performed.
You can change the default preference value with the bgp default local-preference command.
This example shows how to set the local preference to 100 for all routes that are included in access list 1:
|
Command
|
Description
|
|---|---|
|
match as-path
|
Matches a BGP autonomous system path access list.
|
|
route-map
|
Defines the conditions for redistributing routes from one routing protocol into another.
|
|
show route-map
|
Displays information about a route map.
|