Skip to content

Route-leak between 2 VRF on same router #10649

Closed Answered by EasyNetDev
EasyNetDev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi all,

I think I found a solution. Is actually using the BGP VPN route-leak. It seems that if I'm exporting an prefix from local VRF1 to VPN and the in the VRF2 I'm importing the correct RT the route from VRF1 shows in VRF2.

I did this test:

BGP and Zebra configuration:

interface mgmt
 ip address 10.90.100.1/32
exit
!
interface vpn
 ip address 10.100.100.1/32
exit

..

router bgp 65001 vrf mgmt
 bgp router-id 10.90.100.1
 !
 address-family ipv4 unicast
  redistribute connected route-map VRF-MGMT-CONNECTED
  rd vpn export 65001:11000
  rt vpn both 65001:11000
  export vpn
  import vpn
 exit-address-family
exit
!
router bgp 65001 vrf vpn
 bgp router-id 10.100.100.1
 !
 address-family ipv4 …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@EasyNetDev
Comment options

@f0o
Comment options

@EasyNetDev
Comment options

@f0o
Comment options

@EasyNetDev
Comment options

Answer selected by ton31337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants