Solved

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

Posted on 2016-07-31
4
31 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
  • 2
  • 2
4 Comments
 
LVL 77

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 77

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MAC Access List to Block DHCP Traffic on a Cisco SG500 19 47
Does Ping Packet go through Trunk port 4 53
RIP Routing 5 59
Classlful vs Classless subneting 18 61
I have seen some questions on problems with SSH/telnet access to Cisco routers that may occur despite the fact that from a PC connected to your LAN, Internet connectivity is in place and users can access Internet sites without any issues.  There are…
There are two basic ways to configure a static route for Cisco IOS devices. I've written this article to highlight a case study comparing the configuration of a static route using the next-hop IP and the configuration of a static route using an outg…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now