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.
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,
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: