Reference Guide

Border Gateway Protocol IPv4 (BGPv4) | 237
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.
You can also use route maps to change this and other BGP attributes. For example, you can include the
following command in a route map to specify the next hop address:
Change WEIGHT attribute
Use the following command in CONFIGURATION ROUTER BGP mode to change the how the WEIGHT
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.
You can also use route maps to change this and other BGP attributes. For example, you can include the
following command in a route map to specify the next hop address:
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.
Command Syntax Command Mode Purpose
set next-hop ip-address CONFIG-ROUTE-MAP Sets the next hop address.
Command Syntax Command Mode Purpose
neighbor {ip-address |
peer-group-name} weight weight
CONFIG-ROUTER-BGP Assign a weight to the neighbor connection.
weight range: 0 to 65535
Default is 0
Command Syntax Command Mode Purpose
set weight weight CONFIG-ROUTE-MAP Sets weight for the route.
weight range: 0 to 65535