set local-preference

Use this command to specify the local preference to be set when all match clauses in the route map match.

Syntax

set local-preference value
no set local-preference value

Parameters

value Specifies the local preference value for advertised routes to be set when all match clauses in the route map match. Valid values are 1 - 4294967295.

Defaults

None.

Mode

BGP route map configuration.

Usage

The no set local-preference command removes the specified local preference set clause from the route map.

Example

This example shows how to set the local preference to 100, if all match clauses in the bgprm1 route map match:

System(su)->configure
System(su-config)->route-map bgp bgprm1 permit
System(su-config-route-map-bgp)->set local-preference 100
System(su-config-route-map-bgp)->