neighbor weight
See "Access Lists" on page 83 for more information about using access lists.
Configuring the Local-Pref Attribute
The local-pref attribute specifies the preferred path among multiple paths to the same
destination. The preferred path is the one with the higher preference value. Local
preference is used only within an AS, to select an exit point.
To configure the local preference of a BGP path, you can do one of the following:
results of the new policy, you must use the clear ip bgp peer-group command
to perform a hard clear or outbound soft clear of the peer group. You cannot
merely perform a hard clear or outbound soft clear for individual peer group
members because that causes BGP to resend only the contents of the Adj-RIBs-Out
table.
Use the no version to remove the filter list.
See neighbor filter-list.
Use to assign a weight to a neighbor connection.
All routes learned from this neighbor will have the assigned weight initially.
The route with the highest weight will be chosen as the preferred route when
multiple routes are available to a particular network.
The weights assigned with the set weight commands in a route map override
the weights assigned with the neighbor weight and neighbor filter-list commands.
If you specify a BGP peer group by using the peerGroupName argument, all the
members of the peer group inherit the characteristic configured with this
command unless it is overridden for a specific peer.
New policy values are applied to all routes that are sent (outbound policy) or
received (inbound policy) after you issue the command.
To apply the new policy to routes that are already present in the BGP routing
table, you must use the clear ip bgp command to perform a soft clear or hard
clear of the current BGP session.
Behavior is different for outbound policies configured for peer groups for which
you have enabled Adj-RIBs-Out. If you change the outbound policy for such a
peer group and want to fill the Adj-RIBs-Out table for that peer group with the
results of the new policy, you must use the clear ip bgp peer-group command
to perform a hard clear or outbound soft clear of the peer group. You cannot
merely perform a hard clear or outbound soft clear for individual peer group
members because that causes BGP to resend only the contents of the Adj-RIBs-Out
table.
Use the no version to remove the weight assignment.
See neighbor weight.
Use the bgp default local-preference command to set the local-preference
attribute.
Chapter 1: Configuring BGP Routing
Selecting the Best Path
115
Need help?
Do you have a question about the BGP - CONFIGURATION GUIDE V 11.1.X and is the answer not in the manual?