# BGP Synchronization

**URL:** https://forum.networklessons.com/t/bgp-synchronization/1110
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 10:59pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110 "2016-12-26T22:59:19Z")
**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 26, 2016, 10:59pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/1 "2016-12-26T22:59:19Z")

</div>

This topic is to discuss the following lesson:

> **[BGP Synchronization](https://networklessons.com/bgp/bgp-synchronization)**
>
> This lesson explains how BGP synchronization works and why we need(ed) it.

---

<div class="post-metadata">

### Author: ![singhronie](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/s/7c8e57/32.png) [@singhronie](https://forum.networklessons.com/u/singhronie)
#### Post date: [February 24, 2015, 10:13am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/2 "2015-02-24T10:13:34Z")

</div>

Very nice explanation as usual. Please let me know once you have uploaded VRF-lite, Inter VRF-Routing, EVN, NAT64, etc.. on your web. I can’t wait to see those on your web coz I know you will make us understand clearly for sure. 🙂

---

<div class="post-metadata">

### Author: ![ammar.eng100](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/ee7513/32.png) [@ammar.eng100](https://forum.networklessons.com/u/ammar.eng100)
#### Post date: [October 18, 2015, 12:30am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/3 "2015-10-18T00:30:20Z")

</div>

Rene,

That was a very detailed explanation. very straight forward. Thanks 🙂

&nbsp;

Ammar,

---

<div class="post-metadata">

### Author: ![agatyinta](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/76d3ee/32.png) [@agatyinta](https://forum.networklessons.com/u/agatyinta)
#### Post date: [May 12, 2016, 11:35pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/4 "2016-05-12T23:35:03Z")

</div>

clear. thx  
Ahmad

---

<div class="post-metadata">

### Author: ![adave1103](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/3ab097/32.png) [@adave1103](https://forum.networklessons.com/u/adave1103)
#### Post date: [July 19, 2016, 8:35am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/5 "2016-07-19T08:35:42Z")

</div>

Hi Rene, i am confused to understanding this concept. please help.

So what I could figure-out so far is :-

"In a transit AS scenario, Enabling BGP sync made sense. because otherwise our ASBR router will advertise EBGP routes (learned from EBGP neighbor) to other internal routers as well and ultimately may become a transit AS for both EBGP neighbors which we don’t want.

So the rule said if we learn a route from IGP then only we should advertise it to other EBGP neighbor. that means we are only advertising network that we own.  
But now this rule is not needed in today’s scenario. …why ?(please help me in understanding)

---

<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, 2016, 6:18pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/6 "2016-07-26T18:18:41Z")

</div>

Hi Abhishek,

BGP synchronization is an old rule in a time where not all routers within the AS were running IBGP. The problem here is not that we don’t want to become a transit AS, but that R5 is learning a route that it can’t reach (because R3 will drop the traffic).

By enabling synchronization, we will not advertise this network to R5 anymore which might be a better idea compared to advertising something that is unreachable. Only once the route is known in the IGP, we know that R3 will be able to forward the traffic and only then we will advertise the route to R5.

We don’t use this anymore since nowadays, we run IBGP on all our routers if we have a transit AS, or even better…we use MPLS VPN where we only require BGP between the PE routers.

Hope this helps!

Rene

---

<div class="post-metadata">

### Author: ![mhewitt69](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/mhewitt69/32/1932_2.png) [@mhewitt69](https://forum.networklessons.com/u/mhewitt69)
#### Post date: [August 25, 2016, 5:22am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/7 "2016-08-25T05:22:55Z")

</div>

Awesome work Rene!!!

---

<div class="post-metadata">

### Author: ![chriscowboyfann](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/7ab992/32.png) [@chriscowboyfann](https://forum.networklessons.com/u/chriscowboyfann)
#### Post date: [March 31, 2017, 3:48am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/8 "2017-03-31T03:48:10Z")

</div>

Rene,

on router 4 you type a “show ip bgp” and say that the “router will install the OSPF (AD 110) entry for 1.1.1.0/24  
instead of IBGP (AD 200) route”

router 4’s BGP table says that LocPrf is 100. did you mean t6o say ad 100 and not ad110 ? if i have this wrong can you explain what the “LocPrf” as I think that it means the local preference of iBGP AS2

thank you

---

<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: [April 7, 2017, 10:17am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/9 "2017-04-07T10:17:45Z")

</div>

Hi @chriscowboyfann,

I didn’t watch the video again but if I was talking about the AD, it’s 110 for OSPF. If the router has to decide if it wants to use routing information from routing protocol X or Y then it will look for the AD. For example, 1.1.1.0/24 is learned through IBGP and OSPF…t will look at the administrative distance and prefers the lowest value. It will use OSPF since it has an AD of 110, compared to 200 for iBGP.

The local preference is used when the router has learned multiple paths for a network through BGP, and it has to make a decision which path to use. The default local preference value is 100. Here’s an example btw:

> **[BGP Local Preference Attribute](https://networklessons.com/bgp/how-to-configure-bgp-local-preference-attribute)**
>
> BGP Attribute Local Preference is used to change the exit path for an AS. In this lesson, you will learn how to configure local preference.

Rene

---

<div class="post-metadata">

### Author: ![chriscowboyfann](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/c/7ab992/32.png) [@chriscowboyfann](https://forum.networklessons.com/u/chriscowboyfann)
#### Post date: [April 12, 2017, 1:52am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/10 "2017-04-12T01:52:51Z")

</div>

thank you Rene. I appreciate it

---

<div class="post-metadata">

### Author: ![clementduval2000](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/clementduval2000/32/328_2.png) [@clementduval2000](https://forum.networklessons.com/u/clementduval2000)
#### Post date: [June 12, 2017, 11:50am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/11 "2017-06-12T11:50:51Z")

</div>

Hey Rene, I don’t quite understand how your BGP table can show RIB Failure in sub-section “BGP synchronization disabled” for R4’s route to 1.1.1.0, you have no IGP providing route to it, how can it be in RIB failure ?

---

<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 6, 2017, 1:50pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/12 "2017-07-06T13:50:04Z")

</div>

Hi @clementduval2000,

In this output, it shouldn’t show the entry as a RIB failure. Probably something went wrong when I edited this post. Just fixed it so thanks for letting me know!

---

<div class="post-metadata">

### Author: ![ishanimp.patel](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/ishanimp.patel/32/807_2.png) [@ishanimp.patel](https://forum.networklessons.com/u/ishanimp.patel)
#### Post date: [February 26, 2018, 6:00pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/13 "2018-02-26T18:00:07Z")

</div>

Hi Rene,

I have a very basic doubt. We configure the sync rule under the BGP configuration, so in this case, how would it know that there is a routing table entry for IGP route. Is the check for routing table entry performed by the router itself or the individual process such as BGP, OSPF or EIGRP.

Thank you!

---

<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: [March 5, 2018, 3:30pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/14 "2018-03-05T15:30:20Z")

</div>

Hello Ishan

When the sync rule is enabled, the route will not be installed in the routing table unless the IGP being used has learned about it.

It is not looking for the route in the routing table, since it will never be there because this is a condition **for installing a route into the routing table**. It will only be installed if this condition is met.

What the sync rule does is cause the router to first check if the route is “known” by an IGP. What this means is it looks in the topology table in the case of EIGRP, or the OSPF Link State Database to see if the IGP has a record of this route.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![anon84396266](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/aca169/32.png) [@anon84396266](https://forum.networklessons.com/u/anon84396266)
#### Post date: [March 15, 2018, 6:26pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/15 "2018-03-15T18:26:07Z")

</div>

Can you please update the IP address in the diagram, please

---

<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: [March 16, 2018, 10:01am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/16 "2018-03-16T10:01:56Z")

</div>

Hello,

Can you be more specific? If there is an error in the lesson we’d like to have it fixed. Please let us know, thanks!

Laz

---

<div class="post-metadata">

### Author: ![anon84396266](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/aca169/32.png) [@anon84396266](https://forum.networklessons.com/u/anon84396266)
#### Post date: [March 16, 2018, 1:21pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/17 "2018-03-16T13:21:01Z")

</div>

Can you add the subnet details on the diagram , I mean which interface is using whcih IP address so its easy to understand from the config?

---

<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: [March 19, 2018, 1:25pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/18 "2018-03-19T13:25:42Z")

</div>

Hello,

Not sure what happened here but there should have been a diagram with subnets / IP addresses. Just fixed it, it’s there now.

Thanks for letting us know!

Rene

---

<div class="post-metadata">

### Author: ![rafal.kawalec00](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rafal.kawalec00](https://forum.networklessons.com/u/rafal.kawalec00)
#### Post date: [March 25, 2018, 2:59pm UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/19 "2018-03-25T14:59:01Z")

</div>

Very nice article. However redistribution BGP routes/prefixes to IGP should be avoided as possible all the time.

---

<div class="post-metadata">

### Author: ![syncope988](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/syncope988/32/1385_2.png) [@syncope988](https://forum.networklessons.com/u/syncope988)
#### Post date: [January 14, 2019, 5:19am UTC](https://forum.networklessons.com/t/bgp-synchronization/1110/20 "2019-01-14T05:19:46Z")

</div>

hi René and staff,  
i am studying this lesson  
What i understand is : with sync configured in our PE routers in AS transit, we prevent to advertise NLRI that are unreachable from others external AS. Is it right ? (reading the old posts seems to confirm this is right)  
It was a configuration used in the old days, not now (so no sync is always the default behavior for routers now, i presume)  
But i wonder something: what did prevent from using full mesh iBGP in the old days ??? so this sync concept had to be created ??  
I am confused on this !

[Next page](https://forum.networklessons.com/t/bgp-synchronization/1110.md?page=2)
