Upload
anrol-sarah-canare
View
235
Download
1
Embed Size (px)
Citation preview
7/27/2019 VLANs Lecture
1/42
120 Aug 2013
VLANs
CCNA Exploration Semester 3
Chapter 3
7/27/2019 VLANs Lecture
2/42
220 Aug 2013
Topics
The role of VLANs in a network
Trunking VLANs
Configure VLANs on switches Troubleshoot common VLAN problems
7/27/2019 VLANs Lecture
3/42
320 Aug 2013
Semester 3
LAN Design
Basic Switch
Concepts
VLANs
VTP
STP
Inter-VLAN
routing
Wireless
7/27/2019 VLANs Lecture
4/42
420 Aug 2013
Some requirements of LANs
Need to split up broadcast domains to make
good use of bandwidth
People in the same department may need tobe grouped together for access to servers
Security: restrict access by certain users to
some areas of the LAN
Provide a way for different areas of the LAN
to communicate with each other
7/27/2019 VLANs Lecture
5/42
520 Aug 2013
Solution using routers
Divide the LAN into
subnets
Use routers to linkthe subnets
7/27/2019 VLANs Lecture
6/42
620 Aug 2013
Solution using routers
BUT
Routers are expensive
Routers are slower than switchesSubnets are restricted to limited physical
areas
Subnets are inflexible
7/27/2019 VLANs Lecture
7/42
720 Aug 2013
Solution using VLANs
VLAN membership can
be by function and not
by location
VLANs managed byswitches
Router needed for
communication
between VLANs
7/27/2019 VLANs Lecture
8/42
7/27/2019 VLANs Lecture
9/42
920 Aug 2013
VLAN numbers
VLAN 1: default Ethernet LAN, all ports start in
this VLAN.
VLANs 1002 1005 automatically created forToken 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
7/27/2019 VLANs Lecture
10/42
1020 Aug 2013
VLAN information
VLAN information is stored in the VLAN
database.
vlan.dat in the flash memory of the switch.
7/27/2019 VLANs Lecture
11/42
7/27/2019 VLANs Lecture
12/42
1220 Aug 2013
Types of VLAN
Data or user VLAN
Voice VLAN
Management VLANNative VLAN
Default VLAN
7/27/2019 VLANs Lecture
13/42
1320 Aug 2013
Data VLAN
Carry files, e-mails, shared application traffic,
most user traffic.
Separate VLAN for each group of users.VLAN 1- heart and soul of all switches
7/27/2019 VLANs Lecture
14/42
1420 Aug 2013
Voice VLAN
Use with IP phone.
Phone acts as a switch too.
Voice traffic is tagged, given priority.Data not tagged, no priority.
7/27/2019 VLANs Lecture
15/42
1520 Aug 2013
Management VLAN
Has the switch IP address.
Used for telnet/SSH or web access for
management purposes.
Better not to use VLAN 1 for security reasons.
Actual vlan pero hindi special
Only administrators are allowed to access it
7/27/2019 VLANs Lecture
16/42
1620 Aug 2013
Native VLAN
For backward compatibility with older systems.
Relevant to trunk ports.
Trunk ports carry traffic from multiple VLANs.
VLAN is identified by a tag in the frame.
Native VLAN does not have a tag.
NOT AN ACTUAL VLAN
By default native vlan is 1
7/27/2019 VLANs Lecture
17/42
1720 Aug 2013
Default VLAN
VLAN 1 on Cisco switches.
Carries CDP and STP (spanning tree
protocol) traffic.
Initially all ports are in this VLAN.
Do not use it for data, voice or management
traffic for security reasons.
7/27/2019 VLANs Lecture
18/42
1820 Aug 2013
Static VLAN
The normal type. Port configured to be on a
VLAN. Connected device is on this VLAN.
VLAN can be created using CLI command,
given number and name.
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.
7/27/2019 VLANs Lecture
19/42
1920 Aug 2013
Static VLAN (Port-centric)
If VLAN 20 did not exist before then it does
now.
7/27/2019 VLANs Lecture
20/42
2020 Aug 2013
Voice VLAN
Configured for voice VLAN and data VLAN. Intended to support VoIP services
7/27/2019 VLANs Lecture
21/42
7/27/2019 VLANs Lecture
22/42
2220 Aug 2013
Traffic between VLANs
Layer 2 switch keeps VLANs separate.
Router can route between VLANs. It needs to
provide a default gateway for each VLAN as
VLANs are separate subnets.
Layer 3 switch has a switch virtual interface
(SVI) configured for each VLAN. These act
like router interfaces to route betweenVLANs.
7/27/2019 VLANs Lecture
23/42
2320 Aug 2013
Trunking
Both switches have the same 5 VLANs.
Do you have a link for each VLAN?
More efficient for them to share a link.
7/27/2019 VLANs Lecture
24/42
2420 Aug 2013
Trunking
Traffic for all the VLANs travels between the
switches on ONE shared trunk or backbone
Wala na sya sa vlans kasi trunk na kapag nag show
vlans
7/27/2019 VLANs Lecture
25/42
25
INTER SWITCH LINK (ISL)
Used as a trunking mode
Legacy trunking protocol
ISL DOT1Q pwede i configure
20 Aug 2013 S Ward Abingdon and Witney College
7/27/2019 VLANs Lecture
26/42
26
DTP
Dynamic Trunking Protocol
Cisco proprietary
Supports both ISL and 802.1q
20 Aug 2013 S Ward Abingdon and Witney College
7/27/2019 VLANs Lecture
27/42
7/27/2019 VLANs Lecture
28/42
2820 Aug 2013
Tag to identify VLAN
Tag is added to the frame when it goes on to the trunk
Tag is removed when it leaves the trunk
F t i i i l
7/27/2019 VLANs Lecture
29/42
2920 Aug 2013
Frame tagging principle
IEEE 802.1Q
1,518 bytes
Dest Add Source Add Type/Len Data FCS
Dest Add Source Add Type/Len Data FCSTag
Normal
frame
Add 4-byte tag,
recalculate FCS
Tag protocol
ID 0x8100
Priority CFI for token
ring
VLAN ID
1 - 4096
7/27/2019 VLANs Lecture
30/42
3020 Aug 2013
Native VLAN
Untagged frames received on a trunk port are forwarded
on to the native VLAN.
Frame received from the native VLAN should be
untagged (like for vlan1) Switch will drop tagged frames received from the native
VLAN. This can happen if non-Cisco devices are
connected.
If other vlan is assigned as native, vlan 1 will have a tag.
7/27/2019 VLANs Lecture
31/42
3120 Aug 2013
Configure trunk port
Make a port into a trunk port and tell it which
VLAN is native.
SW1(config)#int fa0/1
SW1(config-if)switchport mode trunk
SW1(config-if)switchport trunk native vlan
99
By default native VLAN is 1.
7/27/2019 VLANs Lecture
32/42
7/27/2019 VLANs Lecture
33/42
3320 Aug 2013
Create a VLAN
SW1(config)#vlan 20
SW1(config-vlan)#name Finance
SW1(config-vlan)#endVLAN will be saved in VLAN database rather
than running config.
If you do not give it a name then it will becalled vlan0020.
7/27/2019 VLANs Lecture
34/42
7/27/2019 VLANs Lecture
35/42
3520 Aug 2013
show vlan brief
List of VLANs with ports
7/27/2019 VLANs Lecture
36/42
3620 Aug 2013
Show commands
show vlan brief (list of VLANs and ports)
show vlan summary
show interfaces vlan (up/down, traffic etc)Show interfaces fa0/14 switchport (access
mode, trunking)
7/27/2019 VLANs Lecture
37/42
3720 Aug 2013
Remove port from VLAN
SW1(config)#int fa 0/14
SW1(config-if)#no switchport access vlan
SW1(config-if)#end The port goes back to VLAN 1.
If you assign a port to a new VLAN, it is
automatically removed from its existingVLAN.
7/27/2019 VLANs Lecture
38/42
3820 Aug 2013
Delete a VLAN
SW1(config)#no vlan 20
SW1(config)#end
VLAN 20 is deleted.Any ports still on VLAN 20 will be inactive
not on any VLAN. They need to be
reassigned.
7/27/2019 VLANs Lecture
39/42
7/27/2019 VLANs Lecture
40/42
4020 Aug 2013
Configure trunk
SW1(config)#int fa0/1
SW1(config-if)#switchport mode trunk
SW1(config-if)#switchport trunk native vlan99
SW1(config-if)#switchport trunk allowed
vlan add 10, 20, 30
SW1(config-if)#end
7/27/2019 VLANs Lecture
41/42
4120 Aug 2013
Trunk problems
Both ends must have the same native VLAN.
Both ends must be configured with trunking
on or so that trunking is negotiated with the
other end and comes on. Subnetting and addressing must be right.
The right VLANs must be allowed on the
trunk.
7/27/2019 VLANs Lecture
42/42
4220 Aug 2013
The End