What is a VLAN and what is a trunk?

A VLAN splits a switch into separate layer-2 broadcast domains. A trunk carries multiple VLANs between switches, tagging frames with 802.1Q (the native VLAN is untagged).

interface g0/1 switchport mode trunk switchport trunk allowed vlan 10,20