Community discussions

MikroTik App
 
boffin2
just joined
Topic Author
Posts: 5
Joined: Mon Mar 21, 2016 1:25 am

VLAN steering

Tue Mar 22, 2016 12:32 am

I've been playing with VLAN steering on my CRS125 but have had limited success. I'm testing using a Virtual-AP. Bridged to a single VLAN, the RADIUS authentication works fine. If the radius server returns "Mikrotik_Wireless_VLANID = 4094", then the CRS appears to act upon it - but I don't establish a network connection. I guess this is expected as the tagged VLAN traffic needs to be presented to the Virtual-AP interface?

Before I experiment further, will the current config work or do I need to configure the wireless to be managed under CAPsMAN in order to get VLAN steering to work?

Thanks.
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: VLAN steering

Tue Mar 22, 2016 11:34 am

Check the wireless package being used, only wireless-fp and wireless-cm2 support this (see http://wiki.mikrotik.com/wiki/Manual:In ... AN_tagging )
 
boffin2
just joined
Topic Author
Posts: 5
Joined: Mon Mar 21, 2016 1:25 am

Re: VLAN steering

Tue Mar 22, 2016 2:20 pm

Thanks for the info.

I am using the wireless-cm2 package but the wireless interface is not configured as being CAPs managed. Does VLAN steering work without CAPs?

If I have three vlans that I wish to make available via a single wireless virtual AP, then I need to connect the three tagged vlans to the wireless virtual AP interface?
 
User avatar
pukkita
Trainer
Trainer
Posts: 3051
Joined: Wed Dec 04, 2013 11:09 am
Location: Spain

Re: VLAN steering

Tue Mar 22, 2016 7:08 pm

No need to be CAPs managed.

Not sure what do you want to achieve, to have specific clients traffic assigned to a VLAN depending on radius attributes?

In such case (previous wiki entry),
Per-interface VLAN tag can be overridden on per-client basis by means of access-list and RADIUS attributes (for both - regular wireless and wireless controller).

This way traffic can be separated between wireless clients even on the same interface, but must be used with care - only "interface VLAN" broadcast/multicast traffic will be sent out. If working broadcast/multicast is necessary for other (overridden) VLANs as well, multicast-helper can be used for now (this changes every multicast packet to unicast and then it is only sent to clients with matching VLAN ids).
 
boffin2
just joined
Topic Author
Posts: 5
Joined: Mon Mar 21, 2016 1:25 am

Re: VLAN steering

Tue Mar 22, 2016 8:37 pm

Thanks again for the helpful reply.

What I'd like to achieve (and, perhaps, I've misunderstood how this works) is that each user on the single virtual AP instance gets placed on a vlan, determined by the "Mikrotik_Wireless_VLANID" returned for that user by the RADIUS server.

So, user1 ends up on VLAN 10 and user2 ends up of VLAN 20, etc. Both users are connected at the same time.

Is that possible?
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: VLAN steering

Tue Mar 22, 2016 11:10 pm

This is not quite the "designed" purpose of this attribute. The idea is that you have some pre-built VLANs (i.e. secure vlan, standard vlan, guest vlan, etc., or vlans which lead to router1 for gold customers, router2 for platinum customers, or router3 for trial accounts - whatever) and the RADIUS profile tells the AP which vlan tag to use, but the vlans all go to specific pre-defined places.

If you just want client isolation, then use default-forward=no on the AP.
 
boffin2
just joined
Topic Author
Posts: 5
Joined: Mon Mar 21, 2016 1:25 am

Re: VLAN steering

Wed Mar 23, 2016 5:37 pm

Hi,

Thanks for the info.

I wasn't clear. Yes, I do have some pre-defined VLANS. Some users need to join a development network VLAN and others join a finance VLAN, etc. Which network they join is determined by the RADIUS server.

In order to do this, I simply present the Virtual AP interface with the tagged VLANs the users need to access?

Thanks.
 
boffin2
just joined
Topic Author
Posts: 5
Joined: Mon Mar 21, 2016 1:25 am

Re: VLAN steering

Mon Mar 28, 2016 12:56 am

To conclude this, I now have this working on a CRS125-24g-1s-2hnd-in.

I can now associate clients with vlans controlled by their user accounts on the FreeRadius server.

Now, if only the CRS125 native switch supported 802.3ad....

Who is online

Users browsing this forum: Google [Bot] and 35 guests