Community discussions

MikroTik App
 
fedor47271
just joined
Topic Author
Posts: 24
Joined: Thu Nov 02, 2017 11:52 am

Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 10:13 am

Hi guys,

I have problem with implementing my topology shema(in attachment). I created 2 Vlans (10 and 20) on my hAP ac2 interface ether3. I used ether 3 as trunk port. Also i made two DHCP servers on each VLANs.
VLAN 10 - 192.168.10.0/24
VLAN 20 - 192.168.20.0/24


Then i connect my zyxel1900-24 interface 1 to mikrotik inteface 3. Then i create and configure my zyxel VLANs.
VLAN 10 - port 1 tagged and ports 3,5 untagged
VLAN 20 - port 1 tagged and ports 15,16 untagged

After that I connect my notebook as DHCP client in any VLANs untagged ports and no success. With static IP on notebook the same problem.
I read many manuals about that and don't understand what happends.
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22160
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 3:37 pm

Great thanks for the diagram! To see if there is an issue on the MT side of the house please post your config
/export hide-sensitive file=yourconfigapr25
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 3:39 pm

Based on the "S" on the left, is ether3 configured as bridge port? That would not be right. If you need the port only for these two vlans, remove it from bridge. If you need it as part of bridge (for other untagged traffic), here is some reading material: https://wiki.mikrotik.com/wiki/Manual:I ... _Filtering
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22160
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 3:42 pm

Sob is usually behind the latest trends, still wears bell-bottom jeans, all to say the best reference is this one with good examples.......
viewtopic.php?f=13&t=143620
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 3:56 pm

I find the examples in official manual very helpful. Short and simple, you immediately know what's the logic behind it.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22160
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 4:13 pm

I find the examples in official manual very helpful. Short and simple, I know immediately the logic behind it, without any explanation because I had a serious accident - head trauma as a child and half my brain is bionic.
Fixed for accuracy.
 
fedor47271
just joined
Topic Author
Posts: 24
Joined: Thu Nov 02, 2017 11:52 am

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 11:10 pm

Great thanks for the diagram! To see if there is an issue on the MT side of the house please post your config
/export hide-sensitive file=yourconfigapr25


Here are my config of the hAP ac2 as .rsc file. And screenshots of Zyxel gs1900 with all VLANs.
You do not have the required permissions to view the files attached to this post.
 
fedor47271
just joined
Topic Author
Posts: 24
Joined: Thu Nov 02, 2017 11:52 am

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 11:13 pm

Based on the "S" on the left, is ether3 configured as bridge port? That would not be right. If you need the port only for these two vlans, remove it from bridge. If you need it as part of bridge (for other untagged traffic), here is some reading material: https://wiki.mikrotik.com/wiki/Manual:I ... _Filtering
You are right it was in bridge but I tried also without bridge adding as trunk port and no success. It also unworking.

Now I understand logic of Mikrotiks VLANs clearly but it dosn't work in my configuration for some reason. :?

I trying to do this during 3 days. I made my shema as simple as I can.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22160
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router hAP ac2 on stick (VLANs)

Thu Apr 25, 2019 11:53 pm

That is not the complete config. :-(
No ethernet interface No interface bridge ports, no interface bridge vlans no firewall rules etc........
Could care less about the pictures for now as I want to make sure what is hitting the zyxel device is correct..........
 
fedor47271
just joined
Topic Author
Posts: 24
Joined: Thu Nov 02, 2017 11:52 am

Re: Router hAP ac2 on stick (VLANs)

Fri Apr 26, 2019 9:35 am

That is not the complete config. :-(
No ethernet interface No interface bridge ports, no interface bridge vlans no firewall rules etc........
Could care less about the pictures for now as I want to make sure what is hitting the zyxel device is correct..........
I made for my router "restore default" coz of that config seems not complete. I tried made only VLAN trunk for simplicity.

Firewall, bridges are empty. Only VLAN trunk on ether 3.
 
sid5632
Long time Member
Long time Member
Posts: 558
Joined: Fri Feb 17, 2017 6:05 pm

Re: Router hAP ac2 on stick (VLANs)  [SOLVED]

Fri Apr 26, 2019 10:34 am

On the Zyxel, you would seem to need to set the PVID parameter on ports 3,5,15,16 to 10 or 20 as appropriate.
I would change port 1 as well to only allow tagged frames, eventually, after you've got it working.
(Your diagram is wrong too - the line pointing to port 5 actually seems to point to port 6, and 15 and 16 seem to point to 17 and 18.)
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 22160
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Router hAP ac2 on stick (VLANs)

Fri Apr 26, 2019 7:42 pm

Please read the link I provided it demonstrates how to setup vlans.........
 
fedor47271
just joined
Topic Author
Posts: 24
Joined: Thu Nov 02, 2017 11:52 am

Re: Router hAP ac2 on stick (VLANs)

Fri Apr 26, 2019 9:39 pm

On the Zyxel, you would seem to need to set the PVID parameter on ports 3,5,15,16 to 10 or 20 as appropriate.
I would change port 1 as well to only allow tagged frames, eventually, after you've got it working.
(Your diagram is wrong too - the line pointing to port 5 actually seems to point to port 6, and 15 and 16 seem to point to 17 and 18.)
Thanks man. you are absolutely right. I found this solution today by myself. PVIDs helps me to fix this issue.
About diagram, sry. I know about this mistake, but it is not critical, I think. :D