some vlan Qs

i’ve been reading a wiki on vlans but i have some questions

how do i set an interface to either trunk, access or hybrid

how do i make sure an interface assigns a Vlan tag to data as it flows through (i see you just add a Vlan interface to the int but will that do what i want or is there something missing)

how can i send untagged data through the trunk connection

There are a couple of ways of doing it, one is via the switch chip, and another is by doing it in software with a bridge. I have never used the switch chip in that kind of setup, so I can’t really speak how to configure a router that way and if it will do everything that you want to, but here is a link to the article that contains the information to get you started.

http://wiki.mikrotik.com/wiki/Manual:Switch_Chip_Features

For doing what you want in software, there are some basic things you need to understand. The first and most important one is that the router has no concept at all of a trunk or access port. It handles VLANs just like Linux does in that each VLAN is its own separate routed interface. This means you can run any service that you want to on that interface just like it was an Ethernet interface. This also means that in order to duplicate functionality that you want, it needs to be done with a bridge that will combine the interfaces via software.

1.) So to set a port as a trunk, you assign all of your VLANs to a given interface and bridge them all together. The most important part of the trunk configuration is that you assign the same horizon value to each VLAN port in the bridge. To make a port an access port, you bridge an Ethernet interface with a VLAN interface, the Ethernet interface that you bridge it with however cannot be the same interface the VLAN is on. You cannot make a hybrid port.

2.) Each VLAN interface as far as the MikroTik is concerned is it’s own routed interface. It will automatically assign tags to traffic as it leaves that interface, and strip off the tags as they come in for it to process them.

3.) I’m not sure what you are asking. You can run torch on the physical interface and select it to display the VLAN information. You can then see what traffic is coming in tagged or not.

thanks, i have a basic understanding now of how it should work.
at least now i can begin to compared it back to how cisco works.

I do believe i’m going to need to get me a few devices though to test to concept out so i properly understand it, too bad there isn’t a packet tracer like program for mikrotik