We have been observing that in some occasions, certain interfaces work and others do not within the same VRF. We have seen this behavior both on devices that were upgraded from v6 to v7, and on devices configured from scratch on v7.
Below is a basic configuration that does not work. It is worth noting that if we remove the VRF interface, the ping works correctly:
/ip vrf
add interfaces=IL_VRF_TEST name=VRF_TEST
...
/interface list
add name=IL_VRF_TEST
/interface list member
add interface=sfp.111 list=IL_VRF_TEST
...
/ip address
add address=10.1.1.9/30 interface=sfp.111 network=10.1.1.8
Below are the connectivity tests:
> ping 10.1.1.10 src-address=10.1.1.9 vrf=VRF_TEST count=1
Columns: SEQ, HOST, STATUS
SEQ HOST STATUS
0 10.1.1.10 timeout
If we remove the interface from the VRF (removing it from the interface list), the connectivity is correct:
Do you get the same if you dont use an interface list but like manually add each and every interface to the VRF (lets start with just 2 of them or so)?
As a bonus question on similar topic - is it possible to (similar to how you can on Arista and VyOS) get to the bash mode when logged in to a Mikrotik?
Would be handy to see what happens in the “backend” of the Linux kernel and its settings when these errors occurs (I have for example one that the DNS service doesnt work with VRF’s which is also confirmed by others but still zero response from Mikrotik on that case).
The behavior is the same both when using interface lists and when explicitly declaring interfaces in the VRF configuration section.
As far as I know, it is not possible to access the underlying linux console in RouterOS (it would be great!).
The problem I find in using the VRF_TEST VRF interface as the target is that within the VRF there are several interfaces, which have different bandwidth control policies.
> queue/simple/set 0 target=sfp.111@VRF_TEST
invalid value for argument target:
input does not match any value of target-interface
invalid value for argument target-address:
value of ip-address must contain '/'
value of ipv6-address expects IPv6 prefix
The documentation talks about using mangle rules to mark traffic, but for it to work in simple queues, they can only be used in the prerouting chain. This means that I cannot apply marking to traffic going out the sfp.111 interface.