BGP next hop self configuration example:
[boxads]Today i will discuss bgp next hop self configuration example in cisco router. When any router receive BGP route from eBGP source & forward it any iBGP peer, then BGP normally pass directly connected next hop ip address. To overcome this issue, we use next hop self command in BGP section at the entry point router which router is directly connected to eBGP peer.
neighbor {ip-addr | group-name } next-hop-self
Let’s take an example.
BGP next hop self configuration example Diagram:

In this diagram we look Two ISP connected via eBGP peer & ISP-1 has a internal iBGP peer. Here R1 & R3 use 10.10.10.0/30 network ip, R1 & R2 use 172.16.1.0/30 network ip. Also test purpose we add a loopback ip in R2 router that is 20.20.20.20/24. When ISP-2 Router R2 advertise its network 20.20.20.0/24, next hop ip address will be 172.16.1.2 (its fa0/0 interface of R2 router). ISP-1 Router R1 advertise this network to iBGP peer router R3 with the same 172.16.1.2 next hop attribute. Let’s configure those routers, but won’t change next hop attribute for now.



