CertificationZone Page 1 of 17
11/06/01
Date of Issue: 04-01-2001
CCNA Layer 2 Switching - Virtual Local
Area Networks
Lab Scenario
by Leigh Anne Chisholm
Introduction
Preparing Your Switches
Section 1 - Configuring VLAN Trunk Protocol (VTP)
Section 2 - Creating VLANs
Section 3 - Verifying VLAN Functionality
Section 4 - Configuring an ISL Trunk Link
Section 5 - More VTP Configuration
Section 6 - Viewing Spanning Tree Protocol Information
Section 7 - Configuring ISL Routing
The VLAN Wrap-Up
Introduction
This lab is designed to walk you through a basic VLAN configuration using two Catalyst 1900 (or 2820) series
switches.
This lab shows you step-by-step what commands to type in and how to check that you have configured things
correctly. Each switch must be configured with the Enterprise edition software. The Cisco IOS software CLI is not
available if the switch has been configured with the Standard edition software.
While it is possible to complete most of this lab using a single Catalyst 1900/2820 series switch, a second Catalyst
1900/2820 series switch (or Cisco switch that supports ISL) is required to complete Section 4, "Configuring an ISL
Trunk Link."
Section 3, "Verifying VLAN Functionality" and Section 4, "Configuring an ISL Trunk Link," require access to two PCs
that can be connected directly to the switch ports of the primary switch that you will use for the lab. To successfully
complete these sections, you must be able to alter the IP address configuration information on each of these PCs.
To complete Section 4, "Configuring an ISL Trunk Link," you need one crossover cable to connect the switches.
Section 7, "Configuring ISL Routing," requires access to a Cisco router that supports ISL trunking and that is
1. From the "User Interface Menu", select option "[K] Command Line".
A ">" prompt will be displayed, indicating you have entered the user exec mode of the switch.
2. Enter privileged exec mode by issuing the command
enable
A "# "prompt will be displayed.
3. To begin configuring the switch name, IP information, and password; enter global configuration mode by
issuing the command
configure terminal
The prompt "(config)#" will be displayed, indicating that you have entered global configuration mode.
4. To set the name of the switch to "SwitchA," issue the command
hostname SwitchA
You will notice that the prompt now displays the name of the switch as well as the global configuration mode
prompt: "SwitchA(config)#."
5. To set the IP address and subnet mask for the switch, issue the command
ip address 172.16.1.200 255.255.255.0
6. To set the default gateway for the switch, issue the command
ip default-gateway 172.16.1.1
7. To set the enable password to "secret," issue the command
enable secret secret
Primary Switch:
Switch Name: SwitchA
IP Address: 172.16.1.200
Subnet Mask: 255.255.255.0
Default Gateway: 172.16.1.1
Enable Password: secret
Secondary Switch:
Switch Name: SwitchB
IP Address: 172.16.1.201
Subnet Mask: 255.255.255.0
Default Gateway: 172.16.1.1
show vtp
You should see the following output:
SwitchA#show vtp
VTP version: 1
Configuration revision: 0
Maximum VLANs supported locally: 1005
Number of existing VLANs: 6
VTP domain name : CertZone
CertificationZone Page 4 of 17
11/06/01
VTP password :
VTP operating mode : Transparent
VTP pruning mode : Disabled
VTP traps generation : Enabled
Configuration last modified by: 172.16.1.200 at 00-00-0000 00:00:00
SwitchA#
6. Optional: Issue the command
show vtp ?
Note that the only keyword available with the show vtp command is "statistics".
7. Optional: Issue the command
show vtp statistics
You should see the following output:
SwitchA#show vtp statistics
Receive Statistics Transmit Statistics
-------------------------------- -------------------------------
Summary Adverts 0 Summary Adverts 0
Subset Adverts 0 Subset Adverts 0
Advert Requests 0 Advert Requests 0
Configuration Errors:
Revision Errors 0
CertificationZone Page 5 of 17
11/06/01
Section 2 - Creating VLANs
In this section, you will create three VLANs: Engineering, Marketing, and Production. Once these VLANs have been
created, you will assign two ports to each VLAN using the static membership configuration option.
Begin this part of the lab by configuring SwitchA.
1. On SwitchA, enter global configuration mode from the privileged exec mode prompt by issuing the command
configure terminal
The prompt "SwitchA(config)#" will be displayed, indicating you have entered global configuration mode.
2. To create VLAN 2 - Engineering, issue the command
vlan 2 name Engineering
Note: When typing in the names of VLANs, remember that name information is case sensitive.
3. To create VLAN 3 - Marketing, issue the command
vlan 3 name Marketing
4. To create VLAN 4 - Production, issue the command
vlan 4 name Production
5. To end the configuration process, type exit.
6. Confirm your configuration by issuing the command
show vlan
You should see the following output:
SwitchA#show vlan
VLAN Name Status Ports
--------------------------------------
1 default Enabled 1-24, AUI, A, B
2 Engineering Enabled
3 Marketing Enabled
4 Production Enabled
1002 fddi-default Suspended
1003 token-ring-defau Suspended
1004 fddinet-default Suspended
9 1 Static 21 1 Static
10 1 Static 22 1 Static
11 1 Static 23 1 Static
12 1 Static 24 1 Static
AUI 1 Static
A 1 Static
B 1 Static
SwitchA#
Note that all ports belong to VLAN 1 by default and that the membership type of each port is static.
8. Enter global configuration mode from the privileged exec mode prompt by issuing the command
configure terminal
The prompt "SwitchA(config)#" will be displayed, indicating you have entered global configuration mode.
9. Assign Ethernet ports 0/1 and Ethernet 0/2 to VLAN 2 - Engineering. To assign an Ethernet port membership
in a VLAN, you must enter interface configuration mode.
Enter interface configuration mode for Ethernet 0/1 by issuing the command
interface Ethernet 0/1
10. To assign Ethernet 0/1 to VLAN 2, issue the command
vlan-membership static 2
11. Repeat this process, assigning ports to VLANs as follows:
Ethernet 0/2 to VLAN 2
Ethernet 0/3 to VLAN 3
Ethernet 0/4 to VLAN 3
Ethernet 0/5 to VLAN 4
Ethernet 0/6 to VLAN 4
Ethernet 0/7 to VLAN 5
12. To end the configuration process, type exit.
13. Confirm your configuration by issuing the command
show vlan