Multiple L2TP links to the same IP via different routes...

Hi all,

Got an interesting problem. I have a solution, but it’s horribly clunky, so I wonder if anybody knows a better way of doing it.

I have a RouterBoard with two IP addresses and two gateways, let’s call the IPs 1.1.1.1 and 2.2.2.1 and the gateways 1.1.1.2 and 2.2.2.2

Everything beyond the RB is completely out of my control.

I need to create two L2TP tunnels from the RB back to the same IP on an LNS outside on the Internet somewhere.

When creating an L2TP tunnel, there doesn’t seem to be any way of specifying which source IP (i.e. 1.1.1.1 or 2.2.2.1) to use - if I could do this, then routing rules would permit routing the correct tunnel through the correct gateway. The only thoughts I had were specifying ‘Local address’ in the PPP profile (but that doesn’t appear to change the source address) and ‘outgoing filter’ (but this only appears in the filter not the mangle table).

Any ideas?

Metarouter with 2 virtual RouterOS

Yup, that’s the dirty solution. I was hoping to do it on one physical and virtual box.

why you cannot do that with virtual rotuer+host? as i see it, there is no difference for 2 virtual routers and other config, since then you can configure traffic to go direction you want it to go.

edit: mangle +routing-mark