How to configure VLAN VTP DTP cheat sheet

CommandDescriptions
Switch(config)#vtp mode serverConfigure Switch as VTP Server
Switch(config)#vtp mode clientConfigure Switch as VTP Client
Switch(config)#vtp mode transparentConfigure Switch as VTP Transparent
Switch(config)#no vtp mode ConfigureSwitch to default VTP Server Mode
Switch(config)#vtp domain domain-nameSet VTP Domain name.
Switch(config)#vtp password passwordSet VTP password. Password is case sensitive
Switch#show vtp statusDisplay VTP status including general information
Switch#show vtp countersShow VTP counters of switch
Switch(config-if) #switchport mode trunkChange interface mode in Trunk
Switch(config)#vlan 10Create VLAN and associate number ID 10 with it
Switch(config-vlan)#name SalesAssign name to VLAN
Switch(config-vlan)#exitReturn in Global configuration mode from VLAN configuration mode
Switch(config)#interface fastethernet 0/1Enter in interface configuration mode
Switch(config-if)#switchport mode accessSet interface link type to access link
Switch(config-if)#switchport access vlan 10Assign this interface to VLAN 10
Switch#show vlanDisplays VLAN information
Switch#show vlan briefDisplays VLAN information in short
Switch#show vlan id 10Displays information VLAN ID 10 only
Switch#show vlan name salesDisplays information about VLAN named sales only
Switch(config)#interface fastethernet 0/8Enter in Interface configuration mode
Switch(config-if)#no switchport access vlan 10Removes interface from VLAN 10 and reassigns it to the default VLAN - VLAN 1
Switch(config-if)#exitMove back to Global configuration mode
Switch(config)#no vlan 10Delete VLAN 10 from VLAN database
Switch#copy running-config startup-configSaves the running configuration in NVRAM

Comments