5000 Series Layer 2/3 Managed Data Center Switch CLI Reference Guide
1070
neighbor {ipv4-address | ipv6-address} next-hop-self
no neighbor {ipv4-address | ipv6-address} next-hop-self
Parameters
ipv4-address
|
ipv6-address
The neighbor’s IPv4 or IPv6 address.
Default
The default is not Enabled.
Command Mode
BGP Router Config
11-68 neighbor next-hop-self (IPv4 VRF Address Family Config)
This command configures BGP to set the next hop attribute to a local IP address when advertising a route
to an internal peer. Normally, BGP would retain the next hop attribute received from the external peer.
When the next hop attribute in routes from external peers is retained, internal peers must have a route to
the external peer’s IP address. This is commonly done by configuring the IGP on the border router to
advertise the external (or DMZ) subnet. The next-hop-self option eliminates the need to advertise the
external subnet in the IGP.
Use the
no
command to disable the peer as the next hop for the locally originated paths. After executing
this command, the BGP peer must be reset before the changes take effect.
neighbor ip-address next-hop-self
no neighbor ip-address next-hop-self
Parameters
ip-address
The neighbor’s IP address.
Default
The default is Disabled.
Command Mode
IPv4 VRF Address Family Config
11-69 neighbor next-hop-self (IPv6 Address Family Config)