# Route distribution from IBGP Into EBGP and Filtrering issues

**URL:** https://forum.networklessons.com/t/route-distribution-from-ibgp-into-ebgp-and-filtrering-issues/13119
**Category:** BGP
**Created:** [December 17, 2020, 11:05am UTC](https://forum.networklessons.com/t/route-distribution-from-ibgp-into-ebgp-and-filtrering-issues/13119 "2020-12-17T11:05:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![masoodraufi](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@masoodraufi](https://forum.networklessons.com/u/masoodraufi)
#### Post date: [December 17, 2020, 11:05am UTC](https://forum.networklessons.com/t/route-distribution-from-ibgp-into-ebgp-and-filtrering-issues/13119/1 "2020-12-17T11:05:18Z")

</div>

I have a difficult lab which I have to do where there are three routers each TOP , RIGHT and LEFT having an internal BGP with AS 300 and on the one side OSPF and the other side EIGRP and both have loopbacks etc where routes are disterbuted between OSPF and EIGRP but in the mean time I am running an IPV6 tunnel from the TOP router into another router located in AS 500 which is not an IBGP. The quesion is that all the routes coming to the AS 300 and going from AS 300 should be done through the Router RIGHT , I want to use AS Path or Local Pref with help of route-maps but does not know exactly how I do it and where to put them ?

To be mentioned that the Routes between LEFT and RIGHT should be used as a backup link

 ![Avancerade Routing Bild (1)](https://cdn-forum.networklessons.com/uploads/default/original/2X/1/1cdfaa93f8d16d7bd59c02b3e310cd84b654d0cd.png) with the help of static routes. The 172.2.0.0 network should be summerized in BGP LEFT and RIGHT.

In the mean time is it so that in the internal BGP we should use update source loopback but not in EBGP ? And what does the network command do in this case ?

Waiting for your kind responce,

---

<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: [December 19, 2020, 9:50am UTC](https://forum.networklessons.com/t/route-distribution-from-ibgp-into-ebgp-and-filtrering-issues/13119/2 "2020-12-19T09:50:27Z")

</div>

Hello Masood

Just to confirm, routers TOP, RIGHT and LEF are all three in AS300 correct? And within AS300, you are running OSPF in one part of the network, and EIGRP in the other. This is fine, BGP will function as long as routing between all iBGP routers is enabled.

Now, you want to be able to influence traffic so that all communication into and out of AS300 takes place through the RIGHT router. Remember that you have full control of your outgoing traffic. You can choose which router will be used for outbound traffic using the Local Preference BGP attribute. You can take a look at this lesson which describes in detail how this should be implemented:

> **[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.

Now for incoming traffic, you can use the AS Path attribute. Details on how to configure this can be found in the following lesson:

> **[How to configure BGP AS Path Prepending](https://networklessons.com/bgp/how-to-configure-bgp-as-path-prepending)**
>
> AS Path Prepending is a common BGP technique to influence path selection. In this lesson, you will learn how to configure AS Path prepending.

You can also use the BGP MED attribute to influence incoming traffic. Take a look at this lesson as well:

> **[How to configure BGP MED Attribute](https://networklessons.com/bgp/how-to-configure-bgp-med-attribute)**
>
> BGP MED (Metric) is one of the BGP attributes and tells another AS how to enter your AS. I'll show you how to configure it on Cisco routers.

Now remember that from the point of view of your own AS, you can **influence** which path incoming traffic should take, but **you do not have ultimate control**. You may use ASPathPrepending or MED, but the receiving AS can override this information if they wish. If both AS’es are under your control, then you have no problem, but often such configurations are done at the network edge where you connect to the ISP. In such a case you should talk with your ISP and let them know what you intend to do.

I believe that if you go over these lessons you will get a clear idea of how to implement what it is that you want to achieve. If you run into any difficulties, you know where to find us!

I hope this has been helpful!

Laz
