Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DI 2.13: Separating traffic with VLANs

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

The reception desk can see the payroll

A college has one switch. The finance office, the classrooms and the guest Wi-Fi all plug into it.

They can all hear each other. A guest laptop can shout to the finance printer and hear its reply.

You do not need three buildings to fix this. You need three separate groups inside one switch.

Key words

WordWhat it means
Switcha device that joins devices inside one network
VLANa virtual network made inside a switch, so devices are kept apart
Access porta switch port for one device, which belongs to one VLAN
Trunk porta switch port that carries many VLANs to another device
Taga small label on each frame that says which VLAN it belongs to
Broadcasta message sent to every device in a network
Gatewaythe router address that devices use to leave their own network
Routera device that passes data between networks
Firewalla device or program that allows or blocks traffic by rules
Packeta small piece of data sent over a network
Networkcomputers and devices joined so they can share data

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can configure VLANs on a switch and a router, and test that the traffic is separated and still routed.

Starter

Have a go

Starter

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

One switch, two virtual networks

A VLAN splits one switch into separate networks. Devices in VLAN 10 cannot talk straight to devices in VLAN 20.

Each device plugs into an access port. The port belongs to one VLAN.

The router has one cable to the switch, a trunk port. It carries both VLANs. Each frame wears a tag that names its VLAN.

Before: h20 can hear srv

Command
sudo ip netns exec h20 arping -c 2 -I eth0 10.10.0.100

A command for the lesson’s lab terminal. It is shown here and not run.

What this shows

Note

arping asks for the hardware address of 10.10.0.100 with a broadcast. srv replies. So h20 and srv are in one broadcast network, even though they should not be.

Worked example: the port plan

Switch portDeviceVLANPort type
p-h10h10 (10.10.0.11)10Access
p-srvsrv (10.10.0.100)10Access
p-h20h20 (10.20.0.11)20Access
p-r1Router r110 and 20Trunk

The cells students fill in are left blank in this preview.

The lesson goes on

15 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.