You are on page 1of 4

LAB: Configuring VLAN on Cisco Switches

Objective:
 Configure hostname on switch.
 Verify Default VLAN 1 and all switch ports on switch.
 Create two Vlans Sales and HR on switch.
 Configure Access Ports and VLAN Membership on switch.
 Verify Configured VLANs on Switch.
 Save the switch configuration.
 Assign IP address on PCs.

Final Result: If Sales Vlan PCs can communicate with each other and HR Vlan PCs
can communicate with each other But Sales Vlan PCs are not communicating with
HR Vlan PCs or vice versa then it means you have successfully configured Vlans on
Cisco switch to divide brodcast domain on layer 2 and enhance network security.

LAB: Configuring VLAN on Cisco Switches


Configure hostname on switch:
Switch>enable
Switch#configure terminal
Switch(config)#hostname S1
S1(config)#exit

Verify Default VLAN 1 and all switch ports on switch S1:

Create two VLANs Sales and HR on switch S1:


S1#configure terminal
S1(config)#vlan 2
S1(config-vlan)#name SALES
S1(config-vlan)#vlan 3
S1(config-vlan)#name HR
S1(config-vlan)#exit

Configure Access Ports and VLAN Membership on switch S1:


S1(config)#interface fastEthernet 0/1
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 2
S1(config-if)#interface fastEthernet 0/2
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 2
S1(config-if)#interface range fa 0/3 - 4
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 3
S1(config-if)#Ctrl+Z

LAB: Configuring VLAN on Cisco Switches


Verify Configured VLANs on Switch S1:

Save the configuration of switch S1:


S1#copy running-config startup-config

LAB: Configuring VLAN on Cisco Switches


LAB: Configuring VLAN on Cisco Switches

You might also like