SlideShare uma empresa Scribd logo
1 de 39
VLANs
              CCNA Exploration Semester 3
                                Chapter 3




30 Sep 2012             S Ward Abingdon and Witney College   1
Topics
 The role of VLANs in a network
 Trunking VLANs

 Configure VLANs on switches

 Troubleshoot common VLAN problems




                                      2
 30 Sep 2012   S Ward Abingdon and
               Witney College
Semester 3
                 LAN Design

  Basic Switch                      Wireless
  Concepts

VLANs                  STP


VTP                 Inter-VLAN
                    routing
                                               3
30 Sep 2012   S Ward Abingdon and
              Witney College
Some requirements of LANs
 Need  to split up broadcast domains to make
  good use of bandwidth
 People in the same department may need to
  be 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

                                             4
 30 Sep 2012    S Ward Abingdon and
                Witney College
Solution using routers
 Divide the LAN into
  subnets
 Use routers to link
  the subnets




                                     5
 30 Sep 2012   S Ward Abingdon and
               Witney College
Solution using routers
BUT
 Routers are expensive

 Routers are slower than switches

 Subnets are restricted to limited physical
  areas
 Subnets are inflexible




                                               6
 30 Sep 2012    S Ward Abingdon and
                Witney College
Solution using VLANs
   VLAN membership can
    be by function and not
    by location
   VLANs managed by
    switches
   Router needed for
    communication
    between VLANs



                                         7
30 Sep 2012        S Ward Abingdon and
                   Witney College
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.


                                          8
  30 Sep 2012   S Ward Abingdon and
                Witney College
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
                                               9
  30 Sep 2012    S Ward Abingdon and
                 Witney College
VLAN information
 VLAN  information is stored in the VLAN
  database.
 vlan.dat in the flash memory of the switch.




                                                10
 30 Sep 2012    S Ward Abingdon and
                Witney College
Port based
 Each   switch port intended for an end device
  is configured to belong to a VLAN.
 Any device connecting to that port belongs to
  the port’s VLAN.
 There are other ways of assigning VLANs but
  this is now the normal way.
 Ports that link switches can be configured to
  carry traffic for all VLANs (trunking)

                                           11
 30 Sep 2012   S Ward Abingdon and
               Witney College
Types of VLAN
 Data or user VLAN
 Voice VLAN

 Management VLAN

 Native VLAN

 Default VLAN




                                     12
 30 Sep 2012   S Ward Abingdon and
               Witney College
Data VLAN
 Carryfiles, e-mails, shared application traffic,
  most user traffic.
 Separate VLAN for each group of users.




                                               13
 30 Sep 2012    S Ward Abingdon and
                Witney College
Voice VLAN
 Use with IP phone.
 Phone acts as a switch too.

 Voice traffic is tagged, given priority.

 Data not tagged, no priority.




                                             14
 30 Sep 2012     S Ward Abingdon and
                 Witney College
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.




                                          15
 30 Sep 2012   S Ward Abingdon and
               Witney College
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.




                                             16
 30 Sep 2012    S Ward Abingdon and
                Witney College
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.



                                           17
 30 Sep 2012   S Ward Abingdon and
               Witney College
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.


                                           18
 30 Sep 2012   S Ward Abingdon and
               Witney College
Static VLAN (Port-centric)




 If
   VLAN 20 did not exist before – then it does
  now.


                                           19
 30 Sep 2012   S Ward Abingdon and
               Witney College
Voice VLAN




 Configured   for voice VLAN and data VLAN.



                                           20
 30 Sep 2012    S Ward Abingdon and
                Witney College
Dynamic VLAN
 Not widely used.
 Use a VLAN Membership Policy Server
  (VMPS).
 Assign a device to a VLAN based on its MAC
  address.
 Connect device, server assigns VLAN.

 Useful if you want to move devices around.



                                         21
 30 Sep 2012   S Ward Abingdon and
               Witney College
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 between
  VLANs.

                                           22
 30 Sep 2012   S Ward Abingdon and
               Witney College
Trunking
 Bothswitches have the same 5 VLANs.
 Do you have a link for each VLAN?




 More    efficient for them to share a link.




                                                23
 30 Sep 2012      S Ward Abingdon and
                  Witney College
Trunking
   Traffic for all the VLANs travels between the
    switches on a shared trunk or backbone




                                                    24
30 Sep 2012         S Ward Abingdon and
                    Witney College
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




                                                       25
30 Sep 2012        S Ward Abingdon and
                   Witney College
Frame tagging IEEE 802.1Q
                                                      Normal
Dest Add Source Add Type/Len    Data       FCS
                                                      frame

Dest Add Source Add Tag     Type/Len     Data       FCS

                                                Add 4-byte tag,
                                                recalculate FCS


Tag protocol Priority      CFI for token VLAN ID
ID 0x8100                  ring          1 - 4096


                                                          26
 30 Sep 2012       S Ward Abingdon and
                   Witney College
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.
 Switch will drop tagged frames received from
  the native VLAN. This can happen if non-
  Cisco devices are connected.


                                            27
 30 Sep 2012    S Ward Abingdon and
                Witney College
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.



                                               28
 30 Sep 2012     S Ward Abingdon and
                 Witney College
Dynamic trunking protocol
Dynamic               trunk            Mode
auto/des                               trunk
                      access           Mode
Dynamic
auto/des                               access

Dynamic              access            Dynamic
auto                                   auto
                     trunk             Dynamic
Dynamic
desirable                              desirable
Dynamic              trunk             Dynamic
desirable                              auto
                                           29
   30 Sep 2012   S Ward Abingdon and
                 Witney College
Create a VLAN
 SW1(config)#vlan     20
 SW1(config-vlan)#name Finance

 SW1(config-vlan)#end

 VLAN will be saved in VLAN database rather
  than running config.
 If you do not give it a name then it will be
  called vlan0020.


                                           30
 30 Sep 2012   S Ward Abingdon and
               Witney College
Assign port to VLAN
 SW1(config)#int fa 0/14
 SW1(config-if)#switchport mode access

 SW1(config-if)#switchport access vlan 20

 SW1(config-if)#end




                                        31
 30 Sep 2012   S Ward Abingdon and
               Witney College
show vlan brief
 List   of VLANs with ports




                                        32
 30 Sep 2012      S Ward Abingdon and
                  Witney College
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)




                                                33
 30 Sep 2012    S Ward Abingdon and
                Witney College
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 existing
  VLAN.


                                         34
 30 Sep 2012   S Ward Abingdon and
               Witney College
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.



                                             35
 30 Sep 2012    S Ward Abingdon and
                Witney College
Delete VLAN database
 Erasing  the startup configuration does not get
  rid of VLANs because they are saved in a
  separate file.
 SW1#delete flash:vlan.dat

 Switch goes back to the default with all ports
  in VLAN 1.
 You cannot delete VLAN 1.



                                             36
 30 Sep 2012    S Ward Abingdon and
                Witney College
Configure trunk
 SW1(config)#int  fa0/1
 SW1(config-if)#switchport mode trunk

 SW1(config-if)#switchport trunk native vlan
  99
 SW1(config-if)#switchport trunk allowed
  vlan add 10, 20, 30
 SW1(config-if)#end



                                         37
 30 Sep 2012   S Ward Abingdon and
               Witney College
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.


                                            38
 30 Sep 2012   S Ward Abingdon and
               Witney College
The End




30 Sep 2012   S Ward Abingdon and Witney College       39

Mais conteúdo relacionado

Mais procurados

Layer 2 switching fundamentals(networking)
Layer 2 switching fundamentals(networking)Layer 2 switching fundamentals(networking)
Layer 2 switching fundamentals(networking)welcometofacebook
 
Hot standby router protocol (hsrp) using
Hot standby router protocol (hsrp) usingHot standby router protocol (hsrp) using
Hot standby router protocol (hsrp) usingShubhiGupta94
 
VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)Netwax Lab
 
Chapter 16 : inter-vlan routing
Chapter 16 : inter-vlan routingChapter 16 : inter-vlan routing
Chapter 16 : inter-vlan routingteknetir
 
Vxlan control plane and routing
Vxlan control plane and routingVxlan control plane and routing
Vxlan control plane and routingWilfredzeng
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing ProtocolsDsunte Wilson
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1AIRTEL
 
Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)Peter R. Egli
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) KHNOG
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationDsunte Wilson
 
Brkmpl 2333
Brkmpl 2333Brkmpl 2333
Brkmpl 2333ronsito
 
CCNAv5 - S1: Chapter 9 - Subnetting Ip Networks
CCNAv5 - S1: Chapter 9 - Subnetting Ip NetworksCCNAv5 - S1: Chapter 9 - Subnetting Ip Networks
CCNAv5 - S1: Chapter 9 - Subnetting Ip NetworksVuz Dở Hơi
 
CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2Nil Menon
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocolasimnawaz54
 

Mais procurados (20)

VLAN
VLANVLAN
VLAN
 
Layer 2 switching fundamentals(networking)
Layer 2 switching fundamentals(networking)Layer 2 switching fundamentals(networking)
Layer 2 switching fundamentals(networking)
 
Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)Virtual Local Area Network (VLAN)
Virtual Local Area Network (VLAN)
 
Hot standby router protocol (hsrp) using
Hot standby router protocol (hsrp) usingHot standby router protocol (hsrp) using
Hot standby router protocol (hsrp) using
 
Layer 3 redundancy hsrp
Layer 3 redundancy   hsrpLayer 3 redundancy   hsrp
Layer 3 redundancy hsrp
 
VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)
 
Chapter 16 : inter-vlan routing
Chapter 16 : inter-vlan routingChapter 16 : inter-vlan routing
Chapter 16 : inter-vlan routing
 
Vxlan control plane and routing
Vxlan control plane and routingVxlan control plane and routing
Vxlan control plane and routing
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
 
Iptables presentation
Iptables presentationIptables presentation
Iptables presentation
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD)
 
CCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch ConfigurationCCNA Basic Switching and Switch Configuration
CCNA Basic Switching and Switch Configuration
 
Multi-Area OSPF on IOS XR
Multi-Area OSPF on IOS XRMulti-Area OSPF on IOS XR
Multi-Area OSPF on IOS XR
 
Brkmpl 2333
Brkmpl 2333Brkmpl 2333
Brkmpl 2333
 
CCNAv5 - S1: Chapter 9 - Subnetting Ip Networks
CCNAv5 - S1: Chapter 9 - Subnetting Ip NetworksCCNAv5 - S1: Chapter 9 - Subnetting Ip Networks
CCNAv5 - S1: Chapter 9 - Subnetting Ip Networks
 
CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2
 
CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1
 
Internet control message protocol
Internet control message protocolInternet control message protocol
Internet control message protocol
 

Destaque

ssh, bien plus qu'un telnet sécurisé
ssh, bien plus qu'un telnet sécuriséssh, bien plus qu'un telnet sécurisé
ssh, bien plus qu'un telnet sécuriséTryphon
 
Chapter 6 intervlanrouting
Chapter 6   intervlanroutingChapter 6   intervlanrouting
Chapter 6 intervlanroutingkratos2424
 
CCNA Exploration 1 - Chapter 3
CCNA Exploration 1 - Chapter 3CCNA Exploration 1 - Chapter 3
CCNA Exploration 1 - Chapter 3Irsandi Hasan
 
Chapter 2 switches
Chapter 2   switchesChapter 2   switches
Chapter 2 switcheskratos2424
 
CCNA Exploration 3 - Chapter 3
CCNA Exploration 3 - Chapter 3CCNA Exploration 3 - Chapter 3
CCNA Exploration 3 - Chapter 3Irsandi Hasan
 
CCNA 2 Routing and Switching v5.0 Chapter 1
CCNA 2 Routing and Switching v5.0 Chapter 1CCNA 2 Routing and Switching v5.0 Chapter 1
CCNA 2 Routing and Switching v5.0 Chapter 1Nil Menon
 
alphorm.com - Formation Linux LPIC-2
alphorm.com - Formation Linux LPIC-2alphorm.com - Formation Linux LPIC-2
alphorm.com - Formation Linux LPIC-2Alphorm
 

Destaque (12)

Chapter 03 - VLANs
Chapter 03 - VLANsChapter 03 - VLANs
Chapter 03 - VLANs
 
Vlan
Vlan Vlan
Vlan
 
Chapter 4 vtp
Chapter 4   vtpChapter 4   vtp
Chapter 4 vtp
 
ssh, bien plus qu'un telnet sécurisé
ssh, bien plus qu'un telnet sécuriséssh, bien plus qu'un telnet sécurisé
ssh, bien plus qu'un telnet sécurisé
 
Chapter 6 intervlanrouting
Chapter 6   intervlanroutingChapter 6   intervlanrouting
Chapter 6 intervlanrouting
 
CCNA Exploration 1 - Chapter 3
CCNA Exploration 1 - Chapter 3CCNA Exploration 1 - Chapter 3
CCNA Exploration 1 - Chapter 3
 
Chapter 2 switches
Chapter 2   switchesChapter 2   switches
Chapter 2 switches
 
CCNA Exploration 3 - Chapter 3
CCNA Exploration 3 - Chapter 3CCNA Exploration 3 - Chapter 3
CCNA Exploration 3 - Chapter 3
 
Ccna2
Ccna2Ccna2
Ccna2
 
Virtuals LAN
Virtuals LANVirtuals LAN
Virtuals LAN
 
CCNA 2 Routing and Switching v5.0 Chapter 1
CCNA 2 Routing and Switching v5.0 Chapter 1CCNA 2 Routing and Switching v5.0 Chapter 1
CCNA 2 Routing and Switching v5.0 Chapter 1
 
alphorm.com - Formation Linux LPIC-2
alphorm.com - Formation Linux LPIC-2alphorm.com - Formation Linux LPIC-2
alphorm.com - Formation Linux LPIC-2
 

Semelhante a Chapter 3 vlans

Chapter 1 landesign
Chapter 1   landesignChapter 1   landesign
Chapter 1 landesignkratos2424
 
Chapter 7 wireless
Chapter 7   wirelessChapter 7   wireless
Chapter 7 wirelesskratos2424
 
VLAN chapters for networking CCNA_RSE_Chp6.pptx
VLAN chapters for networking CCNA_RSE_Chp6.pptxVLAN chapters for networking CCNA_RSE_Chp6.pptx
VLAN chapters for networking CCNA_RSE_Chp6.pptxmuhammadFaheem656405
 
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6Waqas Ahmed Nawaz
 
CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6Chaing Ravuth
 
VLANs_Module_3.pptx
VLANs_Module_3.pptxVLANs_Module_3.pptx
VLANs_Module_3.pptxBOURY1
 
Week 9 VLAN, SISTIM INFORMASI MANAGEMEN
Week 9   VLAN, SISTIM INFORMASI MANAGEMENWeek 9   VLAN, SISTIM INFORMASI MANAGEMEN
Week 9 VLAN, SISTIM INFORMASI MANAGEMENSetyady Peace
 
CCNA R&S-10-Implementing Ethernet Virtual LANs
CCNA R&S-10-Implementing Ethernet Virtual LANsCCNA R&S-10-Implementing Ethernet Virtual LANs
CCNA R&S-10-Implementing Ethernet Virtual LANsAmir Jafari
 
Ccna 3 v4.0 final-exam-17-07-2010
Ccna 3 v4.0  final-exam-17-07-2010Ccna 3 v4.0  final-exam-17-07-2010
Ccna 3 v4.0 final-exam-17-07-2010irbas
 
Ccna 3 v 4.0 final-exam-17-07-2010
Ccna 3 v 4.0 final-exam-17-07-2010Ccna 3 v 4.0 final-exam-17-07-2010
Ccna 3 v 4.0 final-exam-17-07-2010irbas
 
Vlan configuration in medium sized network
Vlan configuration in medium sized networkVlan configuration in medium sized network
Vlan configuration in medium sized networkArnold Derrick Kinney
 
Virtual Local Area Network
Virtual Local Area NetworkVirtual Local Area Network
Virtual Local Area NetworkAtakan ATAK
 
CCNP Switching Chapter 3
CCNP Switching Chapter 3CCNP Switching Chapter 3
CCNP Switching Chapter 3Chaing Ravuth
 
Lecture_Network Design, InterVlan Routing and Trunking_.pptx
Lecture_Network Design, InterVlan Routing and Trunking_.pptxLecture_Network Design, InterVlan Routing and Trunking_.pptx
Lecture_Network Design, InterVlan Routing and Trunking_.pptxSaqibAhmedKhan4
 
Chapter 14 : vlan
Chapter 14 : vlanChapter 14 : vlan
Chapter 14 : vlanteknetir
 

Semelhante a Chapter 3 vlans (20)

Vlans
VlansVlans
Vlans
 
Chapter 5 stp
Chapter 5   stpChapter 5   stp
Chapter 5 stp
 
Chapter 1 landesign
Chapter 1   landesignChapter 1   landesign
Chapter 1 landesign
 
Chapter 7 wireless
Chapter 7   wirelessChapter 7   wireless
Chapter 7 wireless
 
VLAN chapters for networking CCNA_RSE_Chp6.pptx
VLAN chapters for networking CCNA_RSE_Chp6.pptxVLAN chapters for networking CCNA_RSE_Chp6.pptx
VLAN chapters for networking CCNA_RSE_Chp6.pptx
 
CCNA_RSE_Chp6.pptx
CCNA_RSE_Chp6.pptxCCNA_RSE_Chp6.pptx
CCNA_RSE_Chp6.pptx
 
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 6
 
CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6CCNA2 Verson6 Chapter6
CCNA2 Verson6 Chapter6
 
VLANs_Module_3.pptx
VLANs_Module_3.pptxVLANs_Module_3.pptx
VLANs_Module_3.pptx
 
Week 9 VLAN, SISTIM INFORMASI MANAGEMEN
Week 9   VLAN, SISTIM INFORMASI MANAGEMENWeek 9   VLAN, SISTIM INFORMASI MANAGEMEN
Week 9 VLAN, SISTIM INFORMASI MANAGEMEN
 
CCNA R&S-10-Implementing Ethernet Virtual LANs
CCNA R&S-10-Implementing Ethernet Virtual LANsCCNA R&S-10-Implementing Ethernet Virtual LANs
CCNA R&S-10-Implementing Ethernet Virtual LANs
 
Ccna 3 v4.0 final-exam-17-07-2010
Ccna 3 v4.0  final-exam-17-07-2010Ccna 3 v4.0  final-exam-17-07-2010
Ccna 3 v4.0 final-exam-17-07-2010
 
Ccna 3 v 4.0 final-exam-17-07-2010
Ccna 3 v 4.0 final-exam-17-07-2010Ccna 3 v 4.0 final-exam-17-07-2010
Ccna 3 v 4.0 final-exam-17-07-2010
 
Chapter 8 .vlan.pdf
Chapter 8 .vlan.pdfChapter 8 .vlan.pdf
Chapter 8 .vlan.pdf
 
Vlan configuration in medium sized network
Vlan configuration in medium sized networkVlan configuration in medium sized network
Vlan configuration in medium sized network
 
Virtual Local Area Network
Virtual Local Area NetworkVirtual Local Area Network
Virtual Local Area Network
 
CCNP Switching Chapter 3
CCNP Switching Chapter 3CCNP Switching Chapter 3
CCNP Switching Chapter 3
 
Lecture_Network Design, InterVlan Routing and Trunking_.pptx
Lecture_Network Design, InterVlan Routing and Trunking_.pptxLecture_Network Design, InterVlan Routing and Trunking_.pptx
Lecture_Network Design, InterVlan Routing and Trunking_.pptx
 
Chapter 14 : vlan
Chapter 14 : vlanChapter 14 : vlan
Chapter 14 : vlan
 
Vlan
VlanVlan
Vlan
 

Mais de kratos2424

Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelesskratos2424
 
Ch6 ccna exploration 3 lan switching and wireless
Ch6 ccna exploration 3 lan switching and wirelessCh6 ccna exploration 3 lan switching and wireless
Ch6 ccna exploration 3 lan switching and wirelesskratos2424
 
Ch7 ccna exploration 3 lan switching and wireless
Ch7 ccna exploration 3 lan switching and wirelessCh7 ccna exploration 3 lan switching and wireless
Ch7 ccna exploration 3 lan switching and wirelesskratos2424
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelesskratos2424
 
Ch4 ccna exploration 3 lan switching and wireless
Ch4 ccna exploration 3 lan switching and wirelessCh4 ccna exploration 3 lan switching and wireless
Ch4 ccna exploration 3 lan switching and wirelesskratos2424
 
Ch3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelessCh3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelesskratos2424
 
Ch2 ccna exploration 3 lan switching and wireless
Ch2 ccna exploration 3 lan switching and wirelessCh2 ccna exploration 3 lan switching and wireless
Ch2 ccna exploration 3 lan switching and wirelesskratos2424
 
Ccna exploration 3 lan switching and wireless
Ccna exploration 3 lan switching and wirelessCcna exploration 3 lan switching and wireless
Ccna exploration 3 lan switching and wirelesskratos2424
 
Switches module 2
Switches module 2Switches module 2
Switches module 2kratos2424
 

Mais de kratos2424 (9)

Final exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wirelessFinal exam ccna exploration 3 lan switching and wireless
Final exam ccna exploration 3 lan switching and wireless
 
Ch6 ccna exploration 3 lan switching and wireless
Ch6 ccna exploration 3 lan switching and wirelessCh6 ccna exploration 3 lan switching and wireless
Ch6 ccna exploration 3 lan switching and wireless
 
Ch7 ccna exploration 3 lan switching and wireless
Ch7 ccna exploration 3 lan switching and wirelessCh7 ccna exploration 3 lan switching and wireless
Ch7 ccna exploration 3 lan switching and wireless
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wireless
 
Ch4 ccna exploration 3 lan switching and wireless
Ch4 ccna exploration 3 lan switching and wirelessCh4 ccna exploration 3 lan switching and wireless
Ch4 ccna exploration 3 lan switching and wireless
 
Ch3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wirelessCh3 ccna exploration 3 lan switching and wireless
Ch3 ccna exploration 3 lan switching and wireless
 
Ch2 ccna exploration 3 lan switching and wireless
Ch2 ccna exploration 3 lan switching and wirelessCh2 ccna exploration 3 lan switching and wireless
Ch2 ccna exploration 3 lan switching and wireless
 
Ccna exploration 3 lan switching and wireless
Ccna exploration 3 lan switching and wirelessCcna exploration 3 lan switching and wireless
Ccna exploration 3 lan switching and wireless
 
Switches module 2
Switches module 2Switches module 2
Switches module 2
 

Chapter 3 vlans

  • 1. VLANs CCNA Exploration Semester 3 Chapter 3 30 Sep 2012 S Ward Abingdon and Witney College 1
  • 2. Topics  The role of VLANs in a network  Trunking VLANs  Configure VLANs on switches  Troubleshoot common VLAN problems 2 30 Sep 2012 S Ward Abingdon and Witney College
  • 3. Semester 3 LAN Design Basic Switch Wireless Concepts VLANs STP VTP Inter-VLAN routing 3 30 Sep 2012 S Ward Abingdon and Witney College
  • 4. Some requirements of LANs  Need to split up broadcast domains to make good use of bandwidth  People in the same department may need to be 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 4 30 Sep 2012 S Ward Abingdon and Witney College
  • 5. Solution using routers  Divide the LAN into subnets  Use routers to link the subnets 5 30 Sep 2012 S Ward Abingdon and Witney College
  • 6. Solution using routers BUT  Routers are expensive  Routers are slower than switches  Subnets are restricted to limited physical areas  Subnets are inflexible 6 30 Sep 2012 S Ward Abingdon and Witney College
  • 7. Solution using VLANs  VLAN membership can be by function and not by location  VLANs managed by switches  Router needed for communication between VLANs 7 30 Sep 2012 S Ward Abingdon and Witney College
  • 8. 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. 8 30 Sep 2012 S Ward Abingdon and Witney College
  • 9. 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 9 30 Sep 2012 S Ward Abingdon and Witney College
  • 10. VLAN information  VLAN information is stored in the VLAN database.  vlan.dat in the flash memory of the switch. 10 30 Sep 2012 S Ward Abingdon and Witney College
  • 11. Port based  Each switch port intended for an end device is configured to belong to a VLAN.  Any device connecting to that port belongs to the port’s VLAN.  There are other ways of assigning VLANs but this is now the normal way.  Ports that link switches can be configured to carry traffic for all VLANs (trunking) 11 30 Sep 2012 S Ward Abingdon and Witney College
  • 12. Types of VLAN  Data or user VLAN  Voice VLAN  Management VLAN  Native VLAN  Default VLAN 12 30 Sep 2012 S Ward Abingdon and Witney College
  • 13. Data VLAN  Carryfiles, e-mails, shared application traffic, most user traffic.  Separate VLAN for each group of users. 13 30 Sep 2012 S Ward Abingdon and Witney College
  • 14. Voice VLAN  Use with IP phone.  Phone acts as a switch too.  Voice traffic is tagged, given priority.  Data not tagged, no priority. 14 30 Sep 2012 S Ward Abingdon and Witney College
  • 15. 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. 15 30 Sep 2012 S Ward Abingdon and Witney College
  • 16. 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. 16 30 Sep 2012 S Ward Abingdon and Witney College
  • 17. 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. 17 30 Sep 2012 S Ward Abingdon and Witney College
  • 18. 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. 18 30 Sep 2012 S Ward Abingdon and Witney College
  • 19. Static VLAN (Port-centric)  If VLAN 20 did not exist before – then it does now. 19 30 Sep 2012 S Ward Abingdon and Witney College
  • 20. Voice VLAN  Configured for voice VLAN and data VLAN. 20 30 Sep 2012 S Ward Abingdon and Witney College
  • 21. Dynamic VLAN  Not widely used.  Use a VLAN Membership Policy Server (VMPS).  Assign a device to a VLAN based on its MAC address.  Connect device, server assigns VLAN.  Useful if you want to move devices around. 21 30 Sep 2012 S Ward Abingdon and Witney College
  • 22. 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 between VLANs. 22 30 Sep 2012 S Ward Abingdon and Witney College
  • 23. Trunking  Bothswitches have the same 5 VLANs.  Do you have a link for each VLAN?  More efficient for them to share a link. 23 30 Sep 2012 S Ward Abingdon and Witney College
  • 24. Trunking  Traffic for all the VLANs travels between the switches on a shared trunk or backbone 24 30 Sep 2012 S Ward Abingdon and Witney College
  • 25. 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 25 30 Sep 2012 S Ward Abingdon and Witney College
  • 26. Frame tagging IEEE 802.1Q Normal Dest Add Source Add Type/Len Data FCS frame Dest Add Source Add Tag Type/Len Data FCS Add 4-byte tag, recalculate FCS Tag protocol Priority CFI for token VLAN ID ID 0x8100 ring 1 - 4096 26 30 Sep 2012 S Ward Abingdon and Witney College
  • 27. 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.  Switch will drop tagged frames received from the native VLAN. This can happen if non- Cisco devices are connected. 27 30 Sep 2012 S Ward Abingdon and Witney College
  • 28. 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. 28 30 Sep 2012 S Ward Abingdon and Witney College
  • 29. Dynamic trunking protocol Dynamic trunk Mode auto/des trunk access Mode Dynamic auto/des access Dynamic access Dynamic auto auto trunk Dynamic Dynamic desirable desirable Dynamic trunk Dynamic desirable auto 29 30 Sep 2012 S Ward Abingdon and Witney College
  • 30. Create a VLAN  SW1(config)#vlan 20  SW1(config-vlan)#name Finance  SW1(config-vlan)#end  VLAN will be saved in VLAN database rather than running config.  If you do not give it a name then it will be called vlan0020. 30 30 Sep 2012 S Ward Abingdon and Witney College
  • 31. Assign port to VLAN  SW1(config)#int fa 0/14  SW1(config-if)#switchport mode access  SW1(config-if)#switchport access vlan 20  SW1(config-if)#end 31 30 Sep 2012 S Ward Abingdon and Witney College
  • 32. show vlan brief  List of VLANs with ports 32 30 Sep 2012 S Ward Abingdon and Witney College
  • 33. 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) 33 30 Sep 2012 S Ward Abingdon and Witney College
  • 34. 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 existing VLAN. 34 30 Sep 2012 S Ward Abingdon and Witney College
  • 35. 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. 35 30 Sep 2012 S Ward Abingdon and Witney College
  • 36. Delete VLAN database  Erasing the startup configuration does not get rid of VLANs because they are saved in a separate file.  SW1#delete flash:vlan.dat  Switch goes back to the default with all ports in VLAN 1.  You cannot delete VLAN 1. 36 30 Sep 2012 S Ward Abingdon and Witney College
  • 37. Configure trunk  SW1(config)#int fa0/1  SW1(config-if)#switchport mode trunk  SW1(config-if)#switchport trunk native vlan 99  SW1(config-if)#switchport trunk allowed vlan add 10, 20, 30  SW1(config-if)#end 37 30 Sep 2012 S Ward Abingdon and Witney College
  • 38. 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. 38 30 Sep 2012 S Ward Abingdon and Witney College
  • 39. The End 30 Sep 2012 S Ward Abingdon and Witney College 39