Configuring Standard VLANs on Catalyst Switches
Objective
The objective of this lab exercise is to learn and understand how to configure standard VLANs (1–1001) on Cisco Catalyst IOS Switches. Additionally, you will familiarize yourself with the commands available in Cisco IOS to validate and check your configurations.
Purpose
VLAN configuration is a fundamental skill. VLANs allow you to segment your network into multiple, smaller broadcast domains. As a Cisco engineer, as well as in the Cisco CCNA exam, you will be expected to know how to configure VLANs on Cisco switches.
Lab Topology
Use the following topology to complete this lab exercise:
Task 1: Configure Hostname and VLANs
Objective: In preparation for VLAN configuration, configure a hostname on SW1 as well as the VLANs depicted in the topology.
Configuration Steps:
Switch#config t Enter configuration commands, one per line. End with CTRL/Z. Switch(config)#hostname SW1 SW1(config)#vlan 10 SW1(config-vlan)#name SALES SW1(config-vlan)#exit SW1(config)#vlan 20 SW1(config-vlan)#name MANAGERS SW1(config-vlan)#exit SW1(config)#vlan 30 SW1(config-vlan)#name ENGINEERS SW1(config-vlan)#exit SW1(config)#vlan 40 SW1(config-vlan)#name SUPPORT SW1(config-vlan)#exit
Note: By default, Cisco switches are VTP servers, so no configuration is necessary for server mode. Use the show vtp status command to view the current VTP operating mode of the switch.
SW1#show vtp status VTP Version capable : 1 to 2 VTP version running : 1 VTP Domain Name : VTP Pruning Mode : Disabled VTP Traps Generation : Disabled Device ID : 000A.F36E.A500 Configuration last modified by 0.0.0.0 at 3-1-93 00:13:31 Local updater ID is 0.0.0.0 (no valid interface found) Feature VLAN : -------------- VTP Operating Mode : Server Maximum VLANs supported locally : 255 Number of existing VLANs : 9 Configuration Revision : 8 MD5 digest : 0x8E 0x3F 0x18 0xC7 0x8B 0x18 0x65 0x05 0xEB 0x97 0xF4 0x21 0x13 0x9D 0xCF 0x9A SW1#
Task 2: Configure Access Ports and Assign VLANs
Objective: Configure ports FastEthernet0/5 to FastEthernet0/8 as access ports and assign them to the VLANs specified.
Configuration Steps:
SW1(config)#interface fastethernet0/5 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#interface fastethernet0/6 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit SW1(config)#interface fastethernet0/7 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 30 SW1(config-if)#exit SW1(config)#interface fastethernet0/8 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 40 SW1(config-if)#end SW1#copy running-config startup-config
Task 3: Verify VLAN Configuration
Objective: Verify your VLAN configuration using relevant show commands in Cisco IOS.
Verification Commands:
SW1#show vlan brief VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------- 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 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 Gig0/1, Gig0/2 10 SALES active Fa0/5 20 MANAGERS active Fa0/6 30 ENGINEERS active Fa0/7 40 SUPPORT active Fa0/8 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active SW1#
Cisco Packet Tracer file:
Load and open the .pkt Lab file in Cisco Packet Tracer from here: Standard_VLANs.pkt