hello i am using RB750. here is the scenario:
i want to use 3 ports : ether1, ether2 and ether3
ether1 is on vlan 1, ether2 is on vlan 2. and i want vlan 1 and vlan 2 to be separated from each other but i also want vlan 1 and vlan 2 to communicate with ether3
Samih you’re almost always better off putting a smart/intelligent switch in front of the mikrotik and doing vlans on there and trunking down those vlans as tagged down to the mikrotik.Use firewall/routing rules to stop networks from talking to each other.
Do you want vlan1 and vlan2 to be tagged on ether3? That’s I think the only way it’s actually seperated. You can easily set up your ports so vlan1 is untagged on ether1, vlan2 is untagged on ether2 and vlan1 and vlan2 are both tagged on ether 3. Can’t find it now but I did it on RB750G and I found some info on how to, I shall dig into it again. It is fairly simple when you start looking. If you’re using WinBox you set the port mode in Switch/Port. There you’d set all ports you’re using in this scenario to secure. Can’t find in WinBox where to change the tagging but in terminal it’s like this: You can do the secure part in the same thing.
/interface ethernet switch port
set 0 vlan-header=always-strip vlan-mode=secure
set 1 vlan-header=always-strip vlan-mode=secure
set 2 vlan-header=add-if-missing vlan-mode=secure
You might have to make some rules too, not sure what I did, would have to look it up.
thanks burkni for your reply. i searched a lot and i found something of what you had said. anyway i will make the setup like this.
the next step is to make ether1 communicate with ether3 and ether2 communicate with ether3.
can you offer some help pleasee.
thanks
by the way i want the packets going out of ether3 to be tagged with the vlan id of ether1 or ether2.
One question, are you just forwarding the traffic on these vlans through the interfaces or do you need to route from ether1/ether2 to ether3? If I understand you right you’re just forwarding the traffic?
If that is the case then this scenario should work for you:
This last line seems to be needed for things to work. This kind of “bridges” the vlans between these interfaces, it does no routing. The vlans are, or should be, completely seperated this way.
ok what you understood is the right thing. i want to forward packets from ether1/ether2 to ether3 with with vlan-id tags so i can separate then at ether3.
This worked on my RB750G, maybe RB750 is different, I wouldn’t think so though. The names I use, ether1 and so on, are the names on the interfaces, it might be different in your case. Check the names or change them to match this. That’s my best bet. You might be able to update the firmware/OS?
Hope this helps. I find it strange if there’s such a big difference between RB750 and RB750G. My router has Level 4 and is up-gradable to v6.x if that helps you troubleshoot this.
I need something like this but not exactly the same.
Unable to figure out from the example above. anyone can help?
ether1 - WAN port for ISP vlan10, vlan20, vlan30, vlan40 being tagged by ISP.
ether3 - I wan to forward vlan20, vlan30, vlan40 to this port which will be connected to another router. VoIP and IPTV is being connected to that router.
vlan10 is being use for internet for the other ports.