Hi, does anyone have an example how to VLAN tag incomming frames into a 750G eth port?
I would also like to know how to remove any vlan tag on the egress of the same port?
I’m assuming here its something to do with a `switch’ command.
Its so I can plug a pc directly into a eth port, Vlan tag it, put it up to ROS bridge/trunk/encapsulate it in a tunnel/encrypt it etc then pass it to another 750g router and do the reverse on the other side, got a couple of vlans to push through the trunk too.
I would just like to point out that what you are looking for is functionality typical for a switch, not a router.
Even though 750Gs and other models do have switch chips they don’t have a large feature set. You’d be better off just using a switch to do switching.
I hear what your saying there fewi, unfortunatly I dont have the hardware here at work.
I understand that there is a limit to adding rules to the atheros chipset in the 750G. But I would think that VLAN tagging/untagging 2 or 3 ports of the 750G shouldnt be beyond this models capabilities, looking at the http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features guide I should be able to acheive this with this model.
Yes. And the example at the bottom is specifically what you’re asking to do - three ports (ether2 - 4) untagged on three VLANs, ether5 as a trunk with 802.1q tagged frames. The chipset mentioned is the one in a 750G.
The first section is a little unintuitive, but is clear when written like this:
/interface ethernet switch port
set [find name=ether2] vlan-header=always-strip vlan-mode=secure
set [find name=ether3] vlan-header=always-strip vlan-mode=secure
set [find name=ether4] vlan-header=always-strip vlan-mode=secure
set [find name=ether5] vlan-header=add-if-missing vlan-mode=secure
I’d still get a switch, but I’ll shut up about that now.