bgp local-pref

This command sets the local-preference for advertised routes.

Syntax

bgp local-pref pref-value
no bgp local-pref pref-value

Parameters

pref-value Specifies the local-preference value for advertised routes. Valid values are 1 - 4294967295. Default value is 100.

Defaults

None.

Mode

BGP Router Configuration.

Usage

The higher the local-preference value, the more preferred the route is. The local preference value is only applicable within the local AS.

Example

The following example sets the router local-preference for advertised routes to 150:

System(su-config)->router bgp 65151
System(su-config-bgp)->bgp router-id 151.1.1.9
System(su-config-bgp)->bgp local-pref 150
System(su-config-bgp)->