CCNA Switch Configuration Interview Questions and Answers
Switch configuration interviews ask how port roles, VLAN membership, trunks, loop prevention, management and security fit together. Explain how a frame is classified and forwarded, then identify the evidence that would verify the intended behaviour. This guide uses a fictional printer move to distinguish a configured VLAN from an active end-to-end path. Documented command names are answer cues, not executed examples.
Topic: Networking in IT Infrastructure · Interview preparation
Quick answer: Switch configuration interviews ask how port roles, VLAN membership, trunks, loop prevention, management and security fit together. Explain how a frame is classified and forwarded, then identify the evidence that would verify the intended behaviour. This guide uses a fictional printer move to distinguish a configured VLAN from an active end-to-end path. Documented command names are answer cues, not executed examples. Check the exact switch family and release before configuring a lab or approving a real change; capabilities and defaults differ across platforms.
Key takeaways
- A trunk carries VLAN traffic but does not itself route between VLANs.
- MAC learning uses source addresses within a VLAN context.
- An access port can have additional supported voice-VLAN behaviour.
- Port security, 802.1X and management access are different controls.
- Verify port, VLAN, trunk and spanning-tree evidence together.
Table of Contents
- How does a switch learn and forward traffic?
- What would you check after moving a printer?
- How do access ports and trunks differ?
- How are switch management and inter-VLAN routing related?
- Which loop and aggregation questions should you answer?
- What does port security actually control?
- How should you present verification in an interview?
- How would you interpret a changed printer’s security record?
- References
How does a switch learn and forward traffic?
1. What does a Layer 2 switch learn? It learns source MAC addresses with port and VLAN context, then uses destination information for forwarding. Cisco’s MAC-table guidance explains dynamic learning and ageing. A missing entry is not automatically a failed endpoint.
2. What happens to an unknown unicast? It is ordinarily flooded within the eligible forwarding ports of that VLAN, subject to filtering and feature behaviour. Do not say that a switch always sends every frame to only one destination port.
3. How does a VLAN help? It defines a logical broadcast domain. Cisco’s VLAN guide explains membership and platform constraints. VLAN separation needs routing and access policy decisions for inter-VLAN communication; it is not encryption or complete security by itself.
What would you check after moving a printer?
In this illustrative case, a printer moves from port A to port B. The old port belongs to VLAN 30; the new port belongs to VLAN 20. Both links show up, but the printer retains its VLAN-30 IP settings. A learner proposes restarting the uplink.
The first useful question is whether the new port has the intended role and VLAN. Rebooting an unrelated link would change the network without resolving the mismatch in the supplied records.
| Supplied record | Interpretation | Next review |
|---|---|---|
| Port A: access VLAN 30 | Old printer attachment | Confirm old assignment is no longer needed |
| Port B: access VLAN 20 | New attachment differs | Confirm intended printer VLAN |
| Printer: old subnet settings | Addressing matches old design | Review addressing after approved port decision |
4. Does link-up prove correct VLAN connectivity? No. Physical state and logical membership answer different questions. Compare port role, VLAN, address settings, learned MAC and required path before proposing a change.
How do access ports and trunks differ?
5. Does access mode always mean only one kind of traffic? The basic data-VLAN model assigns untagged endpoint traffic to an access VLAN. Supported voice-VLAN arrangements can add tagged voice traffic. State the platform and configuration instead of making an absolute claim.
6. What does trunk mode do? A trunk carries traffic for permitted VLANs between suitable devices. Cisco’s trunk guide describes allowed lists and native VLAN handling. A trunk can connect a router, hypervisor or controller as well as another switch.
7. Is a native VLAN always tagged? Ordinary 802.1Q trunk behaviour sends native-VLAN traffic untagged, while native tagging can be configured on supported platforms. Both ends must agree on the intended interpretation.
8. Does show vlan brief establish trunk forwarding? It helps inspect local VLANs and access-port membership. Request trunk status and allowed, active and forwarding VLAN evidence separately; one summary does not establish the complete path.
How are switch management and inter-VLAN routing related?
9. What is an SVI? A switched virtual interface supplies a Layer 3 interface associated with a VLAN on supported equipment. Cisco’s inter-VLAN routing guide distinguishes Layer 3 connectivity from simply creating Layer 2 VLANs.
10. Does assigning an SVI address enable every routing function? No. Check platform capabilities, routing configuration and operational SVI conditions. A Layer 2 management address and default gateway are different from a routed switching design.
11. Why might management work locally but not remotely? Review the management subnet, return route or gateway, permitted administrative sources and service configuration. Do not change routing before checking which device and VRF own the management path.
Which loop and aggregation questions should you answer?
12. What does Rapid PVST+ provide? It applies rapid spanning-tree behaviour per VLAN in the supported Cisco model. Cisco’s STP guide explains root and port-role selection. Redundant physical links are not proof that all links should forward independently.
13. Is every parallel link an EtherChannel? No. Cisco’s EtherChannel guidance describes compatible member settings and aggregation. LACP negotiation and member status must be checked. A single flow is not automatically distributed evenly over every member.
14. Does PortFast disable spanning tree? No. It supports edge forwarding behaviour and must fit the attached device and design. An ordinary switch uplink should not receive an edge setting merely to make its indicator turn green.
What does port security actually control?
15. Does a learned MAC identify an authorised person? No. Cisco’s port-security guide describes MAC restrictions, learning and violation behaviour. That is different from authenticating a user or device through an identity-based access system.
16. Are protect, restrict and shutdown equivalent? They have different drop, notification and disabling behaviour. Check the configured violation mode and recorded cause. Recovering an err-disabled port without resolving the underlying condition can repeat the fault.
For the printer case, an old sticky address or maximum-address condition may become relevant after the intended port membership is confirmed. Preserve the evidence and follow the authorised recovery process. Do not remove all security controls to make one device connect.
How should you present verification in an interview?
| Documented check | Evidence to interpret | Limit |
|---|---|---|
| Interface and switchport details | Link, mode and assigned VLAN | Not proof of application reachability |
| MAC address table | Learned source and port/VLAN | Not user authentication |
| Trunk and spanning tree | Eligible forwarding path | Not proof of correct host addressing |
| Port-security status | Configured limits and violations | Not the complete access policy |
Walk through the printer case in order: establish the intended attachment, compare the supplied port membership, review addressing, then inspect the path and any security restriction. Explain what would distinguish each hypothesis.
If asked for configuration syntax, identify the relevant command family and check the release-specific reference before using it. Be clear about whether you have observed the result on a real device, used a simulator or reviewed supplied records. A precise scope statement makes a technical answer more credible than claiming every setting was validated here.
How would you interpret a changed printer’s security record?
A link can remain up while frames are restricted
A second invented record changes the printer case: VLAN membership and host addressing now match the design, but the port permits one sticky MAC and still records the old printer’s address. The supplied violation mode is restrict, and its violation counter rises when the replacement sends traffic. The interface remains up.
17. Does up/up disprove a port-security problem? No. The selected mode can discard violating traffic without shutting the interface down. Compare the permitted source identity, observed source and violation evidence rather than searching only for an err-disabled state.
Preserve the restriction while correcting the approved identity
18. What should happen before changing the sticky entry? Confirm the authorised replacement, expected maximum and retained configuration with the owner. An approved update should remove the obsolete identity through the supported process, preserve the intended restriction and verify the replacement’s required service. Disabling port security globally would exceed the demonstrated need. This record is illustrative; no identity or switch setting was changed.
Related reading: VLAN interview questions; spanning-tree interview questions.
References
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0