VLAN Configuration & Trunking
Intermediate · 30 minutes · 100 points
In this hands-on lab, you will simulate VLAN configuration and trunking concepts using Linux network namespaces and virtual Ethernet (veth) pairs — the same underlying technology used in real network virtualization. You will create isolated network segments (simulating VLANs), configure VLAN-tagged interfaces using the 802.1Q standard, set up a trunk link that carries multiple VLANs, and verify inter-VLAN isolation and connectivity. This lab gives you practical experience with the Linux networking stack as a foundation for understanding how VLANs work in enterprise and cloud environments.
What you’ll learn
- Understand how Linux simulates VLAN segmentation using network namespaces and veth pairs
- Configure 802.1Q VLAN-tagged sub-interfaces on a trunk link
- Assign IP addresses to VLAN interfaces and verify per-VLAN isolation
- Demonstrate trunk link behavior by routing traffic across multiple VLANs
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: vlan, trunking, 802.1q, networking, linux, namespaces, veth, bridge, routing
Create a free account to start this lab.