Networking

CCNA Domain 2 Practice Test: Switching and Network Access

A trunk that carries VLAN 10 while spanning tree blocks VLAN 1 on the same port is a typical Domain 2 question. Switching and Network Access is a quarter of the CCNA 200-301 v2.0 exam, and this free CCNA Domain 2 practice test covers it with 129 questions on trunks, EtherChannel, SVIs, edge ports, CDP and LLDP, Rapid PVST+ and reading show output when something breaks.

Original content from computingforgeeks.com - post 169319

More than half of the answers you’ll read here came off a switch rather than out of a book: we ran 67 of the 129 on IOSvL2 switches, Cisco IOS routers and Linux hosts in our GNS3 lab, so the logs and tables are what IOS really prints, trimmed only where the full output would hide the point. The counts and output on this page were checked in November 2026 against the v2.0 topics, which replace v1.1 on 3 February 2027.

Take the Domain 2 practice test

The launcher below gives you 10 random questions from the Domain 2 bank, with the answer and the reasoning after each pick. Retake it as often as you like, because the draw changes every time and no account is needed.

Free practice

CCNA practice: Domain 2: Switching and Network Access

10 questions drawn fresh from 129 in the bank, with the answer and explanation after each one.

Start 10 questions

For a longer sitting, the free CCNA practice test page runs the full Domain 2 set, up to 90 questions at once, and the timed 100-question mock across all five domains. Both are free with an email. Switching questions punish slow reading more than missing knowledge, so if your score drops on the long set, practice reading show output faster rather than rereading theory.

See how the Domain 2 bank splits

Infrastructure links and edge ports make up more than half the bank, which matches where Cisco put most of the new wording in this domain. Each row below is one v2.0 topic:

TopicQuestionsHow the answers were checked
Switch-to-switch and switch-to-router links: L2/L3 ports, 802.1Q trunks, LACP, SVIs3828 on the lab, 10 from documentation
Edge ports for desktops, printers, IoT, APs, phones and virtual hosts (VLAN, PoE, LACP)347 on the lab, 27 from documentation
Rapid PVST+: root bridge, port roles and states, PortFast, root guard, loop guard, BPDU guard268 on the lab, 18 from documentation
Layer 2 and Layer 3 troubleshooting with show, logs, ping, traceroute and captures1917 on the lab, 2 from documentation
Checking network documentation against CDP and LLDP127 on the lab, 5 from documentation

The troubleshooting row is nearly all lab output, and it is the one to take seriously even though it is one of the smaller rows. The same skills (extended ping, traceroute, reading a MAC table) answer questions in every other row. Edge ports lean on Cisco documentation because PoE budgets, phone voice VLANs and AP power classes need real hardware that GNS3 does not have, and we would rather quote Cisco than invent output. Spanning tree is a mix. The elections and port states ran on our lab switches, and the timer and guard behaviour is checked against Cisco’s configuration guides.

Answer five Domain 2 questions

All five were run on the lab. Try each one before reading the explanation under it.

Spanning tree blocks VLAN 1 and VLAN 999 on a working trunk

SW1 and SW2 share an 802.1Q trunk on Gi0/1. After a change made on SW1 only, SW1 reports this:

*Nov 17 08:40:59.829: %SPANTREE-2-BLOCK_PVID_PEER: Blocking GigabitEthernet0/1 on VLAN0001. Inconsistent peer vlan.
*Nov 17 08:40:59.835: %SPANTREE-2-BLOCK_PVID_LOCAL: Blocking GigabitEthernet0/1 on VLAN0999. Inconsistent local vlan.
*Nov 17 08:41:01.375: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet0/1 (999), with SW2 GigabitEthernet0/1 (1).

SW1# show spanning-tree inconsistentports

Name                 Interface                Inconsistency
-------------------- ------------------------ ------------------
VLAN0001             GigabitEthernet0/1       Port VLAN ID Mismatch
VLAN0999             GigabitEthernet0/1       Port VLAN ID Mismatch

Set the native VLAN on SW2 to match, with switchport trunk native vlan 999 on SW2 Gi0/1. SW1’s native VLAN is now 999 while SW2’s is still 1, so each switch’s untagged PVST+ BPDU lands in the wrong VLAN and SW1 blocks the port in both. In our lab that one command logged UNBLOCK_CONSIST_PORT for both VLANs and emptied the inconsistent ports list. The trunk stayed up the whole time and a host in VLAN 10 kept answering pings, which is why this fault hides so well. Bouncing the port changes nothing while SW2 keeps sending untagged VLAN 1 BPDUs, and a bridge priority change only moves the root.

When does a port err-disabled by BPDU guard come back?

Gi0/1 on SW1 was err-disabled by BPDU guard. The offending switch has since been unplugged, and nobody has touched the port:

SW1# show errdisable recovery | include bpduguard|interval
bpduguard                    Disabled
Timer interval: 300 seconds

It doesn’t come back until you act. The 300-second timer only applies to causes whose recovery is turned on, and the bpduguard line says Disabled, which is the default. You bring the port back with shutdown and no shutdown, or you configure errdisable recovery cause bpduguard so the switch retries on the timer. The wrong answer that catches people is “as soon as BPDUs stop”. That describes root guard, which blocks the port inside spanning tree and releases it once the superior BPDUs stop. Loop guard also recovers on its own, but when BPDUs start arriving again, and neither one err-disables the port.

Port security takes a hypervisor offline

srv1, a KVM host, connects to SW1 Gi0/3, and its VM bridges onto the same uplink through br0. Before port security, SW1 had learned two addresses on the port. After switchport port-security was added to the access port with nothing else, the VM dropped, then the host went too:

Vlan    Mac Address       Type        Ports
----    -----------       --------    -----
   1    0cb3.582c.0000    DYNAMIC     Gi0/3
   1    5254.0000.0010    DYNAMIC     Gi0/3

%PM-4-ERR_DISABLE: psecure-violation error detected on Gi0/3, putting Gi0/3 in err-disable state
%PORT_SECURITY-2-PSECURE_VIOLATION: Security violation occurred, caused by MAC address 5254.0000.0010 on port GigabitEthernet0/3.

Raise the limit with switchport port-security maximum 3, then shut and reopen Gi0/3. Every bridged VM has its own MAC address, so the switch sees the host and its VMs as separate sources. Port security allows one address by default, and the VM’s frame was the second one. The default violation mode is shutdown, so the whole port went err-disabled with the host on it. Restrict mode would keep the port up but keep dropping the VM’s frames, and sticky learning saves addresses without raising the limit. This is exactly the virtualized-host case the v2.0 edge-port topic now names.

Does the cabling sheet match what CDP sees?

The cabling sheet says SW2 has one uplink to SW1, on Gi0/1, and that R2 connects to SW2 Gi0/3. SW2 shows:

SW2# show cdp neighbors | begin Device ID
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
SW1              Gig 0/2           127             R S I            Gig 0/2
SW1              Gig 0/1           133             R S I            Gig 0/1
R2               Gig 0/0           158              R B             Gig 0/0

The sheet is wrong twice: SW2 has two links to SW1 (Gi0/1 to Gi0/1 and Gi0/2 to Gi0/2), and R2 is on SW2 Gi0/0, not Gi0/3. Each row is one physical link. Local Intrfce is SW2’s own port and Port ID is the neighbor’s, so two SW1 rows mean two cables rather than a duplicate. That is the whole skill behind the v2.0 wording on CDP and LLDP: you read the neighbor table and correct the documentation from it.

A plain ping works and a sourced ping fails

R1 routes LAN 10.10.10.0/24 on Gi0/0 and reaches R2 over 10.0.12.0/30 on Gi0/1. Hosts on the LAN cannot reach R2, yet R1 can:

R1# ping 10.0.12.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 7/9/12 ms
R1# ping 10.0.12.2 source GigabitEthernet0/0
Packet sent with a source address of 10.10.10.1
.....
Success rate is 0 percent (0/5)
R2# show ip route 10.10.10.100
% Subnet not in table

R2 has no route back to 10.10.10.0/24. A plain ping from R1 uses the exit interface’s address, 10.0.12.1, which R2 knows as a connected subnet, so the replies come home. The extended ping leaves by the same route but carries 10.10.10.1 as its source. R2 has nowhere to send that reply, which is exactly what the LAN hosts experience. Adding ip route 10.10.10.0 255.255.255.0 10.0.12.1 on R2 fixed the sourced ping in our lab. R1 picks the exit by destination, not by source, so both pings left through Gi0/1.

Study the Domain 2 topics

Each Domain 2 topic has a lab guide with real switch output, and each guide has its own short quiz. These are the ones to open when a run exposes a gap:

If you are coming from the v1.1 Network Access domain, drop wireless controller architectures, AP modes, WLAN component connections, the WLAN GUI and BPDU filter from your plan. TACACS+ and RADIUS management access moved to Domain 4, and edge-port profiles and the documentation checks are new here. The free CCNA labs have the trunk, EtherChannel and spanning tree builds with tested solution configs.

Six show commands behind most switching answers

Most of the switching questions in this bank come down to one of six commands. Know what each one proves and you can work many of them out without memorizing the scenario:

CommandWhat it answers
show interfaces trunkWhich ports trunk, the native VLAN, and which VLANs are allowed and forwarding
show etherchannel summaryWhether the bundle is up (SU or RU) and which members joined it (P) or failed (s, I, D)
show spanning-tree vlan 10The root bridge, this switch’s priority, and each port’s role and state
show cdp neighborsWhich neighbor sits on which local port, to check against the diagram
show port-security interface Gi0/3The maximum, the violation mode, the last source MAC seen, the violation count and the port status
show mac address-tableWhich port a host was learned on, and in which VLAN

Add show errdisable recovery and show spanning-tree inconsistentports when a port is up but carrying nothing. Those two explain most of the questions where the link is fine and the traffic is not. When this domain scores well, the Domain 3 practice test on IP routing is next, and the CCNA 200-301 study guide has the full v2.0 order.

Keep reading

Free CCNA Practice Test: 600+ Questions for 200-301 v2.0 Networking Free CCNA Practice Test: 600+ Questions for 200-301 v2.0 Install Samba on Debian 13 / 12 and Create a File Share Debian Install Samba on Debian 13 / 12 and Create a File Share Configure Samba File Sharing on Linux Mint 22 Networking Configure Samba File Sharing on Linux Mint 22 Agentic AI in Network Operations: Tested on Cisco IOS Networking Agentic AI in Network Operations: Tested on Cisco IOS Cisco Switch Port Configuration for Phones, APs and Servers Networking Cisco Switch Port Configuration for Phones, APs and Servers Configure DNS on Cisco Routers Networking Configure DNS on Cisco Routers

Leave a Comment

Press ESC to close