Community discussions

MikroTik App
 
wispmikrotik
Member Candidate
Member Candidate
Topic Author
Posts: 138
Joined: Tue Apr 25, 2017 10:43 am

BGP and VRF lite not working

Sat May 02, 2020 12:42 am

Hi,

Image

R1 (mikrotik CE1) => PE1 (cisco) => VRF100
R2 (mikrotik CE2) => PE1 (cisco) => VRF200

R1: LAN 10.4.4.0/24
R2: LAN 10.3.3.0/24

R1 is intended to know R1's LAN 10.3.3.0/24, with cisco it works with mikrotik no.

1) PE CISCO:

I am going to give you the example with the PE1 router cisco configured with vrf-lite and inter-vrf with route-target working perfectly:

It is intended that R1 obtain the routes of R2 that is in different VRFs:

ip vrf VRF100
rd 65000:100
route-target export 65000:100
route-target import 65000:100
route-target import 65000:200
!
ip vrf VRF200
rd 65000:200
route-target export 65000:200
route-target import 65000:200
!
interface FastEthernet0/0.2
encapsulation dot1Q 2
ip vrf forwarding VRF100
ip address 192.168.2.1 255.255.255.252
!
interface FastEthernet0/0.3
encapsulation dot1Q 3
ip vrf forwarding VRF200
ip address 192.168.3.1 255.255.255.252
!
router bgp 100
bgp log-neighbor-changes
!
address-family ipv4 vrf VRF100
redistribute connected
neighbor 192.168.2.2 remote-as 65000
neighbor 192.168.2.2 activate
neighbor 192.168.2.2 as-override
exit-address-family
!
address-family ipv4 vrf VRF200
redistribute connected
neighbor 192.168.3.2 remote-as 65000
neighbor 192.168.3.2 activate
neighbor 192.168.3.2 as-override
exit-address-family
!

It is observed that R1 correctly receives route 10.3.3.0/24

[admin@R1] > /ip route print where bgp
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADb 10.3.3.0/24 192.168.2.1 20
1 Db 192.168.2.0/30 192.168.2.1 20
2 ADb 192.168.3.0/30 192.168.2.1 20

2-) I give you the example with mikrotik as PE1 and it is not sending the route:

The route does not arrive:

[admin@R1] > /ip route print where bgp
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit

DST-ADDRESS PREF-SRC GATEWAY DISTANCE
[admin@R1] >

PE01:

/ip route vrf
add export-route-targets=65000:100 import-route-targets=65000:100,65000:200 \
interfaces=vlan2 route-distinguisher=65000:100 routing-mark=VRF_100
add export-route-targets=65000:200 import-route-targets=65000:200 interfaces=\
vlan3 route-distinguisher=65000:200 routing-mark=VRF_200


Regards,

Who is online

Users browsing this forum: No registered users and 5 guests