ā07-05-2018 05:36 AM - edited ā03-05-2019 10:43 AM
Can you please help me with example links for configuring VRF in a router?
i have 2 ISP links terminating on same router on 2 different interafces. we need to configure VRF for each ISP and perform failover. Please help. Both are INternet links and i will configure IPsec over GRE for corporate traffics.
Solved! Go to Solution.
ā07-05-2018 05:44 AM
ā07-05-2018 06:48 AM
If it for the purpose of learning the technology, then configure your router in the manner discussed by the article @a.alekseev mentioned. Use VRF route import-export between them.
Within each VRF configure a static default route to the attached ISP.
Now imagine all of your users are routed within VRF A, you would configure a floating static route that looks similar to this:
! ip route vrf VRF_A 0.0.0.0 0.0.0.0 <ISP_A> ip route vrf VRF_A 0.0.0.0 0.0.0.0 <ISP_B> 5 !
The ISP_A address will be present in VRF A routing table as a connected route. ISP_B will also be a connected route in VRF B, but will be advertised into VRF A as a BGP route. Now in the event that the link to ISP_A goes down, the static route will be removed and the floating (higher metric) route will be installed and send traffic via ISP_B.
Extending this further, you could create a static routes that are bonded to IP SLA jobs. In the event that the SLA jobs fails, remove the route. Something like this:
! ip sla 1 icmp-echo 8.8.8.8 source-interface <ISP_A_interface> timeout 1000 threshold 2 frequency 3 ! ip sla schedule 1 life forever start-time now ! track 1 ip sla 1 reachability ! ip route vrf VRF_A 0.0.0.0 0.0.0.0 track 1 ip route vrf VRF_A 0.0.0.0 0.0.0.0 5 !
Cheers,
Seb.
ā07-05-2018 05:44 AM
ā07-05-2018 05:49 AM - edited ā07-05-2018 05:50 AM
Hi there,
I donāt think VRF is the technology you want to employ here. Placing each ISP in a separate L3 routing table would necessitate the use of a firewall (or another Layer 3 device) (or BGP route leaking) to make the secondary ISP link reachable.
How are you peering with your ISP? Are you using eBGP? We could assign weight values to direct the traffic via one ISP.
Using static routing to the ISPs? Then we can look at floating routes.
Let us know :)
Cheers
Seb.
ā07-05-2018 06:16 AM
ā07-05-2018 06:48 AM
If it for the purpose of learning the technology, then configure your router in the manner discussed by the article @a.alekseev mentioned. Use VRF route import-export between them.
Within each VRF configure a static default route to the attached ISP.
Now imagine all of your users are routed within VRF A, you would configure a floating static route that looks similar to this:
! ip route vrf VRF_A 0.0.0.0 0.0.0.0 <ISP_A> ip route vrf VRF_A 0.0.0.0 0.0.0.0 <ISP_B> 5 !
The ISP_A address will be present in VRF A routing table as a connected route. ISP_B will also be a connected route in VRF B, but will be advertised into VRF A as a BGP route. Now in the event that the link to ISP_A goes down, the static route will be removed and the floating (higher metric) route will be installed and send traffic via ISP_B.
Extending this further, you could create a static routes that are bonded to IP SLA jobs. In the event that the SLA jobs fails, remove the route. Something like this:
! ip sla 1 icmp-echo 8.8.8.8 source-interface <ISP_A_interface> timeout 1000 threshold 2 frequency 3 ! ip sla schedule 1 life forever start-time now ! track 1 ip sla 1 reachability ! ip route vrf VRF_A 0.0.0.0 0.0.0.0 track 1 ip route vrf VRF_A 0.0.0.0 0.0.0.0 5 !
Cheers,
Seb.
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