Community discussions

MikroTik App
 
aquiloni
just joined
Topic Author
Posts: 14
Joined: Thu Mar 07, 2013 9:52 pm

VLAN - Hotspot with Unifi

Mon Mar 14, 2016 11:55 pm

Hello folks!

I have an issue regarding my VLAN setup.

I left may RB2011 pretty much in the standard config, added a VLAN id=20 to the same bridge1 with member ports 2-5. The I made two DHCP setups, one on the bridge and one on the vlan. Now I have an interface with an untagged management network and an overlapping vlan. Next I made a hotspot on the vlan side and installed some unifi aps which are on the mgmt network lan side but the wifi interface works with the vlanid 20, great!

Now I have to get the hotspot traffic without the mgmt network (only the traffic from vlanid 20) over another connected LAN to a nearby access point. I don't get it how to solve this problem. Stuck at where to get the separated VLAN traffic ...

Anybody have an idea?
 
mennowz
Trainer
Trainer
Posts: 84
Joined: Tue Apr 09, 2013 8:50 pm
Location: The Netherlands
Contact:

Re: VLAN - Hotspot with Unifi

Tue Mar 15, 2016 12:03 am

Hello folks!

I have an issue regarding my VLAN setup.

I left may RB2011 pretty much in the standard config, added a VLAN id=20 to the same bridge1 with member ports 2-5. The I made two DHCP setups, one on the bridge and one on the vlan. Now I have an interface with an untagged management network and an overlapping vlan. Next I made a hotspot on the vlan side and installed some unifi aps which are on the mgmt network lan side but the wifi interface works with the vlanid 20, great!

Now I have to get the hotspot traffic without the mgmt network (only the traffic from vlanid 20) over another connected LAN to a nearby access point. I don't get it how to solve this problem. Stuck at where to get the separated VLAN traffic ...

Anybody have an idea?
No problem, kick out member port 5 for example. Create a VLAN called for example : EXT-VID-20, attach it to port 5, then create a bridge and add the Existing VLAN20 with hotspot data and the newly created EXT-VID-20 VLAN.

What you will get now is tagged traffic on VID 20 on port 5.. Want it untagged?, then DON't create the 2nd vlan, but bridge the Existing vlan to port 5..

Have fun!

Menno
 
aquiloni
just joined
Topic Author
Posts: 14
Joined: Thu Mar 07, 2013 9:52 pm

Re: VLAN - Hotspot with Unifi

Tue Mar 15, 2016 12:24 am

Thx for the reply menno, didn't knew that I can attach a VLAN eg. the existing vlan20 to more than one bridge simultaneously!? :?

I will test it tomorrow 8)
 
mennowz
Trainer
Trainer
Posts: 84
Joined: Tue Apr 09, 2013 8:50 pm
Location: The Netherlands
Contact:

Re: VLAN - Hotspot with Unifi

Tue Mar 15, 2016 12:33 am

Thx for the reply menno, didn't knew that I can attach a VLAN eg. the existing vlan20 to more than one bridge simultaneously!? :?

I will test it tomorrow 8)
You'll not be doing that :D , you have the existing VLAN20 ATTACHED to either a bridge or switch configuration right? So VLAN itself gets bridged acrossed all ports that are member. But not because the VLAN is bridged by using Bridgeports, it's because it's ATTACHED to a existing bridge.

Therefore you CAN create a 2nd vlan with either a identical VID OR different one (you choose), ATTACH that NEW VLAN to interface 5 and then bridge the new VLAN to the existing one and voila.

It looks complicated, but it really isn't..

Menno
 
aquiloni
just joined
Topic Author
Posts: 14
Joined: Thu Mar 07, 2013 9:52 pm

Re: VLAN - Hotspot with Unifi

Tue Mar 15, 2016 10:56 am

Sorry I don't get it ...

my bridge configuration looks this way:
/interface bridge
add name=bridge1
/interface bridge port
add interface=ether2
add interface=ether3
add interface=ether4
add interface=ether5
/interface vlan
add name=vlan20 interface=bridge1 vlan-id=20
/ip address
add interface=bridge1 address=192.168.1.1/24
add interface=vlan20 address=192.168.20.1/24
then I attached the hotspot interface on interface vlan20.

can you briefly put some adjustments to my configuration in code here menno? I don't get it :(
 
mennowz
Trainer
Trainer
Posts: 84
Joined: Tue Apr 09, 2013 8:50 pm
Location: The Netherlands
Contact:

Re: VLAN - Hotspot with Unifi

Tue Mar 15, 2016 10:04 pm

No problem, from my head (please test this in a lab cause it could create havoc if done wrong.. not having a routerboard in reach for now :D )

/interface bridge
add name=bridge1
add name=BR-VID20
/interface bridge port
add bridge=bridge1 add interface=ether2
add bridge=bridge1 add interface=ether3
add bridge=bridge1 add interface=ether4
add bridge=BR-VID20 interface=vlan20
add bridge=BR-VID20 interface=ext-vlan20
/interface vlan
add name=vlan20 interface=bridge1 vlan-id=20
add name=ext-vlan20 interface=ether5 vlan-id=20
/ip address
add interface=bridge1 address=192.168.1.1/24
add interface=vlan20 address=192.168.20.1/24

Let me know!

Menno