I want configure it my network like this

Please help me, how to configure it VLAN on my mikrotik router and switch.
and tell me about using tagged vlan and untagged vlan on my switch.
Nb: My AP and CPE is able to use Vlan tagged and untagged.
I want configure it my network like this

Please help me, how to configure it VLAN on my mikrotik router and switch.
and tell me about using tagged vlan and untagged vlan on my switch.
Nb: My AP and CPE is able to use Vlan tagged and untagged.
You just need to add the 3 vlans to your eth2 interface.
_[admin@MikroTik] interface vlan> add name=vid160 vlan-id=160 interface=ether2
[admin@MikroTik] interface vlan> print
Flags: X - disabled, R - running
0 X vid160 1500 enabled 160 ether2
[admin@MikroTik] interface vlan> enable 0
[admin@MikroTik] interface vlan> print
Flags: X - disabled, R - running
0 R vid160 1500 enabled 160 ether2
[admin@MikroTik] interface vlan>_
Then add the IP address to the new VLAN
_[admin@MikroTik] ip address> add address=x.x.x.x/x interface=vid160
[admin@MikroTik] ip address> print
Flags: X - disabled, I - invalid, D - dynamic
0 x.x.x.x x.x.x.x x.x.x.x vid160
[admin@MikroTik] ip address>_
Just replicate these two things for each new vlan and associated IP.
As for the switch, put ports 17 & 18 into tagged trunk mode.
This should do what you want…
(sorry about the formatting of text, too late at night)
Andy
Hi tasmanet, thanks before for ur advice..
But, until now i cant solve my problem. i have set ports 17 and 18 as native trunk.. i have try using 2 hardware,.. first, ive used catalyst CE500 Switch with 2 ports as trunk, but still not solve my problem, between my client and mikrotik vlan (sub-intervace) cant comunicate each other. \ \ second scheme, ive used cisco router 1811 with 2 WAN and 8 Ethernet switch. I`ve configure 2 porst as native trunk. but still cannot solve my problem.
mr. tasmanet..maybe u can give example command using catalyst switch to configure it as trunk. to allow all vlan on mikrotik.
Hello,
You could try something like this:
conf t
interface f0/17
switchport
switchport trunk encapsulation dot1q
switchport mode trunk
switchport trunk allowed vlan 160,168,178
no shut
These vlans have to be crated at switch’s vlan database.
In this case you don’t need native vlan, cause both equipments can use 802.1Q.
Cheers
I have tested this setup. I am sure that you can either take out the switch all together or just reset to default and vlans will work. I have actually connected a plain HUB in place of the switch and it still worked.
New vlans are disabled by default. You need to enable that with the command:
add name=“vlan1” mtu=1500 arp=enabled vlan-id=101 interface=ether1 comment=“” disabled=no
Also, have you checked you routing?
Hope this helps.