Home > Blog > CompTIA CompTIA Security+ Certification Exam > Security+ PBQs: How to Configure Secure VLANs

Security+ PBQs: How to Configure Secure VLANs

Exam Tips Cert Sensei Team 2028-03-13 7 min read

To configure secure VLANs for the Security+ exam, you must segment network traffic to reduce the blast radius, implement 802.1Q tagging for trunking, and prevent VLAN hopping by disabling unused ports and changing the native VLAN. Proper management VLAN assignment ensures secure administrative access to network hardware.

#Security+ #SY0-701 #PBQ examples #VLAN security

Why do PBQs focus on VLAN segmentation?

Performance-Based Questions (PBQs) aren't just about clicking buttons; they test your ability to apply security logic to a live scenario. In the context of VLANs, the primary goal is reducing the 'blast radius.' If a workstation in your accounting department is compromised by ransomware, you don't want that threat pivoting instantly to your R&D servers. By segmenting traffic into distinct VLANs, you create internal boundaries that contain threats.

In a typical SY0-701 PBQ, you'll likely be presented with a network diagram and a list of assets. Your job is to assign these assets to the correct VLAN based on the principle of least privilege. For example, guests should never be on the same VLAN as your corporate database. If you see a scenario where all devices are on VLAN 1, that's your first red flag. Your goal is to isolate traffic so that a breach in one zone doesn't lead to a total network collapse.

How does 802.1Q tagging work in a PBQ scenario?

When you move from a single switch to a multi-switch environment, you encounter 802.1Q, the industry standard for VLAN tagging. In a PBQ, you will often need to configure 'trunk' ports. Unlike access ports, which only carry traffic for one VLAN, trunk ports are designed to carry traffic for multiple VLANs across a single physical link. They do this by adding a 'tag' to the Ethernet frame, telling the receiving switch exactly which VLAN the data belongs to.

If you're tasked with connecting two switches in a simulation, ensure the interconnecting ports are set to trunk mode. If you leave them as access ports, only one VLAN will be able to communicate across the link, and you'll fail the objective. We emphasize these technical nuances in our practice materials because the exam expects you to understand the flow of tagged traffic. Misconfiguring a trunk port is one of the most common ways students lose points on networking PBQs.

How can you prevent VLAN hopping attacks?

Attackers love 'hopping' from a low-security VLAN to a high-security one using techniques like switch spoofing or double tagging. To stop this, you need to harden the switch configuration. First, disable Dynamic Trunking Protocol (DTP) on all user-facing ports. DTP allows a port to automatically negotiate a trunk link, which is a goldmine for attackers trying to spoof a switch.

Second, explicitly set all end-user ports to 'access' mode. In a PBQ, look for ports left in 'auto' or 'desirable' mode—these are vulnerabilities you must fix. Finally, you must address the native VLAN. By default, most switches use VLAN 1 as the native VLAN for untagged traffic. To prevent double-tagging attacks, change the native VLAN to a dedicated ID that isn't used for any actual data traffic. This simple move effectively kills the most common VLAN hopping vectors.

What is the role of Native and Management VLANs?

The native VLAN handles all untagged traffic that arrives on a trunk port. As mentioned, leaving this as VLAN 1 is a rookie mistake. In a secure configuration, you should move the native VLAN to a 'dead' VLAN—one that has no assigned users or resources. This ensures that any untagged frames are dropped or isolated, preventing attackers from gaining a foothold in your production environment.

Then there is the Management VLAN. This is a dedicated VLAN used exclusively for administrative traffic, such as SSH, HTTPS, or SNMP access to your switches and routers. You should never mix user data with management traffic. If a PBQ asks you to secure a network, one of your first moves should be to isolate the switch's management interface into its own restricted VLAN. This ensures that even if a user VLAN is compromised, the attacker cannot easily attempt to brute-force the switch's administrative password.

How do you approach a VLAN PBQ under time pressure?

Don't dive into the simulation blindly. First, spend 60 seconds mapping out the requirements: who needs to talk to whom, and who must be isolated? Second, identify the trunk ports (switch-to-switch) and access ports (switch-to-device). Third, apply the hardening steps: disable unused ports, change the native VLAN, and set the management VLAN. This systematic approach prevents the 'clicking panic' that leads to simple mistakes.

Since PBQs can be significant time-sinks, practicing with high-quality simulations is non-negotiable. At Cert Sensei, we provide 1,000 expert-curated CompTIA Security+ (SY0-701) practice questions with detailed expert reasoning and domain-level analytics. By tracking your performance in the 'Network Security' domain, you can identify exactly where your VLAN knowledge is lacking and bridge those gaps before you sit for the actual exam.

❓ Frequently Asked Questions

Do I need to memorize specific Cisco CLI commands for the Security+ PBQs?

No. CompTIA is vendor-neutral. You won't be asked to type 'switchport mode trunk' from memory. Instead, you'll likely use a GUI, a drag-and-drop interface, or a multiple-choice configuration menu to apply the correct concepts.


What is the difference between an access port and a trunk port in a simulation?

An access port is used for end-devices (PCs, printers) and carries traffic for only one specific VLAN. A trunk port is used between network devices (switch-to-switch or switch-to-router) and carries traffic for multiple VLANs using 802.1Q tags.


Why is changing the native VLAN from VLAN 1 so important for security?

VLAN 1 is the default for almost every manufacturer. Attackers know this and use it to launch double-tagging attacks. Moving the native VLAN to an unused ID prevents untagged traffic from reaching sensitive areas of your network.

More from CompTIA CompTIA Security+ Certification Exam

🧠

Test Your Knowledge

Ready to practice CompTIA Security+ Certification Exam? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free