# BGP Next Hop Self

**URL:** <https://forum.networklessons.com/t/bgp-next-hop-self/1248>\
**Category:** Lessons Discussion\
**Created:** [December 29, 2016, 5:51pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248 "2016-12-29T17:51:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [December 29, 2016, 5:51pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/1 "2016-12-29T17:51:59Z")

</div>

This topic is to discuss the following lesson:

> **[BGP Next Hop Self](https://networklessons.com/bgp/bgp-next-hop-self)**
>
> When you advertise something in iBGP then the next hop IP address doesn't change. We can change this with the next-hop-self command.

---

<div class="post-metadata">

**Author:** ![ammaralmhdawi](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@ammaralmhdawi](https://forum.networklessons.com/u/ammaralmhdawi)\
**Post date:** [June 24, 2015, 6:50pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/2 "2015-06-24T18:50:40Z")

</div>

Hi Rene,  
Thanks a lot for explaining the next hop self. That was very detailed. I really appreciate it Sir. Also i have a question, what rental lab racks do you recommend? i know there are a lot but what you think is the best and the cheapest?  
Thanks

Ammar,  
CCIE R&S - in progress

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [June 24, 2015, 8:34pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/3 "2015-06-24T20:34:57Z")

</div>

Hi Ammar,

Hmm the first thing I would look for is what topology they support. If you use the INE workbooks, make sure the rack rental is cabled for their topology AND has all the startup-configs.

Also if possible, check if they are located close to you…a high delay can be annoying since the console will be a bit slow.

Rene

---

<div class="post-metadata">

**Author:** ![ammaralmhdawi](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/2bfe46/32.png) [@ammaralmhdawi](https://forum.networklessons.com/u/ammaralmhdawi)\
**Post date:** [June 24, 2015, 8:51pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/4 "2015-06-24T20:51:04Z")

</div>

Rene,  
Thanks for you advice. Yes, i will start looking soon. As you know written is not interesting as the lab study. I am focusing now on the written to pass it so i can be fully prepared for the lab. Thanks

Ammar,  
CCIE R&S - in progress

---

<div class="post-metadata">

**Author:** ![hamoodrehman87](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@hamoodrehman87](https://forum.networklessons.com/u/hamoodrehman87)\
**Post date:** [July 7, 2015, 7:54pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/5 "2015-07-07T19:54:33Z")

</div>

Rene,  
Great lesson however, I have question. I tried the lab in GNS3 when I make R2 NEXTHOP for R1 and R3. I can see R3 learns about 3.3.3.0/24 network from R2 and it also installs in BGP table.  
When I do “sh ip route bgp” I can see 3.3.3.0/24 with next hop of 192.168.12.2.  
When I ping from R3 it is not ping-able. As soon as I advertized 192.168.23.0 and 192.168.12.0 on R2 it starts pinging. Hope I am not missing any key stuff from the lesson.  
Please advice.  
Thanks  
Hamood

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [July 7, 2015, 8:11pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/6 "2015-07-07T20:11:04Z")

</div>

Hi Hamood,

R1 will know how to reach 3.3.3.3 but there will be one problem left. R3 doesn’t have a clue how to reach 192.168.12.0 /24.

This is something you’ll have to fix by advertising 192.168.12.0 /24 in BGP on R2.

Rene

---

<div class="post-metadata">

**Author:** ![hamoodrehman87](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/h/50afbb/32.png) [@hamoodrehman87](https://forum.networklessons.com/u/hamoodrehman87)\
**Post date:** [July 7, 2015, 9:08pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/7 "2015-07-07T21:08:45Z")

</div>

Thank you Rene, I just wanted to confirm.

Hamood

---

<div class="post-metadata">

**Author:** ![shinuvarghesea](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/b487fb/32.png) [@shinuvarghesea](https://forum.networklessons.com/u/shinuvarghesea)\
**Post date:** [July 25, 2015, 9:28am UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/8 "2015-07-25T09:28:14Z")

</div>

Hi Rene

Can we install a static route for network 192.168.23.0 on R1 with next hop R2 to reach network 3..3.3.0/24

Will this work?

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [July 26, 2015, 4:56pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/9 "2015-07-26T16:56:26Z")

</div>

Hi Shinu,

It will work, with static routes you can make anything work but it’s not a really scalable solution…you always have to configure things manually.

Rene

---

<div class="post-metadata">

**Author:** ![aaronbinnersley](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@aaronbinnersley](https://forum.networklessons.com/u/aaronbinnersley)\
**Post date:** [July 31, 2015, 1:43pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/10 "2015-07-31T13:43:03Z")

</div>

issue with BGP

bgp router can ping interface 126.89.120.106 but unable to ping 126.89.120.105 which is on the same router ?

any ideas !

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [July 31, 2015, 3:00pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/11 "2015-07-31T15:00:41Z")

</div>

Hi Aaron,

What do you mean exactly? 🙂 Are these two /32 addresses?

Rene

---

<div class="post-metadata">

**Author:** ![aaronbinnersley](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/ecccb3/32.png) [@aaronbinnersley](https://forum.networklessons.com/u/aaronbinnersley)\
**Post date:** [July 31, 2015, 3:06pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/12 "2015-07-31T15:06:23Z")

</div>

/ 27  
when run sh ip route 126.89.120.106 , it has a route to the host but still unable to ping

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [July 31, 2015, 3:08pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/13 "2015-07-31T15:08:31Z")

</div>

See if the router on the other side knows how to reach your network. It’s possible that you can send your packets one way but that they can’t return.

---

<div class="post-metadata">

**Author:** ![zkallab](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/z/b782af/32.png) [@zkallab](https://forum.networklessons.com/u/zkallab)\
**Post date:** [September 3, 2015, 3:31am UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/14 "2015-09-03T03:31:25Z")

</div>

Rene, can you explain this comment above in bit more detail:  
“We use iBGP between R1/R2 and eBGP between R2/R3”

in earlier lessons you said ibgp is eigrp/ospf. but in the config above r1/r2 are directly connected with only bgp configured.  
so you are treating bgp as an ibgp then?  
or because they are in the same AS, you have to call it internal vs external.

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [September 3, 2015, 9:15am UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/15 "2015-09-03T09:15:24Z")

</div>

Hi Ziad,

iBGP is when you run BGP when using the same AS number, eBGP is when we use different AS numbers.

When I refer to OSPF/RIP/EIGRP I talk about IGPs (Interior Gateway Protocols). Don’t mix this up with iBGP 🙂

Rene

---

<div class="post-metadata">

**Author:** ![zkallab](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/z/b782af/32.png) [@zkallab](https://forum.networklessons.com/u/zkallab)\
**Post date:** [September 4, 2015, 7:36am UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/16 "2015-09-04T07:36:19Z")

</div>

Rene, thanks for the above and i thought i was good to go until i read the local pref section and you mentioned: “I’ll configure OSPF within AS2 to prepare it for IBGP.”  
and now i am confused again! why are you calling OSPF IBGP? when it should be IGP.

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [September 4, 2015, 2:40pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/17 "2015-09-04T14:40:55Z")

</div>

Hi Ziad,

When we use IBGP, we typically use loopback interfaces to establish the IBGP neighbor adjacency. To advertise the loopbacks, we use an IGP like OSPF.

Take a look at this lesson, it explains everything:

> **[Internal BGP (Border Gateway Protocol) explained](https://networklessons.com/bgp/internal-bgp-border-gateway-protocol-explained)**
>
> This lesson explains why we need Internal BGP, what IBGP split horizon is about and how to configure IBGP on Cisco IOS Routers.

Rene

---

<div class="post-metadata">

**Author:** ![ganeshdvr](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/71e660/32.png) [@ganeshdvr](https://forum.networklessons.com/u/ganeshdvr)\
**Post date:** [September 27, 2015, 7:41pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/18 "2015-09-27T19:41:52Z")

</div>

Hi Rene,

I see BGP doesn’t change the next hop ip for the routes it advertise and the above mentioned solutions would work around the reach-ability issues if needed?  
Can you please explain what could be the reason for such an option in design of BGP protocol by default.

Thanks  
ganesh

---

<div class="post-metadata">

**Author:** ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)\
**Post date:** [September 28, 2015, 10:30am UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/19 "2015-09-28T10:30:47Z")

</div>

Hi Ganesh,

Good question, i’m not sure why this is the default behavior. I’ll see if I can find something.

Rene

---

<div class="post-metadata">

**Author:** ![jorotz](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/3ec8ea/32.png) [@jorotz](https://forum.networklessons.com/u/jorotz)\
**Post date:** [October 31, 2015, 3:05pm UTC](https://forum.networklessons.com/t/bgp-next-hop-self/1248/20 "2015-10-31T15:05:22Z")

</div>

hey Rene

when i configure the R2 as a next-hop-self , I can see the R1 has 192.168.12.2 as \*\> in its routing table but I cant ping the 3.3.3.3 network .but I when advertise the networks in R2 as you explained the first example ,I can ping it easily . Do you have any idea about this problem ?

[Next page](https://forum.networklessons.com/t/bgp-next-hop-self/1248.md?page=2)
