Professional Documents
Culture Documents
DCCN - Lab 4-A VLAN
DCCN - Lab 4-A VLAN
DCCN - Lab 4-A VLAN
OBJECTIVE:
This lab assignment helps in understanding how VLANs (Virtual LAN) can be
created on a single Cisco switch.
THEORY:
VLAN a short for virtual LAN, a network of computers that behave as if they are connected to
the same wire even though they may actually be physically located on different segments of a
LAN.
VLANs are configured through software rather than hardware, because VLANs are based on
logical instead of physical connections, which make them extremely flexible.
Why VLANs?
If you want for example to separate the different departments of your enterprise into different IP
sub networks, A group of devices on a LAN that are configured (using management software) so
that they can communicate as if they were attached to the same wire, (VLANs) within the same
switch, supporting traffic isolation between logically different networks.
Ports of VLANs
The Ports are actually the communication points on the switch, by default all the ports on the
switch are known as switching ports.
On a Cisco switch, ports are assigned to a single VLAN. These ports are referred to as access
ports and provide a connection for end users or node devices, such as a router or server. By
default all devices are assigned to VLAN 1, known as the default VLAN. After creating a
VLAN, you can manually assign a port to that VLAN and it will be able to communicate only
with or through other devices in the VLAN.
1- Access Port
An "access port" is a type of connection on a switch that is used to connect a guest virtual
machine that is VLAN unaware. This port provides the virtual machine with connectivity
through a switch that is VLAN aware without requiring it to support VLAN tagging.
2- Trunk Port
A "trunk port" is a type of connection on a switch that is used to connect a guest virtual machine
that is VLAN aware. Generally, all frames that flow through this port are VLAN tagged. The
exception to this is when a trunk port is granted access to the untagged VLAN set (native VLAN
ID).
Switch>en
Switch#config t
OR
(Assigning ports in range)
Switch(config)#interface range FastEthernet 0/1-2
Switch(config-if)#Switchport mode access
Switch(config-if)#Switchport access vlan 2
Switch(config-if)#exit
OR
Switch(config)#do sh vlan brief (Command from Global Config Mode)
Let’s check the VLANs functionality by pinging the PC’s, remember PC0 and PC1 are in VLAN2 and
PC2 and PC3 are in VLAN3. PC’s of VLAN 2 and VLAN 3 are not pinging each other, so both are in
separate VLANs.
Now, in this case only the PCs which are connected with Switch port 1
& 2 can communicate with other and can’t be able to send data traffic
on other VLANs. Likewise, the PCs which are connected with Switch port
3 & 4 can communicate with each other only.
QUESTION:
1. Take 1 switch and apply the following configuration, show network topology and
configuration in your lab task.