This command configures BGP to always set the BGP next hop to the EBGP peer's address, overriding third-party next hops.
ip-address | Specifies a BGP peer as a valid IPv4 address in dotted-quad format or as a valid IPv6 address in colon-separated format. |
groupID | Specifies a BGP peer group. |
None.
BGP Router Configuration.
The next hop of routes received from the EBGP peer is set to the peer‘s address.
Next-hop-peer behavior is disabled by default.
Every prefix that is advertised in BGP contains next hop information. The no neighbor next-hop-peer command resets this neighbor‘s next hop selection to the default next hop behavior of leaving the next hop information for this prefix unchanged.
The following example configures neighbor 200.51.1.1 to set the BGP next hop to the EBGP peer's address:
System(su-config)->router bgp 65151 System(su-config-bgp)->bgp router-id 159.1.1.9 System(su-config-bgp)->neighbor 200.51.1.1 next-hop-peer System(su-config-bgp)->