Configuring Default Local Preference

This topic describes the Cisco IOS command that is required to configure default BGP local preference on a Cisco router.

Configuring Default Local Preference

router(config-router)#

bgp default local-preference preference

• This command changes the default local preference value.

• The specified value is applied to all routes that do not have local preference set (EBGP routes).

• The default value of this parameter is 100, allowing you to specify more desirable or less desirable routers.

You can use the bgp default local-preference command in BGP configuration mode to change the default value of local preference. The new default value applies only to locally originated routes and those that are received from external neighbors.

Setting a value lower than the default of 100 will result in the router preferring internal paths to external (normally a router would prefer external routes).

Setting a value higher than 100 will result in external paths being preferred to all internal paths (also those with a shorter AS path).

© 2005, Cisco Systems, Inc. Route Selection Using Attributes 4-27

Continue reading here: Proper Return Path Selection

Was this article helpful?

+1 0