Hello!
Before I used VRF with Cisco. Now I want to try with Mikrotik. And I wonder.
Cisco:
interface Loopback0
ip vrf forwarding red
ip address 1.1.1.1 255.255.255.255
and I can just ping 1.1.1.1 from main table and can with ping vrf red 1.1.1.1.
Mikrotik, my very simple config:
# oct/22/2017 11:59:03 by RouterOS 6.40.4
# software id =
#
#
#
/interface bridge
add name=Loopback0 protocol-mode=none
add name=Loopback1 protocol-mode=none
/interface ethernet
set [ find default-name=ether2 ] name=ether1
set [ find default-name=ether1 ] name=ether2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip address add address=1.1.1.1 interface=Loopback1 network=1.1.1.1
/ip address add address=192.168.1.39/24 interface=ether1
/ip route vrf add export-route-targets=1:1 import-route-targets=1:1 interfaces=Loopback1 route-distinguisher=1:1 routing-mark=red
[admin@MikroTik] > /ip route print deta
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
0 ADC dst-address=1.1.1.1/32 pref-src=1.1.1.1 gateway=Loopback1
gateway-status=Loopback1 reachable distance=0 scope=10 routing-mark=red
1 ADS dst-address=0.0.0.0/0 gateway=192.168.1.1
gateway-status=192.168.1.1 reachable via ether1 distance=1 scope=30
target-scope=10 vrf-interface=ether1
2 ADC dst-address=192.168.1.0/24 pref-src=192.168.1.39 gateway=ether1
gateway-status=ether1 reachable distance=0 scope=10
I can just ping 1.1.1.1 from mikrotik shell and even I can ping 1.1.1.1 from outside!!! On windows host I use: route add 1.1.1.1 mask 255.255.255.255 192.168.1.39, then ping 1.1.1.1 and got replies.
What is wrong with my mind?
Regards,
Boris