M1 Telecom-VLAN Suite
M1 Telecom-VLAN Suite
VLANs (Virtual LANs) are logical grouping of devices in the same broadcast domain.
VLANs are usually configured on switches by placing some interfaces into one
broadcast domain and some interfaces into another.
VLANs can be spread across multiple switches, with each VLAN being treated as its
own subnet or broadcast domain. This means that frames broadcasted onto the
network will be switched only between the ports within the same VLAN.
1
VLANs
▪ VLANs increase the number of broadcast domains while decreasing their size.
▪ VLANs reduce security risks by reducing the number of hosts that receive copies of
frames that the switches flood.
▪ Keeping hosts that hold sensitive data on a separate VLAN to improve security.
▪ Creating more flexible network designs that group users by department instead of
by physical location.
▪ Network changes are achieved with ease by just configuring a port into the
appropriate VLAN.
2
VLANs
3
VLANs
4
Access & trunk ports
5
Configuring access & trunk ports
6
Configuring access & trunk ports
7
Configuring access & trunk ports
Because the link between SW1 and SW2 needs to carry traffic of multiple VLANs, it needs
to be configured as a trunk interface. This is done by using the following commands on
both SW1 and SW2:
On SW1:
On SW2:
8
Configuring access & trunk ports
9
Frame tagging
To identify the VLAN a packet is belonging to, switches use tagging to assign a numerical value
to each frame in a network with multiple VLANs. This is done to ensure that switches know
out which ports to forward frames.
10
Frame tagging
11
IEEE 802.1Q
IEEE 802.1Q is one of the VLAN tagging protocols supported by Cisco switches. This standard
was created by the Institute of Electrical and Electronics Engineers (IEEE), so it an open
standard and can be used on non-Cisco switches.
To identify to which VLAN a frame belongs to, a field is inserted into the frame’s header.
Original frame:
802.1Q frame:
12
IEEE 802.1Q
On the segment between two switches, a process called VLAN trunking is used. Let’s say that host A sends a
broadcast frame. SW1 “tags” the frame by inserting the VLAN ID in the header of the frame before sending
the frame to SW2. SW2 receives the frame and knows that the frame belongs to VLAN 3, so it sends the
frame only to host D, since that host is in VLAN 3.
13
Inter-Switch Link (ISL)
Another VLAN tagging protocol is Inter-Switch Link (ISL). This protocol is Cisco proprietary,
which means that, unlike 802.1Q, it can be used only between Cisco switches. It is
considered to be deprecated, and newer Cisco switches don’t even support it.
ISL works by encapsulating a frame in an ISL header and trailer. The encapsulated frame
remains unchanged. The VLAN ID is included in the ISL header.
Original frame:
ISL frame:
14
What is VTP?
VTP (VLAN Trunking Protocol) is a Cisco proprietary protocol used by Cisco switches to
exchange VLAN information. With VTP, you can synchronize VLAN information (like VLAN ID or
VLAN name) with switches inside the same VTP domain.
To better understand the true value of VTP, consider an example network with 100 switches.
Without VTP, if you want to create a VLAN on each switch, you would have to manually enter
VLAN configuration commands on each switch! VTP enables you to create the VLAN only on a
single switch. That switch can then propagate information about that VLAN to each switch on
a network and cause other switches to create that VLAN too.
Likewise, if you want to delete a VLAN, you only need to delete it on one switch, and the
change is automatically propagated to every other switch inside the same VTP domain.
15
What is VTP?
On SW1, we have created a new VLAN. SW1 sends a VTP update to SW2, which in turn sends
its VTP update to SW3. Now all three switches have the same VLAN created.
NOTE
VTP does not advertise information about which switch ports are assigned to which VLAN.
16
VTP modes
•VTP client mode – a switch using this mode can’t change its VLAN configuration. That means
that a VTP client switch can’t create or delete VLANs. Received VTP updates are processed and
forwarded.
•VTP server mode – a switch using this mode can create and delete VLANs. A VTP server switch
will propagate VLAN changes. This is the default mode for Cisco switches.
•VTP transparent mode – a switch using this mode doesn’t share its VLAN database, but it
forwards received VTP advertisements. You can create and delete VLANs on a VTP transparent
switch, but the changes are not sent to other switches.
17
VTP modes
We have a simple network of three switches. SW1 is configured as VTP server. After the VLAN 5 is
created on SW1, this switch will notify the connected switch (SW2) about the created VLAN.
SW2 will receive the update but, since it uses the VTP transparent mode, it will not create this VLAN
in its configuration. However, it will forward the VTP update to SW3.
Since SW3 is configured as VTP client, it will process the update and create VLAN 5.
18
VTP configuration
In a typical network, some switches are configured as VTP servers and other switches are
configured as VTP clients. A VLAN created on a VTP server switch is automatically advertised
to all switches inside the same VTP domain. A VTP domain is simply the collection of
switches with the same VTP domain name configured.
Switches SW1 and SW2 are connected via trunk link. We will configure SW1 to serve as a VTP server and
SW2 to serve as a VTP client.
20
VTP configuration
Now, we will create VLAN 50 on SW1. The information about this VLAN will automatically be
propagated to SW2. SW2 should also create that VLAN.
On SW1, we will create the new VLAN:
21
Thank you for your attention