Reference Guide
Border Gateway Protocol | 165
Use the show config command in the CONFIGURATION ROUTER BGP mode to view the nondefault
values.
Change LOCAL_PREFERENCE attribute
In FTOS, you can change the value of the LOCAL_PREFERENCE attribute.
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.
bgp bestpath med {confed |
missing-as-best}
CONFIG-ROUTER-
BGP
Change the bestpath MED selection to one of the
following:
confed: Chooses the bestpath MED comparison of
paths learned from BGP confederations.
missing-as-best: Treat a path missing an MED as
the most preferred one
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










