Lab - 6 - VTP Client and Server Configurations
Lab - 6 - VTP Client and Server Configurations
Objective
• Create a basic switch configuration and verify it.
• Create multiple VLANs, name them and assign multiple member ports to them.
• Configure the VTP protocol to establish Server and client switches.
• Create an 802.1q trunk line between the two switches to allow communication between paired VLANs.
• Then test the VLANs functionality by moving a workstation from one VLAN to another.
Background/Preparation
When managing a switch, the Management Domain is always VLAN 1. The Network
Administrator's workstation must have access to a port in the VLAN 1 Management Domain. All
ports are assigned to VLAN 1 by default.
Cable a network similar to the one of in diagram. The configuration output used in this lab is
produced from a 2950 series switch. Any other switch used may produce different output.
The following steps are to be executed on each switch unless specifically instructed
otherwise.
Start a HyperTerminal session.
Note: Go to the erase and reload instructions at the end of this lab. Perform those steps on
1-8 CCNA 3: Switching Basics and Intermediate Routing v 3.1 - Lab 9.2.5 Copyright 2003, Cisco Systems, Inc.
all switches in this lab assignment before continuing.
Switch_A#show vlan
Note: There should be an entry for VLAN 1 and the default VLANs (1002 +). If other VLANs
appear, they could be deleted as instructed in Step 2 of the Erasing and Reloading instructions at
the end of this lab or refer to the Lab Exercise: Deleting VLAN Configurations.
Switch_A#vlan database
Switch_A(vlan)#vtp server
Switch_A(vlan)#vtp domain group1
Switch_A(vlan)#exit
2-8 CCNA 3: Switching Basics and Intermediate Routing v 3.1 - Lab 9.2.5 Copyright 2003, Cisco Systems, Inc.
Use the show vlan command to verify that the VLANs have been created
correctly.
3-8 CCNA 3: Switching Basics and Intermediate Routing v 3.1 - Lab 9.2.5 Copyright 2003, Cisco Systems, Inc.
Step 7 Assign ports to VLAN 10
Assigning ports to VLANs must be done from the interface mode. Enter the following commands
to add ports 0/4 to 0/6 to VLAN 10:
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/4
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/5
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#interface fastethernet 0/6
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 10
Switch_A(config-if)#end
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/7
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#interface fastethernet 0/8
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#interface fastethernet 0/9
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 20
Switch_A(config-if)#end
Switch_A#configure terminal
Switch_A(config)#interface fastethernet 0/10
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 30
Switch_A(config-if)#interface fastethernet 0/11
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 30
Switch_A(config-if)#interface fastethernet 0/12
Switch_A(config-if)#switchport mode access
Switch_A(config-if)#switchport access vlan 30
Switch_A(config-if)#end
Switch_A#show vlan
b. Are ports 0/10 through 0/12 assigned to VLAN 30?
Switch_B#vlan database
Switch_B(vlan)#vtp client
Switch_B(vlan)#vtp domain group1
Switch_B(vlan)#exit
2900:
Switch_A(config)#interface fastethernet0/1
Switch_A(config-if)#switchport mode trunk
Switch_A(config-if)#switchport trunk encapsulation dot1q
Switch_A(config-if)#end
Switch_B(config)#interface fastethernet0/1
Switch_B(config-if)#switchport mode trunk
Switch_B(config-if)#switchport trunk encapsulation dot1q
Switch_B(config-if)#end
Switch_B#show vlan
b. Do VLANs 10, 20, and 30 show without having to type them in?
c. Why did this happen?
Step 15 Assign ports to a VLAN 10
Although the VLAN definitions have migrated to Switch_B using VTP, it is still necessary to assign
ports to these VLANs on Switch_B. Assigning ports to VLANs must be done from the interface
mode. Enter the following commands to add ports 0/4 to 0/6 to VLAN 10.
Switch_B#configure terminal
Switch_B(config)#interface fastethernet 0/4
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 10
Switch_B(config-if)#interface fastethernet 0/5
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 10
Switch_B(config-if)#interface fastethernet 0/6
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 10
Switch_B(config-if)#end
Switch_B#configure terminal
Switch_B(config)#interface fastethernet 0/7
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 20
Switch_B(config-if)#interface fastethernet 0/8
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 20
Switch_B(config-if)#interface fastethernet 0/9
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 20
Switch_B(config-if)#end
Switch_B#configure terminal
Switch_B(config)#interface fastethernet 0/10
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 30
Switch_B(config-if)#interface fastethernet 0/11
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 30
Switch_B(config-if)#interface fastethernet 0/12
Switch_B(config-if)#switchport mode access
Switch_B(config-if)#switchport access vlan 30
Switch_B(config-if)#end
Switch_B#show vlan
b. Are ports 0/10 through 0/12 assigned to VLAN 30?
d. Why?
d. Why?