Dynamic Routes and Preferred Source

Hi guys,

On our main router, we have several public IP addresses. Most of them are for dst-nat to private addresses. We’re using a few of these public addresses to act as the gateway for our other routers with customers that have public IP’s.

|ISP[xx.xx.96.33/27]|—|[xx.xx.96.36/27]Main MikroTik[xx.xx.20.1/27]|—|[xx.xx.20.2/27]Tower MikroTik-AP[xx.xx.20.33/27]|—wireless-to-customer

That’s basically it, for one tower anyways.
The main mikrotik just has two ethernet interfaces in it.

Finally, my question is, does it matter what the preferred source is set to for the dynamic/active/connected routes? Because, the preferred source for some of these (DAC) routes is set to a public address that we’re using only for dst-nat.

For instance, on the main mikrotik, we might see:
dst-address=xx.xx.20.0/27 pref-src=xx.xx.20.17

Instead of something like:
dst-address=xx.xx.20.0/27 pref-src=xx.xx.20.1

Would this affect our routing in any way?

I’ve already tried making an empty bridge and putting the extra addresses on that for loopback, but all that did was break things, and add an extra (invalid, I think) route to the table.. because I’d have 20.1/27 on ether2, but 20.17/27 on the loopback bridge.

Edit: By the way, I’m using 2.9.31.

I’ve had exactly the same problem and I could work around by taking out the PREFFERED SOURCE from routes, and of course that my lead into another problem… it is such a pitty that the basic element of the RouterOS suppose to have this problem after hundreds of releases and debugings

As for the preferred source, you can’t change it for DAC routes - on the command line, it says “can change only static routes” and remains unchanged.

The way I managed to change it, was to disable all other IP addresses for a particular subnet/route, so it would select the only IP left for that subnet as the preferred source. Rebooting the system, however, would revert the “changes”.

I’m not sure if this is even a problem.. as routes do seem to be working. I’m not sure what I did to fix the problem.. but atleast in a dummy network setup, it worked fine. I just hope it works when we try swapping out our main router for a third time. :frowning:

AFAIK, you can change preferred source for DAC route using routing filter in “dynamic” chain.

Eugene

It would appear that our trouble was either because of the way I set something up, or because our ISP was routing our new block of public IPs to another one of our IPs, instead of the main IP we were using for our router.

We’re currently using a slightly older 2.9 version for the temporary router.

I’m debating setting up the original router with the latest 2.9.3x or just staying with a version I know is good. :confused: At this rate, we might as well wait until RouterOS 3.0 comes out..