Network Engineer Interview Question

What is a VLAN, and how does a trunk carry several VLANs?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

A VLAN splits one physical switched network into separate layer two broadcast domains, so devices in different VLANs cannot talk without going through a router or layer three switch. Access ports belong to one VLAN. Trunk ports carry many VLANs between switches by adding an 802.1Q tag with the VLAN ID to each frame. The native VLAN is sent untagged, and it must match on both ends of the trunk.

Why interviewers ask this

VLANs are fundamental to every switched network, and misconfigured trunks cause a large share of layer two problems. The interviewer wants to know that you understand segmentation, tagging and how traffic moves between VLANs. Mentioning the native VLAN, allowed VLAN lists and the security reasons for keeping user traffic off VLAN one shows that you have built and maintained real switch configurations.

How to structure your answer

  • Define a VLAN and why you segment.
  • Explain access ports versus trunk ports.
  • Explain 802.1Q tagging and the native VLAN.
  • Explain how traffic moves between VLANs.

Example answer

Spoken example, first person

A VLAN is a separate broadcast domain on shared switch hardware. I might put staff, voice phones, printers, guests and servers in different VLANs, which limits broadcast traffic and, more importantly, lets me control traffic between groups with a firewall or access list. An access port belongs to one VLAN, and the device plugged into it does not know VLANs exist. Between switches, or to a router or hypervisor, I use trunk ports, which carry many VLANs over one link. The switch adds an 802.1Q tag to each frame containing the VLAN ID, and the switch at the other end reads it and puts the frame into the right VLAN. One VLAN, the native VLAN, travels untagged, and if the two ends disagree on it, traffic leaks between VLANs. Good practice is to prune trunks to only the VLANs needed, keep user traffic off VLAN one and set the native VLAN to an unused one. Traffic between VLANs has to be routed, usually by a virtual interface on a layer three switch acting as each VLAN's gateway.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • What is VLAN hopping, and how do you prevent it?
  • How would you carry voice and data VLANs to the same desk port?
  • What happens if a VLAN is missing from a trunk's allowed list?

Related network engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot