Lect 4
Lect 4
into subnets
Use routers to link
the subnets
Solution using routers
BUT
Routers are expensive
.
Solution using VLANs
VLAN membership can
be by function and
not by location
VLANs managed
by switches
Router needed for
communication between
VLANs
VLANs
All hosts in a VLAN have addresses in the same subnet.
A VLAN is a subnet.
Broadcasts are kept within the VLAN. A VLAN is a
broadcast domain.
The switch has a separate MAC address table for each
VLAN. Traffic for each VLAN is kept separate from
other VLANs.
Layer 2 switches cannot route between VLANs.
Benefits of VLANs
Scalability
Security
Network Management
Broadcast Filtering
Traffic Flow Management
Cost reduction
Better performance
VLAN numbers
VLAN 1: default Ethernet LAN, all ports start in this
VLAN.
VLANs 1002 – 1005 automatically created for Token Ring
and FDDI
Numbers 2 to 1001 can be used for new VLANs
Up to 255 VLANs on Catalyst 2960 switch
Extended range 1006 – 4094 possible but fewer features
VLAN information
Normal range VLANs
VLAN information is stored in the VLAN database.
vlan.dat in the flash memory of the switch.
Extended Range VLANs
Configurations stored in the start-up configuration
(NVRAM)
Port based
Static or Port-Based:
Ports on a switch are assigned to a specific VLAN.
VLAN can be learned from another switch.
If a port is put on a VLAN and the VLAN does not exist,
then the VLAN is created.
Dynamic:
VLANs created by accessing a Network Management
server. The MAC address/VLAN ID mapping is set up by
the Network Administrator and the server assigns
a VLAN ID when the device contacts it.
Types of Port-Based VLANs
Voice VLAN
Data VLAN
Sends a
Broadcast
• Network with VLANs
Sends a Broadcast
Sends a Broadcast