12-01-2015 08:32 PM - edited 03-08-2019 02:55 AM
I wanted to ask a question on route leaking between VRFs on switches running HSRP. If I configure several HSRP vlans between a pair of switches and apply different VRF tags to all of my HSRP vlans, how how can I leak routes between them? Every example I have researched shows a single router running a locally significant MP-BGP instance to leak routes. Will I need to configure MP-BGP on each switch and form a neighbor relationship between the pair of swithes in order for both switches to know routes that are leaked between VRFs?
12-01-2015 08:55 PM
Hello,
If you want to advertise routes between two VRFs, you need to use BGP.
Do you have any IGP configured on those switches?
This in one example of route leaking between intervlan 10 and 20.
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
route-target import 2:1
!
ip vrf B
rd 2:1
route-target export 2:1
route-target import 2:1
route-target import 1:1
!
interface VLAN 10
ip vrf forwarding A
ip address 192.168.10.1 255.255.255.0
!
interface VLAN 20
ip vrf forwarding B
ip address 192.168.20.1 255.255.255.0
router bgp 100
!
address-family ipv4 vrf A
redistribute connected
!
address-family ipv4 vrf B
redistribute connected
Masoud
12-01-2015 09:52 PM
Hey Masoud thanks for replying back. I guess that is what I am not sure of, would you need to run MP-BGP on both swithces and form a neighbor relationship between the two switches? Or will you run a single seperate BGP instance on each switch?
12-01-2015 10:16 PM
Hello,
I suppose you do not have any IGP between two switches.
If you need to just leak interfaces IPs into VRF, two stand alone BGPs on both switches work.
Masoud
12-01-2015 10:46 PM
Would it be better to run an IGP like OSPF between the switches with seperate MP-BGP instances on each switch? Or would the seperate BGP instances as the only dynamic protocol be better?
12-02-2015 11:54 AM
It depends on your topology and your need. In MPLS VPN, BGP is usuallly configured on a network which is already converged by IGP. What is the reason of leaking routes between two VRFs? Are you just leaking interfece IPs ?
What do you use those VRFs for?
Masoud
12-02-2015 03:22 PM
Hey Masoud thanks for the reply back, the purpose of this design is to terminte different customers in seperate VRFs, but give them all access to a shared common VRF. So for instance three different customers in there own seperate VRFs are isolated, but then can all access a shared VRF where a data backup solution will reside.
I therefore need the ability to route from the customer VRFs to the shared VRF, keep the different customer VRFs isolated from each other, and also allow the shared VRF to be able to reach any of the customer VRFs.
Since we want a redundant solution we will have two switches (for example two 5600 switches) and each customer will have a vlan with a SVI running HSRP and that customer will be assigned their own VRF. So with a design using HSRP aware VRFs I was confused on how to implement the best way to leak routes between the VRFs and the second part is how do you deal with route leaking with two switches?
12-02-2015 03:44 PM
The span of VRF is only between two 6500s or 6500s are going to be PE and then you have P router? Shared resources will be in a VRF in 6500 or they are in another router? Sketch of network topology would be helpful.
Masoud
01-07-2016 11:39 AM
Hey Masoud sorry about the delay, but I found the answer to my problem. We decided to use a VSS pair of switches with the 2T Sups. Using VSS allowed me to have the same control plane shared across both switches where I can create all my VRFs. It was easy then to just do the route leaking using BGP based on your recommendation.
12-02-2015 03:26 PM
To add to my last comment, it seems from what I researched MP-BGP is best to leak routes using import / export route maps and maybe a neighboe peering is needed between the switches so both have the same route tables (VRF or global). I appreciate you taking the time to answer my questions on this also. Thoughts on the neighbor peering?
12-02-2015 02:42 PM
Adding to my previous comment.
Let me give you one example.
IGP is used in MPLS VPN for global routing table advertisement. Because BGP neighbor IP must be known. If the network is small, static route can be configured on routers for BGP reachability.
Suppose you configure an static route in VRF A on R1 in my previous example.
Ip route VRF A x.x.x.x x.x.x.x nexthop
Then If you configure ,
address-family ipv4 vrf A
redistribute connected
redistribute static
That static route will be sit in both VRF A and B on R1; however, it does not propagate to R2.
If you need that static route to propagate to R2 as well, you need to have BGP neighborship between two routers.
Hope it helps,
Masoud
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide