Users Guide
4 Enter ROUTER BGP mode.
CONFIGURATION mode
router bgp as-number
5 Apply the route map to the neighbor or peer group’s incoming or outgoing routes.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | peer-group-name} route-map map-name {in | out}
To view the BGP conguration, use the show config command in CONFIGURATION ROUTER BGP mode. To view a route map
conguration, use the show route-map command in EXEC Privilege mode.
Changing the NEXT_HOP Attribute
You can change how the NEXT_HOP attribute is used.
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 as the next hop for a BGP neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | peer-group-name} next-hop-self
• Sets the next hop address.
CONFIG-ROUTE-MAP mode
set next-hop ip-address
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 | 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.
To view BGP conguration, use the show config command in CONFIGURATION ROUTER BGP mode or the show running-
config bgp command in EXEC Privilege mode.
Border Gateway Protocol IPv4 (BGPv4)
193