Concept Guide
DellEMC(conf_router_bgp)# neighbor 10.10.10.1 remote-as 500
DellEMC(conf_router_bgp)# bgp default local-preference 150
DellEMC(conf_router_bgp)# exit
In the above example conguration, the default LOCAL_PREFERENCE value is changed to 150 for all the updates from AS 500 to AS 400.
The default value is 100.
To view the BGP conguration, use the show config command in CONFIGURATION ROUTER BGP mode or the show running-
config bgp command in EXEC Privilege mode.
Conguring the local System or a Dierent System to be the
Next Hop for BGP-Learned Routes
You can congure the local router or a dierent router as the next hop for BGP-learned routes.
To change how the NEXT_HOP attribute is used, enter the rst command. To view the BGP conguration, use the show config
command in CONFIGURATION ROUTER BGP mode or the show running-config bgp command in EXEC Privilege mode.
You can also use route maps to change this and other BGP attributes. For example, you can include the second command in a route map to
specify the next hop address.
• Disable next hop processing and congure the router (route reector) as the next hop for a BGP neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address | peer-group-name} next-hop-self [all]
If you do not use the all keyword, the next hop of only eBGP-learned routes is updated by the route reector. If you use the all
keyword, the next hop of both eBGP- and iBGP-learned routes are updated by the route reector.
• Sets the next hop address.
CONFIG-ROUTE-MAP mode
set next-hop ip-address
If the set next-hop command is applied on the out-bound interface using a route map, it takes precedence over the neighbor
next-hop-self
command.
Changing the WEIGHT Attribute
To change how the WEIGHT attribute is used, enter the rst command. You can also use route maps to change this and other BGP
attributes. For example, you can include the second command in a route map to specify the next hop address.
• Assign a weight to the neighbor connection.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address | peer-group-name} weight weight
weight: the range is from 0 to 65535. The default is 0.
• Sets weight for the route.
CONFIG-ROUTE-MAP mode
set weight weight
weight: the range is from 0 to 65535.
NOTE
: The weight assigned using the set weight command under route map conguration override the weight assigned
using the neighbor weight command.
Border Gateway Protocol (BGP) 225