Vlan
Vlan
Overview
VLAN
Trunking
Configure
Troubleshoot
.
VLAN introduction
10.2.0.0/16
1) Without
VLANs
10.3.0.0/16
1) Without VLANs, each group is on a One link per VLAN or a single VLAN
different IP network and on a different Trunk (later) 10.1.0.0/16
switch.
2) With
2) Using VLANs. Switch is configured
VLANs
with the ports on the appropriate
VLAN. Still, each group on a different 10.2.0.0/16
IP network; however, They are all on
the same switch.
What are the broadcast domains in 10.3.0.0/16
each?
.
VLAN operation
The key benefit of VLANs is that they permit the network administrator
to organize the LAN logically instead of physically.
This means that an administrator is able to do all of the following:
Easily move workstations on the LAN.
Easily add workstations to the LAN.
Easily change the LAN configuration.
Easily control network traffic.
Improve security.
Without VLANs No Broadcast Control
ARP Request
172.30.1.21
Switch 1
172.30.2.12
255.255.255.0
255.255.255.0
VLAN 1
VLAN 2
172.30.2.10 172.30.1.23
255.255.255.0 255.255.255.0
VLAN 2 VLAN 1
Two VLANs
Two Subnets
VLAN Types
.
VLAN Tagging
VLAN Tagging is used when a link needs to carry traffic for more than
one VLAN.
Trunk link: As packets are received by the switch from any attached
end-station device, a unique packet identifier is added within each
header.
This header information designates the VLAN membership of each
packet.
The packet is then forwarded to the appropriate switches or routers based
on the VLAN identifier and MAC address.
Upon reaching the destination node (Switch) the VLAN ID is removed from
the packet by the adjacent switch and forwarded to the attached device.
Packet tagging provides a mechanism for controlling the flow of broadcasts
and applications while not interfering with the network and applications.
This is known as a trunk link or VLAN trunking.
.
VLAN Tagging
No VLAN Tagging
VLAN Tagging
802.10
There are two major methods of frame tagging, Cisco proprietary Inter-
Switch Link (ISL) and IEEE 802.1Q.
ISL used to be the most common, but is now being replaced by 802.1Q
frame tagging.
Cisco recommends using 802.1Q.
VLAN Tagging and Trunking will be discussed in the next chapter.
.
Configuring static VLANs
Denotes this port as an access port and not a trunk link (later)
.
Creating VLANs
vlan 2
.
Configuring Ranges of VLANs
vlan 3
This command does not work on all 2900 switches, such as the 2900
Series XL. It does work on the 2950.
.
Creating VLANs
VLAN Tagging
VLAN Tagging is used when a link needs to carry traffic for more than
one VLAN.
Trunk link: As packets are received by the switch from any attached
end-station device, a unique packet identifier is added within each
header.
This header information designates the VLAN membership of each
packet.
The packet is then forwarded to the appropriate switches or routers based
on the VLAN identifier and MAC address.
Upon reaching the destination node (Switch) the VLAN ID is removed from
the packet by the adjacent switch and forwarded to the attached device.
Packet tagging provides a mechanism for controlling the flow of broadcasts
and applications while not interfering with the network and applications.
This is known as a trunk link or VLAN trunking.
.
VLAN Tagging
No VLAN Tagging
VLAN Tagging
VLAN Tagging is used when a link needs to carry traffic for more than
one VLAN.
Tagging is used so the receiving switch knows which ports in should
flood broadcast and unknown unicast traffic (only those ports belonging
to the same VLAN).
.
VLAN Tagging
802.10
There are two major methods of frame tagging, Cisco proprietary Inter-
Switch Link (ISL) and IEEE 802.1Q.
ISL used to be the most common, but is now being replaced by 802.1Q
frame tagging. ISL Increases the frame header overhead by 30 bytes.
Cisco recommends using 802.1Q. This type of encapsulation adds only
4 bytes to the Ethernet header
VLAN Tagging and Trunking will be discussed in the next chapter.
IEEE 802.1Q
or 802.1Q
Non-Trunk Links
Trunk Link
Non-Trunk Links
Note: On many
switches, the
command must be
done BEFORE the
command.
An access port means that the port (interface) can only belong to a
single VLAN.
Access ports are used when:
Only a single device is connected to the port
Multiple devices (hub) are connected to the port, all belonging to
the same VLAN
Another switch is connected to this interface, but this link is only
carrying a single VLAN (non-trunk link).
Trunk ports are used when:
Another switch is connected to this interface, and this link is
carrying multiple VLANa (trunk link).