VTP Lab
VTP Lab
Addressing Table
Device
(Hostname)
Interface
IP Address
Subnet Mask
Default Gateway
S1
VLAN 99
172.17.99.11
255.255.255.0
N/A
S2
VLAN 99
172.17.99.12
255.255.255.0
N/A
S3
VLAN 99
172.17.99.13
255.255.255.0
N/A
PC1
NIC
172.17.10.21
255.255.255.0
172.17.10.1
PC2
NIC
172.17.20.22
255.255.255.0
172.17.20.1
PC3
NIC
172.17.30.23
255.255.255.0
172.17.30.1
PC4
NIC
172.17.10.24
255.255.255.0
172.17.10.1
PC5
NIC
172.17.20.25
255.255.255.0
172.17.20.1
PC6
NIC
172.17.30.26
255.255.255.0
172.17.30.1
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 1 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
Assignment
802.1q Trunks (Native VLAN 99)
VLAN 30 Guest (Default)
VLAN 10 Faculty/Staff
VLAN 20 Students
Network
172.17.99.0 /24
172.17.30.0 /24
172.17.10.0 /24
172.17.20.0 /24
Learning Objectives
Upon completion of this lab, you will be able to:
Erase the startup configuration and reload a switch to the default state
Create VLANs on the VTP server, and distribute this VLAN information to switches in the network
Explain the differences in operation between VTP transparent mode, server mode, and client
mode
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 2 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
S1#show vlan
VLAN Name
Status
Ports
---- -------------------------------- --------- ----------------------------1
default
active
Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15,Fa0/16
Fa0/17, Fa0/18, Fa0/19,Fa0/20
Fa0/21, Fa0/22, Fa0/23,Fa0/24
Gig1/1, Gig1/2
1002 fddi-default
active
1003 token-ring-default
active
1004 fddinet-default
active
1005 trnet-default
active
Step 3: Disable all ports by using the shutdown command.
S1(config)#interface range fa0/1-24
S1(config-if-range)#shutdown
S1(config-if-range)#interface range gi0/1-2
S1(config-if-range)#shutdown
S2(config)#interface range fa0/1-24
S2(config-if-range)#shutdown
S2(config-if-range)#interface range gi0/1-2
S2(config-if-range)#shutdown
S3(config)#interface range fa0/1-24
S3(config-if-range)#shutdown
S3(config-if-range)#interface range gi0/1-2
S3(config-if-range)#shutdown
Step 4: Re-enable the user ports on S2 and S3.
Configure the user ports in access mode. Refer to the topology diagram to determine which ports are
connected to end-user devices.
S2(config)#interface fa0/6
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/11
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S2(config-if)#interface fa0/18
S2(config-if)#switchport mode access
S2(config-if)#no shutdown
S3(config)#interface fa0/6
S3(config-if)#switchport mode access
S3(config-if)#no shutdown
S3(config-if)#interface fa0/11
S3(config-if)#switchport mode access
S3(config-if)#no shutdown
S3(config-if)#interface fa0/18
S3(config-if)#switchport mode access
S3(config-if)#no shutdown
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 3 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
:
:
:
:
:
2
0
255
5
Server
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 4 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 5 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
maximum 1
mac-address sticky
maximum 1
mac-address sticky
maximum 1
mac-address sticky
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 6 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
S3(config)#interface fa0/6
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#interface fa0/11
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#interface fa0/18
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#switchport port-security
S3(config-if)#end
maximum 1
mac-address sticky
maximum 1
mac-address sticky
maximum 1
mac-address sticky
VLAN 99 (management)
VLAN 10 (faculty/staff)
VLAN 20 (students)
VLAN 30 (guest)
management
faculty/staff
students
guest
Verify that the VLANs have been created on S1 with the show vlan brief command.
Step 6: Check if the VLANs created on S1 have been distributed to S2 and S3.
Use the show vlan brief command on S2 and S3 to determine if the VTP server has pushed its VLAN
configuration to all the switches.
S2#show vlan brief
VLAN Name
Status
Ports
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 7 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
10
20
30
99
faculty/staff
students
guest
management
active
active
active
active
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 8 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
S3(config)#vlan 20
S3(config-vlan)#name students
S3(config-vlan)#exit
S3(config)#vlan 30
S3(config-vlan)#name guest
S3(config-vlan)#exit
Here you see one of the advantages of VTP. Manual configuration is tedious and error prone, and any
error introduced here could prevent intra-VLAN communication. In addition, these types of errors can be
difficult to troubleshoot.
Step 9: Configure the management interface address on all three switches.
S1(config)#interface vlan 99
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#no shutdown
S2(config)#interface vlan 99
S2(config-if)#ip address 172.17.99.12 255.255.255.0
S2(config-if)#no shutdown
S3(config)#interface vlan 99
S3(config-if)#ip address 172.17.99.13 255.255.255.0
S3(config-if)#no shutdown
Verify that the switches are correctly configured by pinging between them. From S1, ping the
management interface on S2 and S3. From S2, ping the management interface on S3.
Were the pings successful? ___________________________________________
If not, troubleshoot the switch configurations and try again.
Step 10: Assign switch ports to VLANs.
Refer to the port assignment table at the beginning of the lab to assign ports to the VLANs. Use the
interface range command to simplify this task. Port assignments are not configured through VTP. Port
assignments must be configured on each switch manually or dynamically using a VMPS server. The
commands are shown for S3 only, but both S2 and S1 switches should be similarly configured. Save the
configuration when you are done.
S3(config)#interface range fa0/6-10
S3(config-if-range)#switchport access vlan 30
S3(config-if-range)#interface range fa0/11-17
S3(config-if-range)#switchport access vlan 10
S3(config-if-range)#interface range fa0/18-24
S3(config-if-range)#switchport access vlan 20
S3(config-if-range)#end
S3#copy running-config startup-config
Destination filename [startup-config]? [enter]
Building configuration...
[OK]
S3#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.
Page 9 of 10
CCNA Exploration
LAN Switching and Wireless: VTP
Pruning saves LAN bandwidth because broadcasts do not have to be sent to switches that do not need
them.
Pruning is configured on the server switch with the vtp pruning command in global configuration mode.
The configuration is pushed to client switches. However, because S3 is in transparent mode, VTP pruning
must be configured locally on that switch.
Confirm VTP pruning configuration on each switch using the show vtp status command. VTP pruning
mode should be enabled on each switch.
S1#show vtp status
VTP Version
Configuration Revision
Maximum VLANs supported locally
Number of existing VLANs
VTP Operating Mode
VTP Domain Name
VTP Pruning Mode
<output omitted>
:
:
:
:
:
:
:
2
17
255
9
Server
Lab4
Enabled
Task 6: Clean Up
Erase the configurations and reload the switches. Disconnect and store the cabling. For PC hosts that are
normally connected to other networks (such as the school LAN or to the Internet), reconnect the
appropriate cabling and restore the TCP/IP settings.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page 10 of 10