64
11 Aralık 2007 Virtual Local Area Network (VLAN) Prepared By Ekin Koskos Evrim Küçükodacı Yahya Kaptan Gülez

VLAN

Embed Size (px)

Citation preview

Page 1: VLAN

11 Aralık 2007

Virtual Local Area Network (VLAN)

Prepared By

Ekin KoskosEvrim KüçükodacıYahya Kaptan Gülez

Page 2: VLAN

Outline

•Introduction

•Virtual Local Area Network Operation

•Types of Virtual Local Area Network

•Virtual Local Area Network Configuration

•Troubleshooting in Virtual Local Area Network

•Benefits of Virtual Local Area Network

Page 3: VLAN

Introduction

General Description of LAN

Covering a small geographic area Home

Office

Group of Buildings

Page 4: VLAN

Definition of Virtual Local Area Network

Commonly known as VLAN

Group of hosts(ports) on the switch with a common set of requirements

Group of hosts communicate as if they were attached to the same wire

Page 5: VLAN

Definition of Virtual Local Area Network

VLAN has the same attributes as a physical LAN

VLAN allows grouping to the end stations, services and

devices

End stations do not need to locate on the same LAN

segment

Broadcast domain created by one or more switches

Page 6: VLAN

Difference of VLAN and LAN

Page 7: VLAN

VLAN Membership

Page 8: VLAN

Broadcast Domains

A switch creates a broadcast domain VLAN helps manage broadcast domains VLANS can be defined on ports groups, users

or protocols LAN switches and network management

software provide a mechanism to create VLANs

Page 9: VLAN

VLAN Operations

VLAN has a switched network that is logically segmented

Each switch port can be assigned to a VLAN Ports assigned to the same VLAN share broadcasts. Ports that do not belong to that VLAN do not share

these broadcasts This improves network performance because

unnecessary broadcasts are reduced

Page 10: VLAN

How does it work?

Bridge receives data from a workstation, it tags the data with a VLAN identifier (This is called explicit tagging)

In implicit tagging the data is not tagged, VLAN determine the port on which the data arrived

Tagging can be based on – The port from which it came– The source Media Access Control (MAC) field– The source network address– Or some other field or combination of fields

Page 11: VLAN

Frame Tagging Methods

Page 12: VLAN

How does it work? (cont’d)

VLANs are classified based on the method used The bridge would have to keep an updated

database containing a mapping between VLANs’ and fields used for tagging

To understand how VLAN's work, there is need to look at the types of VLAN

Page 13: VLAN

Virtual Local Area Network

Types of VLAN

Page 14: VLAN

Default VLAN

The default VLAN for every port in the switch is the management VLAN – VLAN 1.

The management VLAN is always VLAN 1 and may not be deleted.

At least one port must be assigned to VLAN 1 in order to manage the switch.

Page 15: VLAN

Static VLAN Membership

•Static membership VLANs are called port-based and port-

centric membership VLANs

•Static VLANs are ports on a switch that are manually

assigned to a VLAN

•All moves are controlled and managed.

Page 16: VLAN

Dynamic VLAN Membership

•Dynamic membership VLANs are created through network management software

CiscoWorks 2000•Membership is based on the MAC address of the device connected to the switch port

•Network administrator gets all the device’s MAC addresses and put it into a database. WHY?

Page 17: VLAN

Types of VLAN

•Three basic VLAN memberships for determining and controlling how a packet entering a switch gets assigned to a VLAN.

Page 18: VLAN

Port driven VLANs

•Most common configuration method

•User assigned by port association

•Easily administered through GUIs

•Maximizes security between VLANs

•Packets do not “leak” into other domains

Page 19: VLAN

Port driven VLANs cont’d.

User assigned port association ???•For example, in a bridge with four ports, ports 1, 2, and 4 belong to VLAN 1

and port 3 belongs to VLAN 2

Port VLAN

1 1

2 1

3 2

4 1

Assignment of ports to different VLAN's.

Disadvantage:

•Does not allow for user mobility

Page 20: VLAN

MAC address driven VLANs

•User assigned based on MAC addresses

•Offers flexibilityFor Example:Since MAC addresses form a part

of the workstation's network interface card, when a workstation is moved, no reconfiguration is needed to allow the workstation to remain in the same VLAN

Impacts performance, scability, and administration

Page 21: VLAN

MAC address driven VLANs cont’d

MAC Address VLAN

1212354145121 1

2389234873743 2

3045834758445 2

5483579475843 1

Assignment of MAC addresses to different VLAN's

Page 22: VLAN

MAC address driven VLANs cont’d

Disadvantage

•VLAN membership must be assigned initially.

In networks with thousands of users. Also, in environments where notebook PC's are used, the MAC address is associated with the docking station and not with the notebook PC. Consequently, when a notebook PC is moved to a different docking station, its VLAN membership must be reconfigured.

Page 23: VLAN

Network address driven VLANs

•The network IP subnet address can be used to classify VLAN membership

IP Subnet VLAN

23.2.24 1

26.21.35 2

Assignment of IP subnet addresses to different VLAN's

Page 24: VLAN

Network address driven VLANs cont’d

•IP addresses are used only as a mapping to determine membership in VLAN's.

•In Layer 3 VLAN's, users can move their workstations without reconfiguring their network addresses. The only problem is that it generally takes longer to forward packets using Layer 3 information than using MAC addresses.

Page 25: VLAN

Selecting VLANs

•The number of VLANs in a switch vary based on several factors

•Traffic patterns•Types of applications•Network management needs•Group commonality

Page 26: VLAN

Selecting VLANs

The IP addressing scheme is another important consideration in defining the number of VLANs in a switch.

For example, a network that uses a 24-bit mask to define a subnet has a total of 254 host addresses allowed on one subnet.

Page 27: VLAN

Virtual Local Area Network

VLAN Configuration

Page 28: VLAN

VLAN Configuration

VLANs, Allow control of broadcast, multicast, unicast,and

unknown unicast within a Layer 2 device.

Defined in VLAN Trunking Protocol (VTP) database.

Assigned numbers for identification within and between swithces.

Have a configurable parameters.

Page 29: VLAN

VLAN Configuration

Configuration is done through software.

Each VLAN must have a unique Layer 3 network or subnet address.

VLANs can exist either as end to end networks or inside of geographic boundaries.

Page 30: VLAN

End to End VLANs

VLAN membership for users is based on department or job function

VLAN membership for users do not change when they relocate within the campus

Each VLAN has a common set of security requirements for all members

End to end VLANs use the 80/20 rule

80% of traffic inside the VLAN and 20% travels outside

This creates difficulties sharing resources if users are spread out

Page 31: VLAN

End to End VLANs

Page 32: VLAN

Geographical VLANs

Geographical VLANs use 20/80 rule

– 20% of traffic inside the VLAN and 80% travels outside

– This means that 80 percent of the services from resources must travel through a Layer 3 device

– However this provides a deterministic and consistent method to access resources

Page 33: VLAN

Geographical VLANS

Page 34: VLAN

Traffic Rules

A core layer router is used to route between subnets.

A network is engineered, based on traffic flow patterns.

Typically the rule has been to have 80 percent of the traffic contained within a VLAN.

The remaining 20 percent crosses the router to the enterprise servers and to the Internet and WAN.

Page 35: VLAN

Configuration of a Static VLAN

Static VLANs are ports on a switch that are manually assigned to a VLAN

That can be accomplished with a VLAN management application or configured directly into the switch through the CLI

Page 36: VLAN

Configuration of a Static VLAN

Static VLAN works well in networks with the following specific requirements:

– All moves are controlled and managed.

– There is a robust management software to configure the ports.

– The additional overhead required to maintain end-station MAC addresses and custom filtering tables is not acceptable.

Page 37: VLAN

Verification of VLAN Configuration

The following commands can be used to verify VLAN configurations.– show vlan– Show vlan brief– Show vlan id

Page 38: VLAN

Verification of VLAN Configuration

The following figure shows a list of applicable commands

Page 39: VLAN

Verification of VLAN Configuration

The following figure shows the steps to assign a new VLAN to a port on the Sydney switch.

Page 40: VLAN

Verification of VLAN Configuration

The following figure shows the output list of show vlan command.

Page 41: VLAN

Verification of VLAN Configuration

The following figure shows the output list of show vlan brief command.

Page 42: VLAN

Saving VLAN Configuration

The switch configuration settings can be backed up to TFTP server with the copy running-config tftp command.

The HyperTerminal text capture feature along with the commands show running-config and show vlan can be used to capture configurations settings.

Page 43: VLAN

Saving VLAN Configuration

The following figure shows that capture VLAN Configuration with HyperTerminal

Page 44: VLAN

Deleting VLANs

When a VLAN is deleted, all ports assigned to that VLAN become inactive.

The ports will remain associated with the deleted VLAN until assigned to a new VLAN.

Page 45: VLAN

Deleting VLANs

The command below is used to remove a VLAN from a switch:– Switch#vlan database – Switch(vlan)#no vlan 300

Page 46: VLAN

Deleting VLANs

Steps to assign a switch port to a new VLAN

Page 47: VLAN

Deleting VLANs

Page 48: VLAN

Virtual Local Area Network

Troubleshooting VLAN

Page 49: VLAN

Troubleshooting VLAN

Switch LEDs CDP Check VLAN membership Check trunking Check spanning tree protocol Bottle necks

– The old 80/20 rule, which stated that only 20 percent of network traffic went over the backbone, is obsolete.

Page 50: VLAN

Troubleshooting VLAN

VLAN Problem Isolation

Page 51: VLAN

Troubleshooting VLAN

Problem Isolation in Catalyst Networks

Page 52: VLAN

Virtual Local Area Network

Benefits of VLAN

Page 53: VLAN

Benefits of VLAN

Page 54: VLAN

Benefits of VLAN

VLANs allow network administrators to organize LANs logically instead of physically.

•Easily move workstations on the LAN •Easily add workstations to the LAN •Easily change the LAN configuration •Easily control network traffic •Improve security

Page 55: VLAN

Why use VLAN instead of LAN ?

•Performance•Formation of Virtual Workgroups•Simplified Administration•Reduces Cost•Security

Page 56: VLAN

Performance

•Network traffic consists of a high percentage of broadcasts and multicasts

•Reduce the need to send such traffic to unnecessary destinations

•Reduces the number of routers needed, Since VLANs create broadcast domains using switches instead of routers.

Page 57: VLAN

Formation of Virtual Workgroups

•It is easier to place members of a workgroup together

•Without VLAN's, the only way this would be possible is to physically move all the members of the workgroup closer together.

Page 58: VLAN

Simplified Administration

•Seventy percent of network costs are a result of adds, moves, and changes of users in the network

•If a user is moved within a VLAN, reconfiguration of routers is unnecessary

•Every time a user is moved in a LAN, recabling, new station addressing, and reconfiguration of hubs and routers becomes necessary.

Page 59: VLAN

Reduced Cost

•Eliminate the need for expensive routers

Page 60: VLAN

Security

•VLAN can also be used to control broadcast domains

•Set up firewalls

•Restrict access

•Inform the network manager of an intrusion

Page 61: VLAN

References

Cisco Networking Academy, https://cisco.netacad.net

Wikipedia, http://en.wikipedia.org/wiki/Virtual_LAN

UCDAVIS Network21, http://net21.ucdavis.edu/newvlan.htm

VLAN, Raj Jain, http://www.cs.wustl.edu/~jain/cis788-97/ftp/virtual_lans/index.htm

Cisco Press http://www.ciscopress.com/articles/article.asp?p=29803&rl=1

Page 62: VLAN

Questions???

1. How the VLANs help the network administrator organize the network?

2. A 12 port switch has been configured to support three VLANs named Sales, Marketting and Finance. Each VLAN spans four ports on the switch. The network administrator has deleted the Marketting VLAN from the switch. What is the status of the ports associated with this VLAN?

3. Why network administrators use database to save MAC addresses?

Page 63: VLAN

Questions???

4.How many broadcast domain exist in the scenario presented in the graphic?

Page 64: VLAN

Virtual Local Area Network

Thank you for Listening!