Reference Guide
Border Gateway Protocol IPv4 (BGPv4) | 225
Use the following command in the CONFIGURATION ROUTER BGP mode to change the default values
of this attribute for all routes received by the router.
Use the
show config command in CONFIGURATION ROUTER BGP mode or the show running-config
bgp
command in EXEC Privilege mode to view BGP configuration.
A more flexible method for manipulating the LOCAL_PREF attribute value is to use a route map.
Use these commands in the following sequence, starting CONFIGURATION mode to change the default
value of the LOCAL_PREF attribute for specific routes.
To view the BGP configuration, use the
show config command in the CONFIGURATION ROUTER BGP
mode. To view a route map configuration, use the
show route-map command in EXEC Privilege mode.
Change NEXT_HOP attribute
You can change how the NEXT_HOP attribute is used.
Use the following command in the CONFIGURATION ROUTER BGP mode to change the how the
NEXT_HOP attribute is used.
Use the
show config command in CONFIGURATION ROUTER BGP mode or the show running-config
bgp
command in EXEC Privilege mode to view BGP configuration.
Command Syntax Command Mode Purpose
bgp default local-preference value CONFIG-ROUTER-
BGP
Change the LOCAL_PREF value.
•
value range: 0 to 4294967295
• Default is 100.
Step Command Syntax Command Mode Purpose
1 route-map map-name [permit |
deny] [sequence-number]
CONFIGURATION Enter the ROUTE-MAP mode and assign a
name to a route map.
2
set local-preference value CONFIG-ROUTE-MAP Change LOCAL_PREF value for routes
meeting the criteria of this route map.
3
exit
CONFIG-ROUTE-MAP Return to the CONFIGURATION mode.
4
router bgp as-number CONFIGURATION Enter the ROUTER BGP mode.
5
neighbor {ip-address |
peer-group-name} route-map
map-name {in | out}
CONFIG-ROUTER-BGP Apply the route map to the neighbor or peer
group’s incoming or outgoing routes.
Command Syntax Command Mode Purpose
neighbor {ip-address |
peer-group-name} next-hop-self
CONFIG-ROUTER-BGP Disable next hop processing and configure the router
as the next hop for a BGP neighbor.










