You are on page 1of 5

LAB: Configuring VTP on Cisco Switches

VTP (VLAN Trunking Protocol): VTP is a Cisco proprietary protocol that allows for VLAN
configuration (addition, deletion and renaming of VLANs) to be consistentely
maintained across a switched network.

Objective:
 Configure hostname on switches.
 Configure switch S1 as vtp server and switch S2, S3 as vtp client.
 Configure vtp domain and vtp password on switches S1, S2 and S3.
 Create three Vlan Sales, HR and Marketing on switch S1.
 Configure Trunk Ports on switches S1, S2 and S3.
 Verify configured Trunk Ports on switch S1, S2 and S3.
 Verify VLAN Configuration on switch S1, S2 and S3.
 Verify VTP Status on switch S1, S2 and S3.
 Save the configuration of switch S1, S2 and S3.

Final Result: After configuring vtp on all switches if Switch S1 will automatically
propogate all created vlans (Sales, HR and Marketing) on Switch S2 and S3 then it
means you have successfully configured vtp on Cisco Switches.

LAB: Configuring VTP on Cisco Switches Page 79


Configuration on switch S1:

Configure hostname on switch S1:


Switch>enable
Switch#configure terminal
Switch(config)#hostname S1

Configure switch S1 as vtp server:


S1(config)#vtp mode server

Configure vtp domain and vtp password on switch S1:


S1(config)#vtp domain cisco.com
S1(config)#vtp password cisco

Create three Vlan Sales, HR and Marketing on switch S1:


S1(config)#vlan 2
S1(config-vlan)#name SALES
S1(config-vlan)#vlan 3
S1(config-vlan)#name HR
S1(config-vlan)#vlan 4
S1(config-vlan)#name Marketing
S1(config-vlan)#exit

Configure Trunk Ports on switch S1:


S1(config)#interface fastEthernet 0/1
S1(config-if)#switchport mode trunk
S1(config-if)#interface fastEthernet 1/1
S1(config-if)#switchport mode trunk
S1(config-if)#Ctrl+Z

Verify configured Trunk Ports on switch S1:


S1#show interfaces trunk

LAB: Configuring VTP on Cisco Switches Page 80


Verify VLAN Configuration on switch S1:
S1#show vlan

VLAN Name Status Ports


---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, Fa1/1, Fa2/1, Fa3/1
Fa4/1, Fa5/1
2 SALES active
3 HR active
4 Marketing active

Verify VTP Status on switch S1:


S1#show vtp status

VTP Version :2
Configuration Revision : 11
Maximum VLANs supported locally : 255
Number of existing VLANs :8
VTP Operating Mode : Server
VTP Domain Name : cisco.com
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled

Save the configuration of switch S1:


S1#copy running-config startup-config

LAB: Configuring VTP on Cisco Switches Page 81


Configuration on switch S2:

Configure hostname on switch S2:


Switch>enable
Switch#configure terminal
Switch(config)#hostname S2

Configure switch S2 as vtp client:


S2(config)#vtp mode client

Configure vtp domain and vtp password on switch S2:


S2(config)#vtp domain cisco.com
S2(config)#vtp password cisco

Configure Trunk Ports on switch S2:


S2(config)#interface fastEthernet 0/1
S2(config-if)#switchport mode trunk
S2(config-if)#exit
S2(config)#exit

Verify configured Trunk Ports on switch S2:


S2#show interfaces trunk

Verify VLAN Configuration on switch S2:


S2#show vlan

Verify VTP Status on switch S2:


S2#show vtp status

Save the configuration of switch S2:


S2#copy running-config startup-config

LAB: Configuring VTP on Cisco Switches Page 82


Configuration on switch S3:

Configure hostname on switch S3:


Switch>enable
Switch#configure terminal
Switch(config)#hostname S3

Configure switch S3 as vtp client:


S3(config)#vtp mode client

Configure vtp domain and vtp password on switch S3:


S3(config)#vtp domain cisco.com
S3(config)#vtp password cisco

Configure Trunk Ports on switch S3:


S3(config)#interface fastEthernet 0/1
S3(config-if)#switchport mode trunk
S3(config-if)#exit

Verify configured Trunk Ports on switch S3:


S3#show interfaces trunk

Verify VLAN Configuration on switch S3:


S3#show vlan

Verify VTP Status on switch S3:


S3#show vtp status

Save the configuration of switch S3:


S3#copy running-config startup-config

Note: You might be wonder that why we didn't create VLANs on Switch S2 and
S3; Well that is why we configured VTP on all three switches. We configured
Switch S1 as VTP Server and Switch S2 and S3 as VTP Client. So Switch S1 will
automatically propogate all created vlans on Switch S2 and S3. That is the whole
idea behind configuring VTP in a switched network environment.

LAB: Configuring VTP on Cisco Switches Page 83

You might also like