Configurez la table Port/Vlan de sw2 comme indiqué ci-dessous.
Emit a broadcast frame from st1’s network interface: only the interfaces belonging to the same VLAN, and connected to sw1, receive the frame.
Move to the Design mode.
Remove the cable that connects the two switches.
Choose "Configure" in the sw1's pop-up menu, and add an 802.1q port as illustrated below.
Do the same thing with sw2.
Connect the two switches using their 802.1q port, which appears a little thicker on the switch.
Move back to the Ethernet mode.
Once again, emit a broadcast frame from the st1's interface:
This time, the frame is emitted to all the interfaces of the VLAN 2.
As it emits the frame to the second switch, the sw1 switch adds an 802.1q mark to it. This mark appears in red at the head of the frame. Use the "slow motion" option if you need to.
The sw2 switch removes this mark when on receiving the frame.
Move to the design mode, and set the two switches so that they manage level-2 VLANs.
Move back to the Ethernet mode.
Select "reset port/vlan table" in the pop-up menus of both switches.
Fill up the Mac/Vlan table of sw1, using its pop-up menu, as illustrated below.
Fill up the Mac/Vlan table of sw2, as illustrated below.
Watch their Port/Vlan table: all the ports are in the VLAN 1 (vlan by default).
Emit a broadcast frame from st1, and then look at the Port/Vlan table of sw1: it stored all the information concerning the vlan linked to its first port.
Choose "Discover the network" in the pop-up menu of both switches.
Re-emit a broadcast frame from st1: all the Mac/Port tables are up to date; all the interfaces of vlan 2 receive the frame.