Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 39
  • Last Modified:

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

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
eemoon
Asked:
eemoon
  • 2
  • 2
1 Solution
 
arnoldCommented:
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
 
arnoldCommented:
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
 
SIM50Commented:
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
 
SIM50Commented:
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!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now