SecLern
Blog · Video lessons · 3 min

VLANs: how one switch holds separate networks (Networking Day 13)

A guest phone and a finance laptop share one switch.

By The SecLern Team · Nov 18, 2026

Key points

  • A flat switch puts every port in one network, so every broadcast reaches every port.
  • A VLAN is a number on a port: finance VLAN 10 (Gi1/0/3, Gi1/0/4), guests VLAN 20 (Gi1/0/30, Gi1/0/31).
  • A broadcast from port 30 only reaches the other ports marked 20, and `show vlan brief` prints that table.
  • A trunk is one cable between switches carrying many VLANs, each frame tagged with its VLAN ID (802.1Q, 4 bytes).
  • A router is the only door between VLANs, and it forwards by default.
  • An ACL that says deny is what actually blocks the guest VLAN.
  • Separation is not security: once you route, the VLANs reach each other unless a rule says no.
  • Mental model: VLAN = a number on a port, trunk = a tag on the frame, router = the door, ACL = the lock.

Transcript

0:00The question

A guest phone and a finance laptop share one switch. They still can't reach each other. How does one switch keep them apart?

0:10Flat network

Here is one forty-eight-port switch. Finance laptops and guest phones all connect to it. Every port starts in one network, and every message reaches every port. That is a flat network. A broadcast is a message for everyone. A guest phone sends one to find the printer, and it reaches the finance laptop too.

0:34VLAN numbers

The fix is a number, not a cable. A VLAN is a separate network inside the switch. Each port gets a VLAN number, like a floor number: finance VLAN ten, guests VLAN twenty. Now port thirty is marked VLAN twenty. The next broadcast reaches only the other ports marked twenty, so it never leaves that group.

0:58Trunk tag

Add a second switch, and the link between them becomes a trunk, one cable carrying many VLANs. The sending switch adds a four-byte tag, a small label that holds the VLAN number. The receiving switch reads the tag, removes it, and sends the message only to its own VLAN twenty ports.

1:20The doorway

So how does a finance laptop reach a file server in another VLAN? It can't, until you build a door. A router is that door. It joins networks with one foot in each VLAN, and it forwards the request. That door is not a guard. It forwards by default, and only a rule that says deny stops it. Add that deny rule, and the guest request stops at the door.

1:51The catches

Here is the catch. Once routing exists, a guest phone can reach a finance laptop unless a rule says no. And an unrestricted trunk carries every VLAN to whatever you plug in, so it merges networks you split. A VLAN is separation, not security. That is why guest Wi-Fi gets its own VLAN, with a rule blocking finance.

2:16The picture

So here is the mental model. The flat network lets everyone hear everyone. VLAN numbers stop broadcasts at the boundary. The trunk tag carries many VLANs over one cable. The doorway forwards by default. The rule can deny a guest. The catch: separation is not security. Two laptops share one switch and still cannot reach each other, because their ports sit in different VLANs.

2:44Wrap-up

The cables never changed. Only the VLAN numbers did. Save this for tomorrow's revision.

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