Community discussions

MikroTik App
 
dadaniel
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Fri May 14, 2010 11:51 pm

CapsMan VLAN question

Fri Apr 17, 2020 10:41 pm

I'm using some RB751G as accesspoints using the default CAP config in CAPsMAN Forwarding Mode (datapath.local-forwarding=no).
I have set two SSIDs (main and guest) and assigned two different VLANs to them.

Now comes the problem: In this device default-config all ethernet ports are bridged, but I want the devices connected to the ethernet ports to be in the same VLAN as the main SSID.

There is no hint in the wiki page how to get this working:
https://wiki.mikrotik.com/wiki/Manual:C ... with_VLANs

In the wiki example above, no pvid is set for the ethernet interfaces (to which the caps are connected) on the caps-manager!
Would it be sufficient to set the bridge port interface to the same VLAN as the caps interface (see below)?

/interface bridge port
add bridge=bridge1 interface=ether1-CAP1 pvid=10
/interface bridge vlan
add bridge=bridge1 vlan-ids=10 tagged=bridge1 untagged=ether1-CAP1
/interface vlan
add interface=bridge1 name=main vlan-id=10
/caps-man configuration
add name=main datapath.bridge=bridge1 datapath.vlan-id=10 datapath.vlan-mode=use-tag ...
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: CapsMan VLAN question

Sat Apr 18, 2020 2:02 am

If i understood right, you just have to set your eth1 as tagged and then at your AP side you must create an interface VLAN for that VID...
But why would you need to do that ?
 
dadaniel
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Fri May 14, 2010 11:51 pm

Re: CapsMan VLAN question

Sat Apr 18, 2020 9:18 am

If i understood right, you just have to set your eth1 as tagged and then at your AP side you must create an interface VLAN for that VID...
But why would you need to do that ?
I cannot send tagged VLAN to the AP as I have some dumb switches between the CAPS manager and the AP.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: CapsMan VLAN question

Sat Apr 18, 2020 5:00 pm

If they are indeed unmanaged switches i am pretty sure they will just forward everything and they will not drop any tagged traffic...
But as i asked in my previous porst, why you want to do that ? You can just configure your VLAN on capsman and thats it..
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11627
Joined: Thu Mar 03, 2016 10:23 pm

Re: CapsMan VLAN question

Sat Apr 18, 2020 11:54 pm

If they are indeed unmanaged switches i am pretty sure they will just forward everything and they will not drop any tagged traffic...
If they're brain-damaged, they might drop some VLAN-tagged frames ... those exceeding size of 1500 bytes. Most modern dumb switches support MTU of 1504 bytes (4 extra bytes needed for 802.1Q tags) though.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: CapsMan VLAN question

Sun Apr 19, 2020 2:33 am

If they're brain-damaged, they might drop some VLAN-tagged frames
Nice to know that :D
 
dadaniel
Member Candidate
Member Candidate
Topic Author
Posts: 220
Joined: Fri May 14, 2010 11:51 pm

Re: CapsMan VLAN question

Sun Apr 19, 2020 1:59 pm

But as i asked in my previous porst, why you want to do that ? You can just configure your VLAN on capsman and thats it..
I really want to avoid any additional configuration on AP side, so that even when it gets unplugged and a normal PC is plugged into the socket it would be inside the main vlan.
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: CapsMan VLAN question

Sun Apr 19, 2020 6:00 pm

even when it gets unplugged and a normal PC is plugged into the socket it would be inside the main vlan.
I would just advise you to make a better network design...
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19371
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: CapsMan VLAN question

Sun Apr 19, 2020 9:46 pm

Overall I concur and putting a managed switch vice unmanaged switch in between is an easy change other than $$cost.
However, looking at the brief snipped of code provided that should work, but since I cannot see the whole code and no mention of the other vlan, its too difficult to assess............
My advice would be to try and remove capsman and get the vlans working first and then introduce the added complexity of capsman for what I think is little gain, unless you have 3 or more APs.......

Who is online

Users browsing this forum: normis and 65 guests