Lab Course RouterLab Virtual LAN (VLAN) Apoorv Shukla Philipp S. - - PowerPoint PPT Presentation

lab course routerlab
SMART_READER_LITE
LIVE PREVIEW

Lab Course RouterLab Virtual LAN (VLAN) Apoorv Shukla Philipp S. - - PowerPoint PPT Presentation

Lab Course RouterLab Virtual LAN (VLAN) Apoorv Shukla Philipp S. Tiesel Thorben Krueger Feedback from Worksheet-1 Any Questions or Problems (e.g. time slots)? First worksheet due tonight Sign up for module before the second


slide-1
SLIDE 1

Lab Course „RouterLab“

Virtual LAN (VLAN)

Apoorv Shukla Philipp S. Tiesel Thorben Krueger

slide-2
SLIDE 2

Feedback from Worksheet-1

 Any Questions or Problems (e.g. time slots)?  First worksheet due tonight  Sign up for module before the second

worksheet debriefjng (at Prüfungsamt)

 From now on: Meeting at 16.00 sharp on

  • Thursdays. Any problems?
slide-3
SLIDE 3

Defjnitions

❒ LAN

broadcast domain

Switches „connect“ difgerent LAN segments

Ethernet ❒ Virtual LAN (VLAN)

Group of devices can communicate with each

  • ther as if they were on the same LAN

confjgured on switches (and routers)

slide-4
SLIDE 4

VLAN Example

slide-5
SLIDE 5

VLAN Example

slide-6
SLIDE 6

„T ypes“ of VLANs

❒ Port-based VLANs

A switch port is exclusively used by one VLAN ❒ T

runking

Required if multiple VLANs share the same physical link/ switch port

A VLAN ID is added to the Ethernet header

Switches forward Ethernet frame with VLAN ID X to all ports that are enabled for „trunking“ of X

slide-7
SLIDE 7

VLAN Example

slide-8
SLIDE 8

Port-based VLANs

❒ Each switchport

can be assigned to a VLAN

accepts incoming traffjc from a specifjc VLAN

forwards packets to ports that belong to same VLAN ❒ Confjguration

(confjg-if) switchport access vlan <vlan-id>

(confjg-if) switchport mode access

slide-9
SLIDE 9

Trunking (802.1Q)

❒ Needed if multiple VLANs on same link ❒ Switch

(confjg-if) switchport trunk allowed vlan 500,501

(confjg-if) switchport mode trunk

❒ Cisco: subinterface, e.g., f0/0.100

(confjg-subif) encapsulation dot1Q <vlan_id>

❒ Juniper: extra unit

vlan-tagging

unit 500 {vlan-id 500}

❒ Loadgen: extra interface ethX.<vlan-id>

vconfjg add ethX <vlan-id>

slide-10
SLIDE 10

VLAN Example

slide-11
SLIDE 11

VLAN Example

slide-12
SLIDE 12

Native VLAN

❒ By default all switchports use a native VLAN

with vlanid = 1

slide-13
SLIDE 13

VLANs - Summary

❒ Rule of thumb

Use access mode if a physical link corresponds to a single VLAN

  • No subinterfaces on routers/loadgens required

❒ The following is possible:

Example: Send Ethernet frame on direct link from router to switch

Router: Adds VLAN tag (vconfjg)

Switch: Removes VLAN tag on outgoing port (access mode) before forwarding ❒ More info in ISIS

slide-14
SLIDE 14

VLAN Example

slide-15
SLIDE 15

Worksheet – Question 1

❒ Background reading

VLAN motivations

Port based vs trunked

VLANs in practice

slide-16
SLIDE 16

Worksheet – Question 2

❒ Confjgure VLANs ❒ Figure out whether to use access or trunk mode

slide-17
SLIDE 17

Worksheet – Question 3

❒ Enable routing between VLANs

Devices in VLAN X should be able to communicate with devices in VLAN Y

Confjgure static routes

slide-18
SLIDE 18

Worksheet – Question 4

❒ Linux VLAN Trunking

Enable multiple VLAN subinterfaces on the loagens

slide-19
SLIDE 19

Module Registration Deadline Bachelor/Master students

Sign up for module before the second debriefing (at Prüfungsamt)