Getting started with Cisco Switch

Default baud rate for Cisco Switch is 9600

Switch to supervisor mode

Go into configuration terminal
config t (configuration terminal)

Set hostname
hostname myciscoswitch

Enable password and encrypt
enable secret p@ssw0rd
service password-encry

VLAN related

show vlan

Name VLAN 1
vlan 1 name myvlan1

Configure access port

interface fastethernet 0/x
switchport access vlan 2

Configure trunk port 

interface fastethernet0/x
switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allow vlan 10-15,20

Exit from configuration mode

Write current configuration to startup configuration in order to make it permanent upon reboot.
write memory