Community discussions

MikroTik App
 
sewlist
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Jun 02, 2006 3:48 pm

vrf and dynamic interfaces

Wed Jun 10, 2009 11:43 am

Hi,

I want to have clients coming in from adsl into our core with l2tp or pptp to our mpls cloud where we can put them into diffrent vrf's

I can put the l2tp-client1 into a vrf, but as it reconnect the vrf interface is unknown, is there a way MT can pick up the l2tp interface on reconnect?

Thanks

S
 
User avatar
Eising
Member Candidate
Member Candidate
Posts: 272
Joined: Mon Oct 27, 2008 10:21 am
Location: Copenhagen, Denmark

Re: vrf and dynamic interfaces

Thu Jun 11, 2009 12:13 am

I haven't tried it, but you should be able to add a bridge and add your dynamic interfaces to it, and add that bridge to the vrf instead. That should make it work...
 
sewlist
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Jun 02, 2006 3:48 pm

Re: vrf and dynamic interfaces

Thu Jun 11, 2009 1:48 pm

Thanks

Tried adding the lt2p interface to the bridge, doesnt seem to be possible

S
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: vrf and dynamic interfaces

Thu Jun 11, 2009 1:54 pm

you can't add l2tp interface directly to bridge.

Instead in /ppp profile specify which bridge to use when l2tp interface is created. Also note that l2tp interfaces must be bridged on both ends, otherwise it won't work.
 
sewlist
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Jun 02, 2006 3:48 pm

Re: vrf and dynamic interfaces

Thu Jun 18, 2009 4:26 pm

I've been testing my vrf's with dynamic interfaces and works beautifully, i need this for a client with 60 sites coming in on 3g and their main co-located server with us,

i however using scripting to keep the interfaces in the vrf up peroidlicy buts it very ugly, is there no way MT can remember the dynamic interfaces ? is this a coding limitation on MT side or something?

when u set your client 3g routerOS to gateway=pppoe-out1, it remembers it, what so diffrent from the dynamic interfaces on the l2tp-server side?

If this works, its pretty much on par with how cisco mpls providers does it

S
 
sewlist
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 70
Joined: Fri Jun 02, 2006 3:48 pm

Re: vrf and dynamic interfaces

Mon Jun 22, 2009 6:02 pm

any news from anyone how i can do it better? I can l2tp to the client and it remembers the interface in the VRF but 3g clients i can't connect to as their ips not visible on the internet

Thanks

S
 
smirre
just joined
Posts: 12
Joined: Thu Feb 16, 2006 3:12 pm

Re: vrf and dynamic interfaces

Sun Apr 18, 2010 3:22 pm

hi,

i´am struggling with the same problem this moment. it would be great if there were a radius-attribute like 'Mikrotik-VRF' or 'Routing-Mark'

is this planned for the future?

Clemens
 
dog
Member Candidate
Member Candidate
Posts: 186
Joined: Wed Aug 12, 2009 3:37 pm
Location: Germany

Re: vrf and dynamic interfaces

Sun Apr 18, 2010 5:14 pm

is there no way MT can remember the dynamic interfaces
Don't use dynamic interfaces :)
You can create static l2tp-server interfaces for each client (or copy a dynamic one) which will stay there.
 
riaanmaree
Frequent Visitor
Frequent Visitor
Posts: 66
Joined: Thu Aug 31, 2006 10:42 pm
Location: Johannesburg, South Africa
Contact:

Re: vrf and dynamic interfaces

Fri Nov 21, 2014 12:02 am

I also vote for the radius-attribute like 'Mikrotik-VRF' or 'Routing-Mark'. We need it for PPPoE.
 
adrianlewis
just joined
Posts: 11
Joined: Tue Oct 14, 2014 6:09 pm

Re: vrf and dynamic interfaces

Thu Nov 27, 2014 6:09 am

I also vote for the radius-attribute like 'Mikrotik-VRF' or 'Routing-Mark'. We need it for PPPoE.
+1
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1739
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: vrf and dynamic interfaces

Wed Dec 03, 2014 12:55 am

You could always add a routing mark using a mangle rule and match on the IP range or ranges that are being handed out for the dynamic connections.

If done in prerouting, that should keep you from having to script it.

Who is online

Users browsing this forum: No registered users and 62 guests