Whats VLAN?
VLAN is acronym of Virtual Local Area Network. It logically divides your local networks into several pieces so that provides better administrating network subnets and also safer securities
Checking VLAN status
show vlan
Check VLAN status brief
show vlan brief
Changing VLAN status
SW1#configure terminal #aka conf t
SW1(config)#interface GigabitEthernet0/1
SW1(config)#switchmode access vlan (VLAN number)
SW1(config)#end
SW1#wr