SecLern
Blog · Video lessons · 2 min

One switch, two networks: how a VLAN keeps Sales out of payroll

One switch, two networks: how a VLAN keeps Sales out of payroll

By The SecLern Team · Nov 20, 2026

Transcript

One switch. Twenty-four ports. Sales plugs into the left half, Finance into the right. And right now, every Sales laptop can hear the payroll server. Here's why. Out of the box, every port on a Cisco switch sits in VLAN 1. One big network. So when Maya in Sales opens her laptop, it shouts a broadcast: who has the printer's address? The switch copies that shout to every port. Payroll hears it too. A VLAN, a virtual LAN, splits one switch into separate networks. Ports 1 to 12 go in VLAN 10, for Sales. Ports 13 to 24 go in VLAN 20, for Finance. Each one is now an access port: it belongs to exactly one VLAN. Maya shouts again. This time the switch copies it only to VLAN 10 ports. Finance hears nothing. Same box, same cables, two networks. Then Finance grows onto the second floor, with its own switch. You don't want one cable per VLAN between them. So you run one trunk: a single link that carries every VLAN. Frames crossing the trunk get a small tag clipped in. Just four bytes, right after the sender's address. Inside is the VLAN number, in 12 bits. That allows 4,094 VLANs. The far switch reads the tag, removes it, and hands the frame only to that VLAN's ports. Now the catch. Maya needs to print on the Finance printer. A basic switch can't move traffic between VLANs. That takes a router. And that's the good part: the router is where you write the rules. Printing, allowed. The payroll server, denied. So remember it like this. A VLAN is a separate network on a shared switch. Trunks carry the tag. Routers decide who crosses. Want to type these commands yourself? SecLern has hands-on labs on a simulated Cisco command line, right in your browser. Try it free at seclern.com, and follow for more.

The SecLern TeamSecLern builds practice questions, performance-based questions and browser-based hands-on labs for IT certifications.