SWOS/CSS326-VLAN-Example

From MikroTik Wiki
Jump to navigation Jump to search



Note: These are basic VLAN configuration examples, in case you need more advanced options (e.g. ingress VLAN filtering, VLAN mirroring) then please refer to VLAN Manual for a more detailed property description.


VLAN Example #1 (Trunk and Access Ports)

Alt text
Example 1 Setup Diagram


1) In VLAN menu configure Default VLAN ID on planned access ports to assign untagged traffic to specific VLAN in the switch.

Alt text
Access Ports


2) In VLANs menu add VLAN entries and specify port membership to certain VLANs.

Alt text
VLAN Membership


3) At the end, enable strict VLAN filtering to ensure only allowed VLANs can pass through the ports.

Alt text
VLAN Filtering


VLAN Example #2 (Trunk and Hybrid Ports)

Alt text
Example 2 Setup Diagram


1) In VLAN menu configure Default VLAN ID on planned hybrid ports to assign untagged traffic to specific VLAN in the switch.

Alt text
Default VLAN ID for untagged traffic


2) In VLANs menu add VLAN entries and specify port membership to certain VLANs. Just like the previous example, add ports with untagged traffic (defined by Default VLAN ID) to certain VLAN (black arrows). Also, we need to add ports, which are allowed to forward tagged traffic.

Alt text
VLAN Membership


3) At the end, enable strict VLAN filtering to ensure only allowed VLANs can pass through the ports. For hybrid ports to work properly, make sure VLAN Receive is selected as any, otherwise ingress tagged or untagged traffic can be dropped (depending on selected option), but for the trunk port, it is possible to allow only packets with VLAN tag. To filter specific ingress VLAN traffic on hybrid ports, use ACL rules.

Alt text
VLAN Filtering