![](/images/new-backgrounds/1149392/149392119x1.webp)
60 Chapter 2 Network configuration
VLANs spanning multiple switches
You can use VLANs to segment a network within a switch. When you connect multiple switches, it is possible to connect users of one VLAN with users of that same VLAN in another switch. However, the configuration guidelines depend on whether both switches support 802.1Q tagging.
With 802.1Q tagging enabled on a port for a VLAN, all frames leaving the port for that VLAN are marked as belonging to that specific VLAN. You can assign specific switch ports as members of one or more VLANs that span multiple switches, without interfering with the Spanning Tree Protocol.
VLANs spanning multiple 802.1Q tagged switches
Figure 17 shows VLANs spanning two BayStack 420 switches. The 802.1Q tagging is enabled on S1, port 2 and on S2, port 1 for VLAN 1 and VLAN 2. Both ports are tagged members of VLAN 1 and VLAN 2.
Figure 17 VLANs spanning multiple 802.1Q tagged switches
VLAN 1
VLAN 2
BayStack
S1 420
Both ports are tagged members of VLAN 1 and VLAN 2
BayStack
S2 420
9799EB