Documentation
Name
bgp router peer next-hop-self - send the router ID as next-hop to this peer
Synopsis
next-hop-self
Description
This command configures a router to replace the next-hop of routes received from the specified peer by its own router ID when these routes are redistributed. This is useful to distribute routes from an external peer that has an eBGP session over a static route. The next-hop announced by this peer is probably unreachable from the other routers in the domain.
In the following example, router 1.0.0.1 has two peers: 2.0.0.1 is an external peer (in AS2) while 1.0.0.2 is an internal peer. The command next-hop-self instructs router 1.0.0.1 to send routes received from 2.0.0.1 to 1.0.0.2 with a modified next-hop: its own router-ID (1.0.0.1 in this case). Without next-hop-self, the next-hop would not have been modified (it could for example be 2.0.0.1).
bgp router 1.0.0.1
add peer 2 2.0.0.1
peer 2.0.0.1 next-hop-self
add peer 1 1.0.0.2
See also
In place of the router ID, another next-hop value can be configured by using command next-hop.