I hame openvpn server
[alecz@MikroTik] > ppp export
/ppp profile
add local-address=172.16.169.1 name=ovpn remote-address=ovpn-pool use-mpls=yes
/ppp secret
add name=pochta-test password=pochta-test profile=ovpn routes=192.168.228.44/30 service=ovpn
it works
[alecz@MikroTik] > ppp active print
Flags: R - radius
# NAME SERVICE CALLER-ID ADDRESS UPTIME ENCODING
pochta-test ovpn 192.168.105.1 172.16.169.254 1h5m10s AES-128-CBC/MD5
i added this interface to vrf
[alecz@MikroTik] > ip route vrf print
Flags: X - disabled, I - inactive
0 routing-mark=sbrf interfaces=<ovpn-pochta-test> route-distinguisher=27:13 import-route-targets=27:13 export-route-targets=27:13
[alecz@MikroTik] > ip route add dst-address=192.168.228.44/30 vrf-interface=<ovpn-pochta-test> gateway=<ovpn-pochta-test>
and saw it on bgp neighbor
G2#sh ip route vrf SBRF bgp
Routing Table: SBRF
172.16.0.0/16 is variably subnetted, 9 subnets, 3 masks
B 172.16.169.254/32 [20/0] via , 00:08:51
192.168.228.0/24 is variably subnetted, 22 subnets, 3 masks
B 192.168.228.44/30 [20/0] via , 00:00:02
when i restart my openvpn client i lose route and ip vrf route
[alecz@MikroTik] > ppp active print
pochta-test ovpn 192.168.105.1 172.16.169.254 6s AES-128-CBC/MD5
[alecz@MikroTik] > ip route vrf print
Flags: X - disabled, I - inactive
0 routing-mark=sbrf interfaces=*F00124 route-distinguisher=27:13 import-route-targets=27:13 export-route-targets=27:13
[alecz@MikroTik] > ip route check 192.168.228.46
status: ok
interface: <ovpn-pochta-test>
nexthop: 192.168.228.46
and nothing works.