SWOS/CSS326-VLAN-Example: Difference between revisions
CSS326 →Port Based VLAN |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== | {{Warning|This manual is moved to [[https://help.mikrotik.com/docs/pages/viewpage.action?pageId=76415036#CRS3xxandCSS32624G2S+seriesManual-VLANConfigurationExample https://help.mikrotik.com/docs/pages/viewpage.action?pageId=76415036#CRS3xxandCSS32624G2S+seriesManual-VLANConfigurationExample]]}} | ||
{{ 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 [[SwOS/CRS3xx#VLAN_and_VLANs | VLAN Manual ]] for a more detailed property description.}} | |||
===VLAN Example #1 (Trunk and Access Ports)=== | |||
[[File:Port-Based.png|center|frame|alt=Alt text|Example 1 Setup Diagram]] | [[File:Port-Based.png|center|frame|alt=Alt text|Example 1 Setup Diagram]] | ||
Line 14: | Line 18: | ||
3) At the end, enable strict VLAN filtering to ensure only allowed VLANs can pass through the ports. | 3) At the end, enable strict VLAN filtering to ensure only allowed VLANs can pass through the ports. | ||
<br/> | <br/> | ||
[[File:vlane3_css326.png|alt=Alt text|VLAN Filtering|center|frame]] | |||
<br/> | |||
===VLAN Example #2 (Trunk and Hybrid Ports)=== | |||
[[File:Portbased-vlan2.png|center|frame|alt=Alt text|Example 2 Setup Diagram]] | |||
<br/> | |||
1) In VLAN menu configure Default VLAN ID on planned hybrid ports to assign untagged traffic to specific VLAN in the switch. | |||
[[File:vlane1_css326.png|alt=Alt text|Default VLAN ID for untagged traffic|center|frame]] | |||
<br/> | |||
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. | |||
[[File:Swos_vlan_example2.png|alt=Alt text|VLAN Membership|center|frame]] | |||
<br/> | |||
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 <code>any</code>, 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 [[SwOS/CSS326#ACL_Tab | ACL rules]]. | |||
[[File:vlane3_css326.png|alt=Alt text|VLAN Filtering|center|frame]] | [[File:vlane3_css326.png|alt=Alt text|VLAN Filtering|center|frame]] | ||
<br/> | <br/> |
Latest revision as of 15:59, 21 July 2021
Warning: This manual is moved to [https://help.mikrotik.com/docs/pages/viewpage.action?pageId=76415036#CRS3xxandCSS32624G2S+seriesManual-VLANConfigurationExample]
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)
1) In VLAN menu configure Default VLAN ID on planned access ports to assign untagged traffic to specific VLAN in the switch.
2) In VLANs menu add VLAN entries and specify port membership to certain VLANs.
3) At the end, enable strict VLAN filtering to ensure only allowed VLANs can pass through the ports.
VLAN Example #2 (Trunk and Hybrid Ports)
1) In VLAN menu configure Default VLAN ID on planned hybrid ports to assign untagged traffic to specific VLAN in the switch.
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.
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.