2618 switch VLAN configuration Switch A and switch B are connected through port 16. Port 1 of Switch A and Port 2 of Switch B are members of VLAN2, port 2 of vswitch A and port 4 of vswitch B are members of vlan3. 1.15 configuration steps vswitch A is configured as follows: zte (cfg) # set vlan 2 add port 16 tag // add port 16 to VLAN 2, and type tagzte (cfg) # set vlan 2 add port 1 untag // add port 1 to VLAN 2 without tagzte (cfg) # set vlan 3 add port 16 tag // add port 16 to VLAN 3 and add tagzte (cfg) # set vlan 3 add port 2 untag // add port 2 to VLAN 3 without tagzte (cfg) # set port 1 pvid 2 // set PVID of port 1 to 2zte (cfg) # set port 2 pvid 3 // set PVID of port 2 to 3zte (cfg) # set vlan 2-3 enable // The specific configurations of enable VLAN 2 and vswitch B are as follows: zte (cfg) # set Vlan 2 add port 16 tag // add port 16 to VLAN 2 and add tagzte (cfg) # set vlan 2 add port 2 untag // add port 2 to VLAN 2, do not add tagzte (cfg) # set vlan 3 add port 16 tag // add port 16 to VLAN 3 and add tagzte (cfg) # set vlan 3 add port 4 untag // add port 4 to VLAN 3 without tagzte (cfg) # set port 2 pvid 2 // set PVID of port 2 to 2zte (cfg) # set port 4 pvid 3 // set PVID of port 4 to 3zte (cfg) # set vlan 2-3 enable VLAN 2 and 31.16 verification methods PC-1 and PC-3 can interwork PC-2 and PC-4 can interwork PC-1 and PC-4 cannot interwork, PC-2 and PC-3 cannot interwork The experiment shows that devices in the same vlan can communicate with each other. Devices in different VLANs cannot communicate with each other. Multiple VLANs can be transmitted through port tags.