Below is the task required from INE Vol1 MPLS workbook the main aim was to establish Inter-Vrf routing without using MPLS ( well i used a BGP solution) which differs from the solution offered in INE book
My idea was to test how can i exchange inter-vrf routing using BGP , INE made a tricky solution which is configuring R6 to exhange routes statically
ip route vrf VPN_A 192.168.7.0 255.255.255.0 FastEthernet0/0.76 155.1.76.7
!
ip route vrf VPN_B 172.16.7.0 255.255.255.0 FastEthernet0/0.67 155.1.67.7
Note This trick only works if their is no recursive routing needed (i.e) next hop appears as connected
So here's below my Solution without the need to R6 and only using BGP vpnv4
ip route vrf VPN_A 192.168.7.0 255.255.255.0 FastEthernet0/0.76 155.1.76.7
!
ip route vrf VPN_B 172.16.7.0 255.255.255.0 FastEthernet0/0.67 155.1.67.7
Note This trick only works if their is no recursive routing needed (i.e) next hop appears as connected
So here's below my Solution without the need to R6 and only using BGP vpnv4
ip vrf VA
route-target export 1:1
route-target import 2:2
ip vrf VB
route-target export 2:2
route-target import 1:1
router bgp 1
address-family ipv4 vrf VB
redis connected route-map match-lo102
address-family ipv4 vrf VA
redis connected route-map match-lo101
route-map match-lo101
match interface lo101
route-map match-lo102
match interface lo102
Rack1SW1#sh ip route vrf VA bgp
192.168.7.0/32 is subnetted, 1 subnets
B 192.168.7.7 is directly connected, 00:00:29, Loopback102
Rack1SW1#sh ip route vrf VB bgp
172.16.0.0/32 is subnetted, 1 subnets
B 172.16.7.7 is directly connected, 00:00:35, Loopback101
Rack1SW1#ping vrf VA 192.168.7.7 source 172.16.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.7.7, timeout is 2 seconds:
Packet sent with a source address of 172.16.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms