Solved

How to advertise routes to bgp peer from another vrf interface?

Posted on 2016-07-31
4
37 Views
Last Modified: 2016-08-22
Hi,

Here is a topology: R1(e1/1) ----------(e1/1) R2 (e1/0) ---------(e1/0) R3
R1' AS is 1, R2' AS is 2 and R3' AS is 3
e1/0 in R2 and R3 are vrf DOC. e1/1 in R2 and R1 are normal interface
Can you give some suggestion how to configure the bgp between R1 and R2 in order for traffic to go from R3 to R1? Thank you

Below is a configuration example, but it is one vrf to another vrf. In my case, it is one vrf to global, which is different with the below example where several vrf route-target can exchange. If some specific vrf exchange route-target with the global, what is the global vrf value?  Any expert can give some suggestion?
http://ideasdenetworking.blogspot.com/2015/03/enrutamiento-de-multiples-vrfs-route.html
0
Comment
Question by:eemoon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 79

Expert Comment

by:arnold
ID: 41737002
You have to repeat the routes from r3 to the r1 and the same for r1 to r3.
You have static peering as you have right now with dynamic advertising about the learned routes.
You would need to filter which routes learned from r3 you want passed by r2 to r1.

router which is in use? Juniper, Cisco, etc.
0
 
LVL 79

Expert Comment

by:arnold
ID: 41737034
See if the bgp readvertisment/redistribution of ospf sheds light on how you can configure the redistribution of a bgp learned
In the example in the link.

Presuming you are using a cisco  router.
You can apply the info with the routers you have. Syntax/options might vary.
http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/5242-bgp-ospf-redis.html
0
 
LVL 14

Accepted Solution

by:
SIM50 earned 500 total points (awarded by participants)
ID: 41737971
I think this should work for you. In prefix-list, put the correct network configured between R2 and R1.

ip vrf DOC
rd 1:1
import ipv4 unicast map global_to_vrf

ip prefix-list G2V permit 192.168.1.0/24
!
route-map global_to_vrf permit 10
match ip address prefix-list G2V
!
router bgp 65000
 redistribute connected route-map global_to_vrf
0
 
LVL 14

Expert Comment

by:SIM50
ID: 41764162
My solution provides vrf route leaking as requested.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We've been using the Cisco/Linksys RV042 for years as: - an internet Gateway - a site-to-site VPN device - a leased line site-to-site subnet-to-subnet interface (And, here I'm assuming that any RV0xx behaves the same way as an RV042.  So that's …
Tired of waiting for your show or movie to load?  Are buffering issues a constant problem with your internet connection?  Check this article out to see if these simple adjustments are the solution for you.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question