It works if you use routing-table = and set up a seperate routing table with a routing mark. But src-address is ignored - even if it is a seperate interface.
I’ve never had this issue (and tested again right now on 6.46.7). Are you sure there is no src-nat (or masquerade) rule which replaces the source address set using the src-address parameter of ping?
Yeah thats why i tested, i created a seperate VLAN interface on both routers with other adddresses (my MASQ rule only applies to ETHER1 not the vlan)
Routing/gateway takes priority over src-address in ping command.
Sounds like we are doing the same thing. I already wrote there is no MASQ on the interface/IP I am using.
I can force it to work by using the routing-mark in the ping command, to use another interface+ip.
But that is the ONLY thing that will make it work on my end.
I will test later with different or older ROS versions
If you don’t want to post your config (of course make it anonymous by replacing all identifiable data) it is hard to understand what could be wrong. Also, you didn’t explain in detail what exactly does not work. (i.e. describe in detail your action, expected behavior and observed behavior). This description is absolutely necessary if you want any helpful answer, because clearly, with current description, we are getting different results than you. Maybe we just don’t understand your trouble.
On the other hand, you again said, that using routing-mark works. So again, I am asking - are you expecting the router to use different route, based on src-address? Because that is not how it works. If this is what you are trying to achieve, then look at definition of pref-src parameter in manual: https://wiki.mikrotik.com/wiki/Manual:IP/Route
Which of the local IP addresses to use for locally originated packets that are sent via this route. Value of this property has no effect on forwarded packets. If value of this property is set to IP address that is not local address of this router then the route will be inactive. If pref-src value is not set, then for locally originated packets that are sent using this route router will choose one of local addresses attached to the output interface that match destination prefix of the route.
It is clear that pref-src has no effect on router’s decision as of which route to use.