VLAN Assignment 02
VLAN Assignment 02
Aqeel Zaffar
Enrollment# UW-19-CS-BS-001
Email: [email protected]
Computer Networks (CS-312)
Abstract
This report gives the detail about the VLAN (Virtual Local Area Network) and explains
not only different types of VLANs but also explains how VLANs work and how we can
configure VLAN. This report also explains how VLANs create the broadcast domain,
how VLAN memberships are used in a switched network and what characteristic can be
used to group the stations in VLAN. Furthermore, in this report we discussed the benefits
of VLANs.
1. Introduction
Virtual local area networks, or VLANs, have become important as network complexity
has exceeded the capacity of typical local area networks (LANs). Originally, a LAN
connected a group of computers and associated devices to a server via cables in a shared
physical location (hence the term “local”). Many LANs now connect devices via wireless
internet, rather than Ethernet, although most LANs use a combination of both
connectivity types. Over time, organizations have grown in their networking needs,
requiring solutions that enable networks to grow in size, flexibility, and complexity [2].
VLANs circumvent the physical limitations of a LAN through their virtual nature,
allowing organizations to scale their networks, segment them to increase security
measures, and decrease network latency.
A station or the node is considered as the part of LAN if it is physically belongs to that
LAN. The criterion of membership is geographic. What happens if we need a virtual
connection between two stations belonging to two different physical LANs? We can
define the VLAN as local area network which is configured on software not by physical
wiring [4]. Let us take an example to elaborate this definition of VLAN.
Figure 3.1 shows a good configuration for the company with two separate buildings
because each building can have its own switched LAN connected by the backbone.
People in the first building and in the second building can be in the same work group
even though they are connected to different physical LANs [4].
There are different types of VLAN. Some of them can be explained and classified based
on their traffic classes. The other VLAN types could be define by the particular function
that they serve [6].
When the switch initially starts up, all switch ports become a member of the default
VLAN (generally all switches have default VLAN named as VLAN 1), which makes
them all part of the same broadcast domain.
A port on a switch could be associated to only one VLAN or to all VLANs. A port could
be configured manually as an access or trunk port. Let the Dynamic Trunking Protocol
(DTP) operates on a per-port basis to set the switch port mode. It can be done by
negotiating with the port on the other end of the link [7]. There are two different types of
links in the switched network:
Access Ports: An access port normally carries the traffic of only one VLAN. In this case,
traffic is both sent and received in native formats without VLAN tagging. Anything
arriving on an access port is simply considered to belong to the VLAN assigned to the
port. Any device connected to an access link is not aware of a VLAN membership; the
device just assumes its part of the same broadcast domain and doesn’t recognize the
physical network topology. Access-link devices cannot send and receive data to and from
devices outside their VLAN unless the routing is configured. It can only make a switch
port to be either an access port or a trunk port but not both. It must be noted that the
access port can only be attached to one VLAN only [7].
Trunk Ports: Trunk ports on the other hand is able to carry multiple VLANs at a time. A
trunk link is 100 or 1000 Mbps point-to-point link between two switches, switch and
router, or even between a switch and server, and it carries the traffic of multiple VLANs
from 1 to 4094 at a time. This is a great functionality because ports can be set up to have
a server in two separate broadcast domains at the same time, so the users will not have to
cross a network layer (layer 3) device to log in and access it. The other benefit is that
trunk links are able to carry various amounts of VLAN data across the link [7].
Do the same thing for other switches. For now we have divided the switch into multiple
lans but as I said before initially all the ports are assigned to VLAN1 which means the
devices connected to the switch are in VLAN1, but we have to divide them in different
vlans so for that purpose we need to assign ports to VLANs. And we can do this by
simply clicking on the port under config tab in Interface section, and assign the vlan to
the port.
We can view ports assigned to VLANs using command show vlan brief in CLI section.
Port VLAN
fastEthernet 0/4 100
After assigning ip addresses to the devices lets send a message. If we send message to
the device within a same switch and have same vlan message will receive.But there is
a problem if we send message from one device to another which is connected to
another switch, however, they have same vlan but message will not receive. But
WHY? The answer is we need to enable trunk mode of the port which is used for
switch to switch connection. In this scenario we used fastEthernet 0/1, 0/2 and 0/3 for
switch connection. So we need to enable trunk on these three ports of all the switches.
Configure t
Exit
Exit
Exit
Now if we can send message. The message will sent and received successfully. We
can see in Figure 3.5.2
Figure.3.5.2 To check Whether Message is sent successfully or not.
VLANs make it easier to design a network to support the goals of an organization. The
primary benefits of using VLANs are as follows:
Security: Groups that have sensitive data are separated from the rest of the network,
decreasing the chances of confidential information breaches.
Cost reduction: Cost savings result from reduced need for expensive network upgrades
and more efficient use of existing bandwidth and uplinks [8].
Creating Virtual Work Groups: VLANs can be used to create virtual work groups. For
example, in a campus environment, professors working on the same project can send
broadcast messages to one another without the necessity of belonging to the same
department. This can reduce traffic if the multicasting capability of IP was previously
used [9].
3.7 Conclusion:
In this report we have seen that there are significant advances in the field of networks in
the form of VLAN's which allow the formation of virtual workgroups, better security,
improved performance and reduced costs. VLAN's are formed by the logical
segmentation of a network and can be classified into Layer1, 2, 3 and higher layers. Only
Layer 1 and 2 are specified in the draft standard 802.1Q. Tagging and the filtering
database allow a bridge to determine the source and destination VLAN for received data.
VLAN's if implemented effectively, show considerable promise in future networking
solutions.
4. References