Solved

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

Posted on 2016-07-31
4
34 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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…
In the world of WAN, QoS is a pretty important topic for most, if not all, networks. Some WAN technologies have QoS mechanisms built in, but others, such as some L2 WAN's, don't have QoS control in the provider cloud.
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…

773 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