Objectives: Student Name: Student No.
Objectives: Student Name: Student No.
CPIS 370
Lab (6)
Objectives
Design and build a LAN network with 2 PCs and 1 switch using a Cisco Packet tracer program
Create a basic switch configuration and verify it.
Create two VLANs, name them and assign member ports to them.
Verify connectivity between a network LAN .
The requirements to make the network shown in the figure above are:
1 Switch
2 PCs
NIC for each PC
Straight Cables
1. Access and command mode, Start the Basic Switch Configuration lab Configure the hostname
passwords , and management LAN " VLAN 1" .
Switch1>enable
Switch1#
Switch1#show running-config
Switch1#configure terminal
Switch1(config)#hostname Switch1
Switch1(config)#exit
---------------------------------------
Switch1(config)#line con 0
Switch1(config-line)#password cisco
Switch1(config-line)#login
Switch1(config-line)#line vty 0 15
Switch1(config-line)#password cisco
Switch1(config-line)#login
Switch1(config-line)#exit
Switch1(config)#interface VLAN 1
Switch1(config-if)#ip address 192.168.1.2 255.255.255.0
Switch1(config-if)#exit
Student name : ………………………
Student no. : ………………………
Configure the hosts to use the same subnet for the address, mask, and default gateway as on the
switch.
Host B
Gateway :192.186.1
_________________________________________________
__________________________________________________
On Switch1 , type the command show vlan at the Privileged EXEC prompt as follows:
Switch1#show vlan
________________________________________
________________________________________
Student name : ………………………
Student no. : ………………………
Switch1#vlan database
Switch1(vlan)#vlan 2 name VLAN2
Switch1(vlan)#vlan 3 name VLAN3
Switch1(vlan)#exit
. On Switch1, type the command show vlan at the Privileged EXEC prompt as follows:
Switch_A#show vlan
Assigning ports to VLANs must be done from the interface mode. Enter the following commands to
Switch1#configure terminal
Switch1(config)#interface fastethernet 0/4
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 2
Switch1(config-if)#end
Assigning ports to VLANs must be done from the interface mode. Enter the following commands :
Switch1#configure terminal
Switch1(config)#interface fastethernet 0/2
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 2
Switch1(config-if)#end
Student name : ………………………
Student no. : ………………………
On Switch1 , type the command show VLAN at the Privileged EXEC prompt as follows:
Switch1#show vlan
________________________________________________
________________________________________________
________________________________________________