VLANs lab practice
Create and name VLANs, assign access ports, and read the VLAN table to prove each port is in the broadcast domain you intended.
4 labs · 14 lessons · 5 commands · 6 projects
A VLAN splits one physical switch into separate broadcast domains. Hosts in different VLANs cannot reach each other without a router, which is what makes VLANs the basic tool for separating departments, guests and devices.
The CCNA skill is doing it cleanly: create and name the VLAN, put each access port in it, and prove the result with show vlan brief rather than assuming the configuration worked.
Hands-on labs
- VLAN Creation & Naming (free)
- Four Departmental VLANs (free)
- Assigning Access Ports to a VLAN (free)
- Correcting a Wrong Access VLAN (Pro)
Lessons, in order
- VLAN Basics (2. Network Access, 9 min)
- Reading the VLAN Table (2. Network Access, 13 min)
- Test same-VLAN and cross-VLAN reachability (2. Network Access, 12 min)
- Treat a VLAN as a broadcast boundary (2. Network Access, 11 min)
- Create and name a VLAN (2. Network Access, 12 min)
- Build several VLANs with consistent names (2. Network Access, 14 min)
- Repair missing or misnamed VLANs from show vlan brief (2. Network Access, 13 min)
- Assessment: VLAN Creation (2. Network Access, 11 min)
- Assign an access port to a VLAN (2. Network Access, 13 min)
- Apply access settings to a range of ports (2. Network Access, 13 min)
- Prove an access port works with a ping (2. Network Access, 13 min)
- Repair the port in the wrong access VLAN (2. Network Access, 13 min)
- Assessment: Access Port Configuration (2. Network Access, 14 min)
- Assessment: VLANs (2. Network Access, 17 min)
Commands
- show vlan brief — Lists every VLAN on the switch with its name, status and the access ports assigned to it.
- show vlan — Shows the full VLAN table: names, ports, and each VLAN’s type, MTU and other parameters.
- show vtp status — Shows the switch’s VTP version, domain name, operating mode and configuration revision number.
- show interfaces status — Shows each switch port’s link state, VLAN, duplex, speed and media type in one table.
- show interfaces switchport — Shows one port’s administrative and operational switchport mode, access VLAN, native VLAN and trunking settings.
Related projects
- Departmental VLAN Network — Pemberton Logistics shares one wiring closet between Sales, Engineering and HR, and HR has asked why payroll broadcasts reach every desk. Split the two floor switches into three named VLANs, put each department's ports in its own, and carry all three between the switches.
- Reception and Back-Office VLANs on a Single Access Switch — A small practice has one access switch, PRACTICE-SW, and needs its public reception machines kept away from the back-office systems holding client records. REC-PC1 and REC-PC2 sit on jacks 1 and 2, BO-PC1 and BO-PC2 on jacks 3 and 4. Build VLAN 10 (RECEPTION, 192.168.10.0/24) and VLAN 20 (BACKOFFICE, 192.168.20.0/24) on that single switch and prove they are separate. Pick the platform: the canvas opens on a Cisco Catalyst; for Junos, Arista EOS or ArubaOS-CX, delete PRACTICE-SW, place that vendor's switch and cable the four PCs to its jacks 1-4 (ge-0/0/0-3, Ethernet1-4 or 1/1/1-4). The checks follow the PCs, so every platform is graded the same way. The VLAN model is the same on all four; only the syntax changes.
- Library Public and Staff VLAN Separation — A public library offers open terminals to visitors and runs its lending system on the same cabling. Split them into VLAN 50 (Public) and VLAN 51 (Staff).
- Converting a Flat Dental Practice Network to VLANs — A dental practice runs everything on one flat network, including the X-ray imaging machines. Split imaging, reception and back office into three VLANs on the existing switch.
- Cafe Guest and Till Network Separation — A cafe chain offers customer connectivity and runs its tills on the same switch. Put the tills on their own VLAN so customer devices can never see them.
- Home Office with an Isolated Guest Network — A two-person consultancy works from a converted garage. Clients visiting for meetings use the Wi-Fi, which today is the same flat network as the NAS holding every contract and the admin PC that runs the accounts. The router (OFFICE-GW) has its broadband handoff configured and nothing else; SW-1 is factory-fresh. Split the office into a CORP VLAN and a GUEST VLAN on one router-on-a-stick, hand out addresses by DHCP, get both onto the internet through the one public address, and stop guests reaching anything internal.