+ All Categories
Home > Documents > CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches •...

CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches •...

Date post: 13-Apr-2020
Category:
Upload: others
View: 13 times
Download: 1 times
Share this document with a friend
16
1 Virtual LANs VLAN Concepts
Transcript
Page 1: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

1

Virtual LANs

VLAN Concepts

Page 2: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

2

Overview

• Created by software running on Layer 2 switches

• VLANs can be static or dynamic – responsibility of the network administrator

• Segment LANs into logical groupings e.g. by function, project team, application

• Users must be in the same VLAN as their workgroup server

• VLAN is a broadcast domain

• Traffic can be switched between VLANS with a router

Page 3: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

Local VLANs

VLAN XVLAN X VLAN YVLAN YSwitch

VLAN X nodes VLAN Y nodes

3

LAN

Broadcast domain

Page 4: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

Virtual LANs (VLANs)

Allows us to split switches into separate (virtual) switches

Only members of a VLAN can see that VLAN’s traffic

Inter-VLAN traffic must be routed (i.e. go through a router) because they are separate subnets

4

Page 5: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

5

VLAN Operation

• Switches maintain a bridging table for each VLAN

• Switches can support multiple VLANs

• Switches perform filtering/forwarding based on VLAN ID

Page 6: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

VLAN introduction

VLANs provide segmentation based on broadcast domains.

VLANs logically segment switched networks based on the functions, project teams, or applications of the organization regardless of the physical location or connections to the network.

All workstations and servers used by a particular workgroup share the same VLAN, regardless of the physical connection or location.

6

Page 7: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

Local VLANs

2 VLANs or more within a single switch

VLANs address scalability, security, and network management. Routers in VLAN topologies provide broadcast filtering, security, and traffic flow management.

Edge ports, where end nodes are connected, are configured as members of a VLAN

The switch behaves as several virtual switches, sending traffic only within VLAN members.

Switches may not bridge any traffic between VLANs, as this would violate the integrity of the VLAN domain.

Traffic should only be routed between VLANs.7

Page 8: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

Broadcast domains with VLANs and routers

Without VLANs, each group is on a different IP network and on a different switch.

Using VLANs. Switch is configured with the ports on the appropriate VLAN. Still, each group on a different IP network; however, they are all on the same switch.

What are the broadcast domains in each?

Without VLANs:

One link per VLAN or a single VLAN Trunk (later)

With VLANs

10.1.0.0/16

10.2.0.0/16

10.3.0.0/16

10.1.0.0/16

10.2.0.0/16

10.3.0.0/16

8

Page 9: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

VLANs

T w o V L A N s T w o S u b n e t s

S w i t c h 11 7 2 . 3 0 . 1 . 2 1

2 5 5 . 2 5 5 . 2 5 5 . 0V L A N 1

1 7 2 . 3 0 . 2 . 1 02 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 2

1 7 2 . 3 0 . 1 . 2 32 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 1

1 7 2 . 3 0 . 2 . 1 22 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 2

Two VLANs = Two subnets

Important notes on VLANs: VLANs are assigned to switch ports. There is

no “VLAN” assignment done on the host. In order for a host to be a part of that

VLAN, it must be assigned an IP address that belongs to the proper subnet. Remember: VLAN = Subnet

1 2 3 4 5 6 .1 2 1 2 2 1 .

PortVLAN

9

Page 10: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

VLANs

T w o V L A N s T w o S u b n e t s

S w i t c h 11 7 2 . 3 0 . 1 . 2 1

2 5 5 . 2 5 5 . 2 5 5 . 0V L A N 1

1 7 2 . 3 0 . 2 . 1 02 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 2

1 7 2 . 3 0 . 1 . 2 32 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 1

1 7 2 . 3 0 . 2 . 1 22 5 5 . 2 5 5 . 2 5 5 . 0

V L A N 2

Two VLANs = Two subnets

VLANs separate broadcast domains == subnets.e.g. without VLAN the ARP would be seen on all subnets.

Assigning a host to the correct VLAN is a 2-step process: Connect the host to the correct port on the switch.

Assign to the host the correct IP address depending on the VLAN membership

1 2 3 4 5 6 .1 2 1 2 2 1 .

PortVLAN

ARP Request

10

Page 11: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

VLAN operation

As a device enters the network, it assumes the VLAN membership of the port to which it is attached.

The default VLAN for every port in the switch is VLAN 1 and cannot be deleted. (This statement does not give the whole story. More in the lab later for interested groups…)

All other ports on the switch may be reassigned to arbitrary VLANs.

11

Page 12: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

VLANs across switches

Two switches can exchange traffic from one or more VLANs

Inter-switch links are configured as trunks, carrying frames from all or a subset of a switch’s VLANs

Each frame carries a tag that identifies which VLAN it belongs to

12

Page 13: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

13

Benefits of VLANs

• Create broadcast domains

• Control network traffic

• Increased security

• Workstations can be moved without needing reconfiguration

Page 14: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

14

VLAN Membership

• Port based • MAC addressed based• Protocol based

• Any VLAN is a layer 3 broadcast domain

• VLAN traffic between switches (trunks) is tagged (802.1q) or encapsulated (ISL) to identify VLAN membership

Page 15: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

15

VLAN IOS Configuration

Example

Switch#vlan database

Switch(vlan)#vlan 2

Switch(vlan)#name marketing

Switch(vlan)#exit

Switch(config)#interface fastethernet 0/9

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 2

Page 16: CCNA3 - VLANs...VLAN Concepts 2 Overview • Created by software running on Layer 2 switches • VLANs can be static or dynamic – responsibility of the network administrator •

16

Other VLAN/switching commands

• Switch#show vlan• Switch#show vlan brief• Switch#show spanning-tree• Switch#Show interface


Recommended