Explore our new Cybersecurity Terms Glossary, explained by our experts.
Cybersecurity Terms Glossary
VLANs separate traffic logically on shared switches. They hold up well when configured deliberately and fail through defaults: trunking left on, native VLAN untouched, VLAN 1 in use.

What Is VLAN Security?
A VLAN divides one physical switch infrastructure into several logical networks. Frames are tagged with a VLAN identifier under IEEE 802.1Q, switches keep the tagged traffic separate, and devices in different VLANs cannot reach each other without passing through a router or firewall. It is the most widely deployed form of network segmentation, and the debate over whether it is a real security boundary usually reduces to whether it was configured properly.
Switch spoofing exploits Dynamic Trunking Protocol. On Cisco switches the historical default for an access port was dynamic auto or dynamic desirable, meaning the port will negotiate a trunk if the device on the other end asks. An attacker plugs in, sends DTP frames, the port becomes a trunk, and they now receive traffic for every VLAN carried on it. The tool Yersinia automates this in a single command.
Double tagging abuses the native VLAN. The attacker sends a frame with two 802.1Q tags: the outer one matching the native VLAN of the trunk, the inner one naming the target VLAN. The first switch strips the outer tag — because native VLAN traffic is sent untagged on a trunk — and forwards the frame, which the second switch then reads as belonging to the inner VLAN. The attack is one-way, with no return path, which makes it useful for injection rather than for interactive access. It only works when the attacker’s access VLAN is the same as the trunk’s native VLAN, which is exactly what the defaults produce.
switchport mode access and switchport nonegotiate. Do not rely on a port being access mode by accident.switchport trunk allowed vlan so each trunk carries only the VLANs that genuinely need to cross it. Trunks that carry every VLAN by default are the reason a single hop is so valuable to an attacker.VLAN configuration alone does not make a segment trustworthy. Three layer-two protections should accompany it, and they work together.
DHCP snooping blocks rogue address servers and builds the binding table that the other two depend on. Dynamic ARP Inspection validates ARP messages against that table and stops ARP spoofing within a VLAN. IP Source Guard prevents a host spoofing a source address at all. Add port security to limit the number of MAC addresses per port, BPDU guard to stop a rogue switch participating in spanning tree, and storm control to contain broadcast floods.
Private VLANs are worth knowing about for environments where hosts in the same subnet should not talk to each other — guest wireless, hosting environments, and some DMZ designs. Isolated ports communicate only with the promiscuous uplink, which gives host isolation without consuming a VLAN and a subnet per tenant.
For most purposes, yes, provided the configuration above is in place and the switch estate is managed consistently. The honest caveats are worth stating. Separation depends on correct configuration everywhere in the path, and one misconfigured port in a branch office undoes the design. Everything still shares the same physical switches and control plane, so a compromise of the switch management plane compromises all of it. And a VLAN provides no protection between hosts inside it, which is where ARP attacks and lateral movement occur.
For the highest-sensitivity environments, physical separation or an air gap remains the stronger answer. For everything else, properly configured VLANs with 802.1X at the edge and firewall policy between segments are a reasonable and auditable control — and they are explicitly accepted for PCI DSS scope reduction when supported by evidence from segmentation testing.
That evidence is the part most organisations lack. Our Infrastructure Security Testing Services include segmentation testing that demonstrates whether the separation holds in practice rather than on the diagram.
Through configuration weaknesses rather than protocol flaws. Switch spoofing works where Dynamic Trunking Protocol is left enabled on access ports, and double tagging works where the trunk’s native VLAN is also an access VLAN. Both are closed by disabling DTP explicitly and moving the native VLAN to an unused, empty VLAN on every trunk.
It is the default VLAN for every unconfigured port, the default native VLAN on trunks, and carries switch control protocols. A device plugged into a forgotten port lands in it automatically, and it is the VLAN an attacker assumes they will reach. Move all user, server, and management traffic to explicitly numbered VLANs and leave VLAN 1 empty.
Yes, when properly configured and evidenced. PCI DSS accepts logical segmentation to reduce scope but requires it to be verified, which means segmentation testing by a qualified party at least annually for service providers. The requirement is for demonstrated separation, so configuration documentation alone is not sufficient evidence.
A mechanism that isolates hosts within the same VLAN and subnet. Isolated ports can reach only the promiscuous uplink, not each other, while community ports can reach their own group and the uplink. It is useful for guest wireless, multi-tenant hosting, and DMZ designs where hosts share a subnet but have no reason to communicate.
You May Be Interested In These
We use a few cookies that are needed to make this website work, and they are always on. We would also like to set analytics cookies, to see which pages are useful; functional cookies, so that our live chat works; and advertising cookies, to measure our campaigns. We will not set any of those until you say yes, and you can change your mind at any time from the Cookie Settings link in the footer.
Choose the cookies you are happy for us to use. Strictly necessary cookies are always on; everything else is off until you turn it on.
These cookies keep the website working: they hold your security checks, your form submissions and the choice you make here. The site cannot run without them, so they are always on.
These let our live chat open and remember your conversation, and let the newsletter sign-up work. Switch them off and the chat window will not appear.
These tell us which pages are read and how people find us, so that we can improve the site. The reports are about groups of visitors, never about you personally.
These let us measure our advertising and show you our adverts on other websites, such as LinkedIn, Google and Meta. Switch them off and you will still see adverts, but they will be less relevant.