Community discussions

 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 503
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

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

Fri Jan 27, 2012 12:24 pm

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?
Nicholas Barnes BSc(hons)
Certified Mikrotik Consultant
Certified Mikrotik Trainer

Vitell - Asterisk, Linux and network consultants
Unofficial IRC channel: #routerboard on irc.z.je
 
pavel7654321
just joined
Posts: 22
Joined: Tue Jun 02, 2009 9:00 am

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

Sat Jan 28, 2012 11:01 pm

Metarouter with 2 virtual RouterOS
 
User avatar
NAB
Trainer
Trainer
Topic Author
Posts: 503
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

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

Mon Jan 30, 2012 12:23 pm

Yup, that's the dirty solution. I was hoping to do it on one physical and virtual box.
Nicholas Barnes BSc(hons)
Certified Mikrotik Consultant
Certified Mikrotik Trainer

Vitell - Asterisk, Linux and network consultants
Unofficial IRC channel: #routerboard on irc.z.je
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6283
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

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

Mon Jan 30, 2012 1:15 pm

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

Who is online

Users browsing this forum: No registered users and 64 guests