VLAN configuration problem!!![SOLVED]

Hello,
I am trying to configure a VLAN on rb-450g so you can communicate with a switch SMCGS24C-Smart and now it’s impossible to function properly. I have read the wiki guide, rather poor, and other documents to be, but none have achieved anything.

I created a vlan on a physical interface (eth1), I have assigned “vlan id = 2”
and this ip: 10.10.2.1/29, well so I can not ping connected directly to the eth1 interface. If I does in the switch a “vlan id = 2” with 2 ports and one I connect to my laptop, the other to Mikrotik, this does not work.
If I create a bridge and add as ports, eth1 (no ip) and vlan, I can ping vlan connected directly eth1 and through the switch. But if I do this configuration I can not create more vlan’s because I have put them in the BRIDGE1 (eth1 + VLAN3 +VLAN2) and the problems begin.
I need to have 4 vlan on eth1, how do I do?
VLAN2 = 10.10.2.1/29; vlan id = 2
VLAN3 = 10.10.3.1/29; Vlan id = 3
vlan4 = 10.10.4.1/29; Vlan id = 4
vlan5 = 10.10.5.1/29; Vlan id = 5

another thing is that I have a dhcp server in each vlan and be in a bridge I can not create them.
How I can create VLANs to work with layer-2 switch?
I have several days reading, trying and I can not run the network.
Thanks in advance and greetings.

Where Ethernet1 interface is connected?
Are there any interface with the same VLAN-ID, which is 2/3/4?

Hello,
Where Ethernet1 interface is connected?
eth1 is coneccted to switch;
Are there any interface with the same VLAN-ID, which is 2/3/4?
No, no other VLANs created in other interfaces. I have created another vlan (VLAN-ID 2) in switch for testing.
What am I doing wrong? How should create vlan’s on mikrotik?
thanks,

Nobody knows how to configure vlan on a Mikrotik so you can work with a layer-2 switch?
I need some help please.

Your configuration should be enough, when IP address is assigned to VLAN on switch.
Clarify the configuration of the switch, as I assume you want to assign specific VLAN for the port, then separate clients by different ports.

From RouterOS point of view it is enough to create VLAN interface on the interface, which is connected to the switch trunk port and address is assigned. I think that remaining configuration should be added to bridge, when upstream port can be linked with client port, then client can set IP address from 10.10.2.1/29 network (client does not have any VLAN of course, VLAN stuff is done by the switch).

Thanks for your response,
Exactly, I want to separate customers by assigning different vlan id port to the ports of the switch. I tried different settings on the switch with 4 vlan created and work perfectly in the switch, ie, ports that belong to a vlan can not see the other teams in other ports and vice versa, the configuration of the switch works.
I talked to the SMC Technical Support and they told me that in order to communicate with a router you only have to specify the port that connects the router to use “Tagged packets”, ie, to pass frames to the mark vlan-id, is not necessary trunk.
If I create a vlan on eth1, for example, and I assign an IP does not respond or be directly connected to the eth1 port with my laptop.
The communication problem is that Mikrotik does not include the frame with the vlan-id or something because the switch is adding the tag.
the option “Use service tag” on int vlan "is used to mark the package with the vlan-id leave the router and use the vlan-id field of incoming packets or what?

Solved, at last I have set the mikrotik vlan to work with as needed. The problem is that the VLAN information wiki is quite confusing and poor, the example shows that we must create the vlan on the interface that we are going to connect to another router and assign ip, after many tests that DOES NOT WORK.
To make it work is to create a bridge that has the ethernet port interface that we will physically connect the router destination.
About this bridge already created the vlan ip.Así we assign one can create a dhcp-server, the vlan-id are recognized, etc … everything works! I’m very happy because I have three days or more trying to mikro run my setup ← vlan 's → smc!
look like this, on one side:

/interface bridge
add admin-mac=00:00:00:00:00:01 ageing-time=5m arp=enabled auto-mac=no comment=“” disabled=no forward-delay=15s l2mtu=1632 max-message-age=20s mtu=1500 name=bridge0 priority=0x8000
protocol-mode=rstp transmit-hold-count=6

/interface bridge port
add bridge=bridge0 comment=“” disabled=no edge=auto external-fdb=auto horizon=none interface=ether3 path-cost=10 point-to-point=auto priority=0x80

/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=no use-ip-firewall-for-vlan=yes

/interface vlan
add arp=enabled comment=“” disabled=no interface=bridge0 l2mtu=1628 mtu=1500 name=vlan1 use-service-tag=yes vlan-id=1
add arp=enabled comment=“” disabled=no interface=bridge0 l2mtu=1628 mtu=1500 name=vlan2 use-service-tag=no vlan-id=2

/ip address
add address=192.168.5.1/29 broadcast=192.168.5.7 comment=“” disabled=no interface=vlan1 network=192.168.5.0
add address=192.168.5.10/29 broadcast=192.168.5.15 comment=“” disabled=no interface=vlan2 network=192.168.5.8

/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=static disabled=no interface=vlan2 lease-time=3d name=dhcp4
add address-pool=dhcp_pool3 authoritative=after-2sec-delay bootp-support=static disabled=no interface=vlan1 lease-time=3d name=dhcp5

But I need to know, “Use service tag”, for what? For pass taggeg packect throught this interface?

Sergejs Thanks for your help and interest. sincerely.

It’s 802.1ad - “q-in-q” or “stacked VLANs” in the documentation of other vendors.

Thanks very much,now is clear. QinQ!!!

hi friend can this topology possible on mikrotik or not
i tryed lot but vlan not communicating with each other

this is topology image