# Internal BGP (Border Gateway Protocol) explained

**URL:** <https://forum.networklessons.com/t/internal-bgp-border-gateway-protocol-explained/1129>\
**Category:** Lessons Discussion\
**Created:** [December 27, 2016, 4:13pm UTC](https://forum.networklessons.com/t/internal-bgp-border-gateway-protocol-explained/1129 "2016-12-27T16:13:05Z")\
**Posts on this page:** 1\
**Showing post:** 152

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [May 9, 2019, 1:22pm UTC](https://forum.networklessons.com/t/internal-bgp-border-gateway-protocol-explained/1129/152 "2019-05-09T13:22:54Z")

</div>

Hello Harshit

> [@harshitsinghrana1188](#):
>
> Q.1\> it is possible that i can run ospf in AS 2 routers and in end point where i will do redistribution with both endpoint routers which is the member of different AS

Yes it is possible to do this. However, it is not a good idea. This is why we have Autonomous Systems, so that all the routing information concerning internal routing can be dealt with using an IGP like OSPF. You don’t want to share the information in one AS with another AS using an IGP. The routing tables just get too large! That’s why BGP is there, to take care of inter AS routing. So to answer your question, yes you can do it, but it’s not a good idea to do so.

> [@harshitsinghrana1188](#):
>
> Q.2\> why firstly you have used OSPF and then You used IBGP ? why we can’t directly use IBGP instead of OSPF

This is a question that is often asked. Why not use iBGP to route internally and forget about IGPs? Take a look at this post, I hope you find your answer there.

> [@Which protocol should use BGP vs OSPF?](https://forum.networklessons.com/t/which-protocol-should-use-bgp-vs-ospf/1398/2):
>
> Hello David Right of the bat I can tell you that OSPF would be better to use than BGP. Actually, any internal gateway protocol such as OSPF or EIGRP would be preferable to BGP. Why then does Microsoft and other large companies use BGP? It all has to do with size. Here’s a little bit of an explanation: As you know, BGP is used on the Internet and it is very good at routing BETWEEN autonomous systems. (An autonomous system is a network or group of networks under a common administration and …

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/internal-bgp-border-gateway-protocol-explained/1129)._
