VRF Configuration doesn't work on MikroTik CCR Router

Hello, my friends,

I’m trying to separate two LAN networks on the same MikroTik router using the VRF method. I believe I’ve configured everything correctly, but for some reason, it’s not working as expected. When I apply the configuration, the network goes down, but fortunately, it happened outside of working hours.

Here’s my configuration:
1282024.rsc (5.76 KB)

Hello Friends..
I have a problem here…any help.. :confused:

A: Please read Mikrotik Documentation First..
Techsystem: I read it but I couldn’t find the reason.

It doesn’t work the way YOU expected.

It doesn’t work like that…
“WE” should read the export (full of configuration errors and omissions) and from there extract the network graph and all the information that YOU know but you didn’t provide “US”.

I’m sorry, but only now that I’ve answered someone else will answer this topic, but for other reasons.

extract the network graph and all the information that YOU know but you didn't provide "US".
Tell me what you need, and I will provide you with the necessary resources.
you need Network Diagram..!?

It is not like you started from fresh and only added a VRF configuration, the configuration you posted has (among other things) a wireguard connection, a macvlan, a number of src-nat and dst-nat settings, custom firewall rules and there are clear signs of having been configured and re-configured several times.

Its complexity goes well over my level of competence, so cannot provide any specific suggestions, but there are a few things that struck me and that you may want to check/fix (not necessarily related to the issue you are having):

  1. always search a configuration for “*” (asterisk), you have a couple occurrences of it, *16, *1A, this means that something got lost in a configuration change and ROS resorted to leave a pointer to something that was there but now doesn’t exist anymore
  2. if you use action=masquerade you cannot specify the to-addresses, masquerade is a sort of “automatic” src-nat, the to-addresses only work for src-nat
  3. you have three routing tables (besides the two VRF’s) of which only one seems to be used (and it is disabled)
  4. calling the VRF’s “Wifi” and “Server” are likely to confuse, I would rename them to “Wifi_vrf” and “Server_vrf”

BTW “network goes down” is not a very descriptive report, it sounds a lot like “I’m ill, doctor, help!”, JFYI:
http://jdebp.info/FGA/problem-report-standard-litany.html

Thank you for your comment jaclaz, I appreciate your attention.