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.
Default | Not enabled |
Format | neighbor ip-address next-hop-self |
Mode | IPv4 VRF Address Family Config |
Parameter | Description |
---|---|
ip-address | The neighbor's IP address. |