10-30-2017 05:28 AM - edited 03-08-2019 12:33 PM
Hi,
I am requesting for get a solution regarding route leaking between connected subnet to VRF route table in same box.
I have a router where 1 interfaces make non vrf(Global) and 1 interface become vrf. vrf interface has bgp neighborship with uplink device. i want to communicate with VRF subnet to global in the same box.
I have tried with Policy based routing and import the route-map under VRF but it does not work. but it working fine by using vrf receive policy. in that case i do not want to use this methd. i want to use PBR or if any other way. Please suggest on that.
Below is sample configuration
interface FastEthernet1/1(Non-VRF Interface)
ip address 10.100.100.2 255.255.255.0
standby 0 ip 10.100.100.1
standby 0 priority 110
standby 0 preempt
interface FastEthernet2/1(vrf Interface)
ip vrf forwarding ABC
ip address 10.200.15.2 255.255.255.0
standby 0 ip 10.21.15.1
standby 0 priority 110
standby 0 preempt
address-family ipv4 vrf ABC
import path selection all
network 10.200.15.0 mask 255.255.255.0
neighbor 10.10.131.1 remote-as 65000
neighbor 10.10.131.1 activate
ip vrf ABC
rd 65003:1
import ipv4 unicast map GLOBAL-VRF
route-map GLOBAL-VRF permit 10
match ip address prefix-list GLOBAL-VRF
ip prefix-list GLOBAL-VRF seq 5 permit 10.100.100.0/24
Result:
Sub-Agg1#sh ip bgp vpnv4 all
BGP table version is 6, local router ID is 10.9.0.129
*> 10.21.15.0/24 0.0.0.0 0 32768 i
Thanks
Masud
11-05-2017 08:55 PM
Hi,
Would anyone please share your feedback regarding my above issue
Masud
11-06-2017 12:36 AM
Hello,
the below is how PBR based VRF route leaking should work. I am not sure if HSRP gets in the way...
access-list 101 permit ip 10.100.100.0 0.0.0.255 10.200.15.0 0.0.0.255
!
route-map VRF_TO_GLOBAL permit 10
match ip address 101
set global
!
interface FastEthernet1/1(Non-VRF Interface)
ip address 10.100.100.2 255.255.255.0
standby 0 ip 10.100.100.1
standby 0 priority 110
standby 0 preempt
interface FastEthernet2/1(vrf Interface)
ip vrf forwarding ABC
ip address 10.200.15.2 255.255.255.0
standby 0 ip 10.21.15.1
standby 0 priority 110
standby 0 preempt
ip policy route-map VRF_TO_GLOBAL
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