****************Basic Switch configuration***********************
S1(config)#VLAN
__ VLAN NUMBER ___S1(config)#
no VLAN__VLAN NUMBER___S1(config)#VLAN
__ VLAN NAME ___S1(config)#end
S1#show VLAN brief
S1#show VLAN ID
__ VLAN NUMBER __S1# delete flash: VLAN.DAT
DELETE ALL VLAN CONFIGURATION (ALL IS SRORED IN VLAN.DAT FILE)S1#show interface trunk
S1#show interfaces interface-id switchport
Switch(config-if)#switchport mode trunk !configure interface between 2 switches as trunk!
***************************NATIV VLAN CONFIGURATION**************
S1#configure terminal
! Enter global configuration mode on switch!S1(config)#interface F0/1
S1(config-if)#SWITCHPORT mode trunk
!Configure interface as trunk!S1(config-if)#SWITCHPORT TRUNK NATIVE VLAN 99
!Configure the VLAN 99 to be the native VLAN.!S1(config-if)#end
S1(config-if)#
no SWITCHPORT TRUNK NATIVE VLAN !reset the native VLAN back to VLAN 1.!****************ADDING INTERFACE TO VLAN*********************
S1(config)#interface fastethernet 0/1
S1(config-if)# SWITCHPORT
[ ACCESS | TRUNK] VLAN__VLAN NUMBER___S1(config-if)#duplex auto
[HALF|FULL|AUTO]S1(config-if)#speed auto
[10|100|AUTO]S1(config-if)#
no SWITCHPORT [ ACCESS | TRUNK] !REMOVE THE INTERFACE FROM THE VLAN TO VLAN1!S1(config-if)#
no SWITCHPORT TRUNK ALLOWED VLAN ! reset all of the VLANs configured on the trunk interface.!S1#show interface fa0/1 SWITCHPORT
------Adding port range/selective ports to VLAN------
S1(config)#interface range FA0/1 –
10 !Adding port range!S1(config)#interface range FA0/1, FA00/3, FA0/5 !
Adding selective ports!S1(config-if-range)#duplex auto !
[HALF|FULL|AUTO] EXAMPLEUSING RANGE!!S1(config-if-range)#speed auto !
[10|100|AUTO] EXAMPLEUSING RANGE!!S1(config-if-range)# SWITCHPORT
[ ACCESS | TRUNK] VLAN__VLAN NUMBER___ ! EXAMPLEUSING RANGE!!***************SWITCH MANAGEMENT INTERFACE********************************
S1(config)#interface VLAN1 !CONFIGURE TO THE UNTUGGED VLAN!
S1(config-if)#IP ADDRESS
__IP ADD’__ __SUBNETMUSK___S1(config-if)#NO SHUT
S1(config)#IP DEFAULT GATE-WAY
__G.W IP__******************VTP ***********************
S1#SHOW VTP STATUS
S1(CONFIG)#VTP MODE
_____ [SERVER|CLIENT|TRANSPARENT]S1(CONFIG)#VTP DOMAIN
___DOMAIN NAME____S1(CONFIG)#VTP PASSWORD
__PASSWORD__S1(CONFIG)#VTP PRUNNING

