All Configuration Command For VLAN :
Instructions to design VLAN VTP DTP cheat sheet
Command Descriptions
Switch(config)#vtp mode server Configure Switch as VTP Server
Switch(config)#vtp mode client Configure Switch as VTP Client
Switch(config)#vtp mode transparent Configure Switch as VTP Transparent
Switch(config)#no vtp mode Configure Switch to default VTP Server Mode
Switch(config)#vtp area space name Set VTP Domain name.
Switch(config)#vtp secret phrase password Set VTP secret key. Secret phrase is case delicate
Switch#show vtp status Display VTP status including general data
Switch#show vtp counters Show VTP counters of switch
Switch(config-if) #switchport mode trunk Change interface mode in Trunk
Switch(config)#vlan 10 Create VLAN and partner number ID 10 with it
Switch(config-vlan)#name Sales Assign name to VLAN
Switch(config-vlan)#exit Return in Global setup mode from VLAN design mode
Switch(config)#interface fastethernet 0/1 Enter in interface setup mode
Switch(config-if)#switchport mode access Set interface connect type to get to interface
Switch(config-if)#switchport access vlan 10 Assign this connection point to VLAN 10
Switch#show vlan Displays VLAN data
Switch#show vlan brief Displays VLAN data in short
Switch#show vlan id 10 Displays data VLAN ID 10 as it were
Switch#show vlan name sales Displays data about VLAN named deals as it were
Switch(config)#interface fastethernet 0/8 Enter in Interface arrangement mode
Switch(config-if)#no switchport access vlan 10 Removes interface from VLAN 10 and reassigns it to the default VLAN - VLAN 1
Switch(config-if)#exit Move back to Global design mode
Switch(config)#no vlan 10 Delete VLAN 10 from VLAN data set
Switch#copy running-config startup-config Saves the running arrangement in NVRAM