The University of Bolton School of Business & Creative Technologies MWD1014 Computer Networks Virtual Local Area Networks (VLANs) Martin Stanhope

Slides:



Advertisements
Similar presentations
Virtual Trunk Protocol
Advertisements

LAN Segmentation Virtual LAN (VLAN).
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 3: VLANs Routing & Switching.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Inter- VLAN Routing LAN Switching and Wireless – Chapter 6.
Virtual LANs.
Switching Topic 4 Inter-VLAN routing. Agenda Routing process Routing VLANs – Traditional model – Router-on-a-stick – Multilayer switches EtherChannel.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 VLANs LAN Switching and Wireless – Chapter 3.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 W. Schulte Chapter 5: Inter-VLAN Routing Routing And Switching.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Inter-VLAN Routing Routing & Switching.
1 Inter-VLAN routing Chapter 6 CCNA Exploration Semester 3 Modified by Profs. Ward and Cappellino.
VLANs- Chapter 3 CCNA Exploration Semester 3 Modified by Profs. Ward
(part 3).  Switches, also known as switching hubs, have become an increasingly important part of our networking today, because when working with hubs,
We will be covering VLANs this week. In addition we will do a practical involving setting up a router and how to create a VLAN.
VLANs.ppt CCNA Exploration Semester 3 Chapter 3
Virtual LAN (VLAN) W.lilakiatsakun.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 5: Inter-VLAN Routing Routing And Switching.
Chapter 6 Inter-VLAN Routing.
Advanced Computer Networks
Chapter 6 Lecture11 Inter-VLAN Routing Assistant Professor Pongpisit Wuttidittachotti, Ph.D. Faculty of Information Technology King Mongkut's University.
Voice VLANs Lecture 7 VLANs.ppt 21/04/ Apr-17
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 3: Implementing VLAN Security Routing And Switching.
Virtual LAN Design Switches also have enabled the creation of Virtual LANs (VLANs). VLANs provide greater opportunities to manage the flow of traffic on.
Chapter review Chapter 5 test.
Sybex CCNA Chapter 11: VLAN’s Instructor & Todd Lammle.
Chapter 3 test.  VLANS group hosts _____________________ logically or physically?  Logically—regardless of physical location  Devices in one VLAN do.
VLAN V irtual L ocal A rea N etwork VLAN Network performance is a key factor in the productivity of an organization. One of the technologies used to.
Hubs to VLANs Cisco Networking Academy Program © Cisco Systems, Inc From Hubs to VLANs.
Chapter 8: Virtual LAN (VLAN)
CCNA 3 Week 9 VLAN Trunking. Copyright © 2005 University of Bolton Origins Dates back to radio and telephone Trunk carries multiple channels over a single.
Cisco 3 - LAN Perrine. J Page 110/20/2015 Chapter 8 VLAN VLAN: is a logical grouping grouped by: function department application VLAN configuration is.
Inter VLAN routing W.lilakiatsakun. What is inter VLAN routing.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 8 Virtual LANs.
Chapter 6 1 Chap 6 – Implement Inter-VLAN Routing Learning Objectives Explain to the satisfaction of a qualified instructor how network traffic is routed.
The University of Bolton School of Games Computing & Creative Technologies LCT2516 Network Architecture CCNA Exploration LAN Switching and Wireless Chapter.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 9 Virtual Trunking Protocol.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 8 Virtual LANs Cisco Networking Academy.
Inter VLAN routing using ISL By Eric and Holly. Overview of ISL Trunking Trunking is a way to carry traffic from several VLANs over a point-to-point link.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 VLANs LAN Switching and Wireless – Chapter 3.
The University of Bolton School of Games Computing & Creative Technologies LCT2516 Network Architecture CCNA Exploration LAN Switching and Wireless Chapter.
Switching Topic 2 VLANs.
Virtual LAN (VLAN) W.lilakiatsakun. VLAN Overview (1) A VLAN allows a network administrator to create groups of logically networked devices that act as.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Switching in an Enterprise Network Introducing Routing and Switching in the.
Virtual Local Area Networks (VLANs) Part II
Configuring VLAN Chapter 14 powered by DJ 1. Chapter Objectives At the end of this Chapter you will be able to:  Understand basic concept of VLAN  Configure.
Chapter 4 Version 1 Virtual LANs. Introduction By default, switches forward broadcasts, this means that all segments connected to a switch are in one.
VLANs Last Update Copyright Kenneth M. Chipps Ph.D.
W&L Page 1 CCNA CCNA Training 2.5 Describe how VLANs create logically separate networks and the need for routing between them Jose Luis.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 3: VLANs Routing & Switching.
Virtual LAN (VLAN) W.lilakiatsakun.
Akhyari Nasir.  Router-on-a-stick is a type of router configuration in which a single physical interface routes traffic between.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 VLANs LAN Switching and Wireless – Chapter 3.
Presented BY Kanav Dev Singh B.Tech I.T (8 Th sem)
+ Lecture#8: VLAN Asma AlOsaimi Topics VLAN Segmentation VLAN Implementation VLAN Security and Design 3.0.
LAN Switching Virtual LANs. Virtual LAN Concepts A LAN includes all devices in the same broadcast domain. A broadcast domain includes the set of all LAN-connected.
1 2-Jul-16 Inter-VLAN routing CCNA Exploration Semester 3 Chapter 6.
Chapter 6 Thanks to the instructors at St. Clair College in Windsor, Ontario.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 VLANs.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 VLANs.
Inter VLAN routing Ferry Astika Saputra.
Instructor Materials Chapter 2: Scaling VLANs
By Ashar Anwar.
© 2002, Cisco Systems, Inc. All rights reserved.
Instructor Materials Chapter 6: VLANs
Virtual Local Area Networks (VLANs) Part I
Chapter 5: Inter-VLAN Routing
Chapter 2: Scaling VLANs
Routing and Switching Essentials v6.0
CCNA Routing and Switching Routing and Switching Essentials v6.0
Chapter 2: Scaling VLANs
Lecture#7: Trunking and STP
Presentation transcript:

The University of Bolton School of Business & Creative Technologies MWD1014 Computer Networks Virtual Local Area Networks (VLANs) Martin Stanhope 1

Overview This presentation will introduce you to the following concepts: VLANs (based on switch port membership) Creating VLANs Assigning ports to VLANs Interconnecting VLANs across multiple switches The use of trunk ports and trunk links Inter-VLAN communication using a router The use of router subinterfaces 2

All switch ports belong to VLAN1 by default 3 fa 0/1 v1 fa 0/2 v1 fa 0/3 v1 fa 0/4 v1 fa 0/5 v1 fa 0/6 v1 fa 0/7 v1 The above represents a lan switch. To get us started, for the time being, consider a VLAN to be a group of switch ports. All switch ports belong to VLAN1 by default (abbreviated in the above as v1)

New vlans can be created and switch ports assigned to them 4 fa 0/1 v1 fa 0/2 v2 fa 0/3 v2 fa 0/4 v3 fa 0/5 v3 fa 0/6 v1 fa 0/7 v1 VLANs are only created on switches. Switch ports are then assigned to the VLANs PCs are then attached to the switch ports. The PCs become members of the VLANs due to the ports they a wired to. This is STATIC (port-centric) VLAN membership.

CLI commands to create the two new VLANs Switches can be configured in the same way as routers by connecting a laptop to the switch’s console port and using Hyperterminal software to access the switch’s command line interface (CLI) as shown below... S1> enable S1# vlan database S1(vlan)# vlan 2 name students S1(vlan)# vlan 3 name staff S1(vlan)# end 5

Assign switch ports to the new VLANs S1# configure terminal S1(config)# interface fa0/2 S1(config-if)# switchport mode access S1(config-if)# switchport access vlan 2 S1(config)# interface fa0/3 S1(config-if)# switchport mode access S1(config-if)# switchport access vlan 2 S1(config)# interface fa0/4 S1(config-if)# switchport mode access S1(config-if)# switchport access vlan 3 S1(config)# interface fa0/5 S1(config-if)# switchport mode access S1(config-if)# switchport access vlan 3 6

Attach PCs to the ports and assign appropriate IP addresses according to the VLANS the ports belong to. 7 fa 0/1 v1 fa 0/2 v2 fa 0/3 v2 fa 0/4 v3 fa 0/5 v3 fa 0/6 v1 fa 0/7 v / / / / /24 VLAN 1 network address – /24 VLAN 2 network address – /24 VLAN 3 network address – /24

Linking multiple VLANs across 2 switches 8 VLAN1 VLAN2 VLAN3 Colour key... VLANs 1 exist by default on both switches. VLANs 2 and 3 have to be created on each switch. Notice how ports and cables are required to link the VLANs corresponding on both switches PCs can only communicate with other PCs in the same VLAN. Inter VLAN communications will require a router (see later notes) This method of interlinking VLANs across switches doesn’t scale very well as more ports and cables are required for more VLANs.

Linking multiple VLANs across 2 switches using a trunk link 9 T T VLAN1 VLAN2 VLAN3 Colour key... One port on each switch is configured as a TRUNK port. A trunk link allows traffic from any VLAN to cross it. The trunk link cable is just a normal UTP crossover cable. Trunking reduces the number of ports and cables required to allow traffic from multiple VLANs to move between the switches. Frames are tagged with an ID representing their source VLAN by the originating switch so they be delivered to the corresponding VLAN at the other end of the trunk link. IEEE802.1q Frame Tagging standard. PCs can only communicate with other PCs in the same VLAN. Inter VLAN communications requires router (see later notes). Trunk link

Configuring switch ports to be trunk ports instead of access ports Configure Switch 1 port fa0/6 to be a trunk port S1(config)# interface fa0/6 S1(config)# switchport mode trunk S1(config)# switchport trunk native vlan 1 S1(config)# end Configure Switch 2 port fa0/6 to be a trunk port S2(config)# interface fa0/6 S2(config)# switchport mode trunk S2(config)# switchport trunk native vlan 1 S2(config)# end 10 Note – The ‘switchport trunk native vlan 1’ command is required for trunks to be able to handle ‘non-VLAN’ generated traffic. This is a little advanced for this level but has been included here for completeness.

Inter-VLAN routing – Method 1 using no trunks 11 VLAN1VLAN2VLAN3 Colour key... Router Three router Ethernet interfaces are required as there are 3 networks (VLANs) to interconnect

VLAN Trunks A trunk is a point-to-point link between two network devices that carries traffic from more than one VLAN. A VLAN trunk allows you to extend the VLANs across an entire network. Cisco supports the IEEE 802.1q frame tagging standard for coordinating trunks on Fast Ethernet and Gigabit Ethernet interfaces. A VLAN trunk does not belong to a specific VLAN, rather it is a conduit for VLANs between switches and routers. Trunks are created by configuring the ports of the network devices. There is nothing special about the cables used. E.g. For a copper solution: cross-over cables between switches, straight-through cables between switch and router. Without trunks there is a need for a normal link between switches (or switch and router) FOR EACH VLAN. This results in many used ports and more cables than for a trunked solution. 12

Inter-VLAN routing – Method 2 using trunks 13 T T VLAN1VLAN2VLAN3 Colour key... T Router A trunk link is used to connect the two switches allowing traffic from all VLANs to cross it. A trunk link is used to connect one of the switches to the router to allow traffic to/from all VLANs. How can 3 networks, VLAN 1, 2 and 3 be interlinked using just 1 router port? Trunk link

Inter-VLAN routing using trunks. Router subinterfaces. 14 T T VLAN1VLAN2VLAN3 Colour key... T Router When using a trunk link to a router, a router physical interface e.g., fa0/0, can be configured to act as multiple ‘virtual subinterfaces’ identified using the following naming convention. One subinterface for each VLAN... fa0/0.1, fa0/0.2, fa0/0.3 etc.

Configuration of the ‘router-on-a-stick’ network scenario The next slides shows the IP/Subnet mask information for a working system. Note how each switch has been configured to have a VLAN1 virtual management interface that is given an IP address and subnet mask. This IP address can be used to remotely Telnet into the switch for remote configuration purposes. Each switch is also configured to have a ‘Default Gateway’ IP address that must correspond to the IP address of the VLAN1 subinterface on the router. 15

VLAN setup showing full configuration information 16 T T VLAN /24VLAN /24VLAN /24 Colour key... T Router fa0/0... fa0/0.1 VLAN 1 interface /24... fa0/0.2 VLAN 2 interface /24... fa0/0.3 VLAN 3 interface /24 Switch 1 management info: IP = /24 (a valid VLAN1 address) DG = /24 (i.e. VLAN 1 interface address) Switch 2 management info: IP = /24 (a valid VLAN1 address) DG = /24 (i.e. VLAN 1 interface address)

Configuring the 3 subinterfaces (one per VLAN) on the router physical interface using the IEEE802.1q frame tagging standard R1# configure terminal R1(config)# interface fa0/0 R1(config)#no shutdown R1(config-if)# interface fa0/0.1 R1(config-subif)# encapsulation dot1q vlan1 R1(config-subif)# ip address R1(config-if)# interface fa0/0.2 R1(config-subif)# encapsulation dot1q vlan2 R1(config-subif)# ip address R1(config-if)# interface fa0/0.3 R1(config-subif)# encapsulation dot1q vlan3 R1(config-subif)# ip address R1(config-subif)# end 17

Why use VLANs instead of traditional LANs? Traditionally LANS are ‘geographical’ groupings of computers VLANs allow PCs in different geographical locations to be in the same network (or subnetwork). They are grouped by function not by location. VLANs are created on switches Inter VLAN communication requires a router VLANs are identified by a number or an assigned name VLAN benefits –Improved security –Cost reduction –Higher performance –Broadcast storm improvement –Improved IT staff efficiency –Simpler project or application management –Simpler to move company personal into different networks without physically moving them. 18

What are the range of available VLANs? Normal Range VLAN IDs –VLAN ID ranges from 1 to 1005 –VLANs 1002, 1003, 1004 and 1005 are reserved for Token Ring and Fibre Distributed Data Interface (FDDI) networks.Token RingFibre Distributed Data Interface (FDDI) –VLANs 1, 1002, 1003, 1004 and 1005 are automatically created on a switch and cannot be removed. –VLAN configurations are stored in a VLAN database file named vlan.dat held in flash memory within the switch 19

What are the range of available VLANs? cont... Extended Range VLAN IDs –Range from 1006 to 4094 –Designed for service providers –Support fewer VLAN features than normal range VLANs –Are saved in the running-config file Configurable VLANs –Cisco Catalyst 2960 switch can support up to 255 normal and extended range VLANs –Cisco enterprise level units can join/stack 9 48-port switches giving 432 ports on a single switch unit. 20