SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
CCNA · Domain 2

Switching and Network Access practice questions

Switching and Network Access is worth 25% of the CCNA exam — the heaviest of the 5 domains. Switch-to-switch and switch-to-router links, edge ports, CDP/LLDP, Layer 2/Layer 3 troubleshooting with show commands, and Rapid PVST+. Official weighting 25%. 6 fully worked examples are further down this page, answers included.

Exam weight
25%
the heaviest of the 5 domains
Questions
240
across 4 topics
Free, no account
5/day
a free account allows 10 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 5 domains, in Learn mode.

Review what you missed

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample Switching and Network Access questions, fully explained

Questions from the CCNA bank mapped to domain 2, with the answer key and the reasoning behind every option. None of them repeat the examples on the main CCNA practice page.

Question 1Switching and Network Access

Security policy says DTP must be disabled on every inter-switch link. SW1 Gi1/0/1 is configured with switchport mode trunk and switchport nonegotiate. SW2 Gi1/0/1 still has its default configuration, and the link is not passing VLAN 30:SW2# show interfaces gi1/0/1 switchport | include Mode Administrative Mode: dynamic auto Operational Mode: static accessWhich change on SW2 makes the link trunk while meeting the policy?

Choose one.

  • a
    Configure switchport mode dynamic desirable on the port

    Desirable keeps DTP running, which breaks the policy, and SW1 ignores DTP because of nonegotiate, so SW2 would still not trunk.

  • b
    Configure switchport nonegotiate while keeping dynamic auto

    IOS rejects nonegotiate on a dynamic port; it is accepted only in static trunk or access mode. Even if accepted, the port would never become a trunk.

  • c
    Remove switchport nonegotiate from SW1 and keep SW2 as is

    SW1 would then send DTP and SW2 would trunk, but DTP would run on the link, which breaks the security policy.

  • d
    Configure switchport mode trunk and switchport nonegotiate Correct

    A static trunk on both ends does not depend on DTP, and nonegotiate stops SW2 sending DTP frames, which meets the policy.

The concept

switchport nonegotiate and static trunks

Why that’s the answer

switchport nonegotiate stops a port sending DTP frames. SW1 is a static trunk that never asks, and SW2 is dynamic auto, which only answers, so SW2 stays an access port. The only way to trunk without DTP is a static trunk on SW2 as well, with nonegotiate to keep DTP off. Removing nonegotiate from SW1 would work technically but violates the policy; dynamic desirable both keeps DTP and gets no answer from SW1.

How to reason it out
  1. Identify that SW1 sends no DTP frames because of nonegotiate.
  2. Recall that dynamic auto never initiates, so SW2 stays access.
  3. Apply the policy: DTP must be off on both ends.
  4. Configure SW2 as a static trunk with nonegotiate.

Exam tip: With DTP disabled, both ends of a trunk must be configured as static trunks.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

Question 2Switching and Network Access

An inter-switch trunk currently has this configuration and carries production traffic for VLANs 10 and 20:interface GigabitEthernet1/0/48 switchport mode trunk switchport trunk allowed vlan 10,20A new VLAN 30 must also cross the trunk without interrupting VLANs 10 and 20. Which interface command should the engineer enter?

Choose one.

  • a
    switchport trunk allowed vlan add 30 Correct

    The add keyword appends VLAN 30 to the existing list, leaving VLANs 10 and 20 untouched.

  • b
    switchport trunk allowed vlan 30

    Without add, the command replaces the whole list with VLAN 30 alone, cutting VLANs 10 and 20 off the trunk.

  • c
    switchport trunk native vlan 30

    This makes VLAN 30 the untagged native VLAN, but the allowed list still contains only 10 and 20, so VLAN 30 still does not cross.

  • d
    switchport trunk allowed vlan except 30

    The except keyword allows every VLAN apart from 30, so VLAN 30 is still blocked while every other VLAN is opened.

The concept

Editing a trunk's allowed VLAN list

Why that’s the answer

switchport trunk allowed vlan with a bare list overwrites the existing list. The add, remove and except keywords modify it instead. Adding VLAN 30 with add keeps VLANs 10 and 20 forwarding; the bare form would drop them, and the native and access VLAN commands do not change which VLANs a trunk allows.

How to reason it out
  1. Note the trunk already restricts its allowed list to 10 and 20.
  2. Recall that the bare allowed vlan command replaces the list.
  3. Use the add keyword to append VLAN 30.

Exam tip: Use allowed vlan add to extend a trunk list; the bare form replaces it.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

Question 3Switching and Network Access

Hosts in VLAN 30 on SW2 cannot reach VLAN 30 hosts on SW1, while VLANs 10 and 20 work across the same trunk. SW1 shows:SW1# show interfaces trunk Port Mode Encapsulation Status Native vlan Gi1/0/1 on 802.1q trunking 1 Port Vlans allowed on trunk Gi1/0/1 1-4094 Port Vlans allowed and active in management domain Gi1/0/1 1,10,20What is the most likely cause on SW1?

Choose one.

  • a
    VLAN 30 has not been created in SW1's VLAN database Correct

    A VLAN appears under 'allowed and active' only if it exists locally. VLAN 30 is allowed (1-4094) but not active, so it is missing from SW1's VLAN database.

  • b
    VLAN 30 has been removed from SW1's trunk allowed VLAN list

    The allowed list is 1-4094, so VLAN 30 is still allowed on the trunk.

  • c
    VLAN 30 is set as the native VLAN on SW1's trunk interface

    The output shows the native VLAN is 1, and a native VLAN would still be listed as active.

  • d
    VLAN 30 is blocked on SW1's trunk by the default port mode

    The port mode is on (static trunk) and the status is trunking; the mode does not block individual VLANs.

The concept

Allowed versus allowed-and-active VLANs on a trunk

Why that’s the answer

show interfaces trunk lists VLANs in stages. 'Allowed on trunk' is the configured list; 'allowed and active' keeps only VLANs that exist and are active in the local VLAN database; the last stage removes VLANs that spanning tree blocks or pruning removes. VLAN 30 passes the first stage but not the second, which points to VLAN 30 not being created on SW1. Creating it with the vlan 30 command fixes the problem.

How to reason it out
  1. Check whether VLAN 30 is in the allowed list: it is (1-4094).
  2. Check the allowed-and-active list: VLAN 30 is missing.
  3. Recall that only locally existing VLANs are active.
  4. Create VLAN 30 on SW1.

Exam tip: Allowed but not active on a trunk means the VLAN does not exist on that switch.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

Question 4Switching and Network Access

The site standard uses VLAN 99 as the native VLAN on every trunk. After SW2 was replaced, SW1 logs:%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on GigabitEthernet1/0/1 (99), with SW2 GigabitEthernet1/0/1 (1).Which change resolves the message and follows the site standard?

Choose one.

  • a
    On SW1 Gi1/0/1: switchport trunk native vlan 1

    This would also clear the mismatch, but it moves SW1 away from the VLAN 99 site standard.

  • b
    On SW2 Gi1/0/1: switchport trunk allowed vlan add 99

    Allowing VLAN 99 does not change which VLAN SW2 treats as untagged, so the native VLANs still differ.

  • c
    On SW2: vlan 99 then name NATIVE in the VLAN database

    Creating and naming VLAN 99 does not make it the native VLAN on the trunk interface.

  • d
    On SW2 Gi1/0/1: switchport trunk native vlan 99 Correct

    SW2 still uses the default native VLAN 1; setting it to 99 matches SW1 and the site standard.

The concept

Native VLAN agreement on an 802.1Q trunk

Why that’s the answer

The CDP message lists the local interface and native VLAN first (SW1, 99) and the neighbour second (SW2, 1). Frames in the native VLAN cross untagged, so each end places untagged frames into its own native VLAN; when they differ, traffic leaks between VLANs. Both ends must use the same native VLAN. Changing SW1 to 1 would also fix the mismatch but breaks the stated standard, so SW2 is the end to change.

How to reason it out
  1. Read the log: SW1 uses 99, SW2 uses 1.
  2. Apply the constraint: the standard is VLAN 99.
  3. Change the native VLAN on the end that is non-standard, SW2.

Exam tip: Both ends of a trunk must use the same native VLAN; CDP reports when they don't.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

Question 5Switching and Network Access

R1 routes for VLANs 10 and 20 over a trunk to SW1. VLAN 20 hosts reach their gateway, but VLAN 10 hosts cannot ping 192.168.10.1.R1: interface GigabitEthernet0/0/1.10 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 interface GigabitEthernet0/0/1.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 SW1: interface GigabitEthernet1/0/1 switchport mode trunk switchport trunk native vlan 10What is the most likely cause?

Choose one.

  • a
    R1 needs a subinterface with encapsulation dot1Q 1 native for the trunk

    SW1's native VLAN is 10, not 1, and R1 needs no native subinterface for tagged VLANs: VLAN 20 already works without one.

  • b
    R1 needs ip routing enabled before subinterfaces can forward

    IP routing is enabled by default on a router, and VLAN 20 already works through the same mechanism.

  • c
    SW1 does not allow VLAN 10 on the trunk to R1 by default

    No allowed list is configured, so all VLANs are allowed by default, including VLAN 10.

  • d
    SW1 sends VLAN 10 frames untagged, but R1 expects them tagged Correct

    VLAN 10 is SW1's native VLAN, so its frames leave untagged; subinterface .10 accepts only frames tagged with VLAN 10.

The concept

Native VLAN handling on a router-on-a-stick trunk

Why that’s the answer

On an 802.1Q trunk the native VLAN is sent untagged. SW1's native VLAN is 10, so VLAN 10 traffic reaches R1 without a tag. R1's subinterface .10 is configured with encapsulation dot1Q 10 (no native keyword), so it only matches frames tagged with VLAN 10; the untagged frames are not delivered to it. VLAN 20 is tagged and works. Fix it by changing SW1's native VLAN to an unused VLAN, or by adding the native keyword on R1 (encapsulation dot1Q 10 native).

How to reason it out
  1. Compare which VLAN works (20) with which fails (10).
  2. Notice VLAN 10 is the switch's native VLAN, sent untagged.
  3. Notice the router subinterface expects tagged VLAN 10 frames.
  4. Align them: change the native VLAN or use the native keyword on R1.

Exam tip: A router subinterface without the native keyword only accepts tagged frames.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

Question 6Switching and Network Access

An engineer is connecting a Catalyst switch to a WAN router with a point-to-point /30 link. On the switch, the command ip address 10.0.0.1 255.255.255.252 is rejected under interface GigabitEthernet1/0/48. Which interface command must be entered first?

Choose one.

  • a
    switchport mode access

    This keeps the port at Layer 2; an access port still cannot hold an IP address.

  • b
    ip routing

    ip routing is a global command that enables routing between interfaces; it does not let a Layer 2 port take an address.

  • c
    switchport nonegotiate

    This only disables DTP on a Layer 2 port; the port remains a switch port with no IP address.

  • d
    no switchport Correct

    no switchport turns the Layer 2 switch port into a Layer 3 routed port, which can then take an IP address.

The concept

Layer 2 switch ports versus Layer 3 routed ports

Why that’s the answer

Catalyst switch ports default to Layer 2 (switchport). Only Layer 3 interfaces, such as routed ports and SVIs, accept an IP address. no switchport converts the physical interface into a routed port, after which the ip address command works. ip routing is still needed to route between interfaces, but it is a global command and does not change the port type.

How to reason it out
  1. Recognise that the port is still a Layer 2 switch port.
  2. Recall that only Layer 3 interfaces take IP addresses.
  3. Convert the port with no switchport, then add the address.

Exam tip: A switch port takes an IP address only after no switchport makes it a routed port.

CCNA Trunks, LACP EtherChannel, Routed Ports and SVIs — the lesson that teaches this.

What CCNA domain 2 tests, topic by topic

The official exam guide breaks Switching and Network Access into 4 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published CCNA practice questions per topic in Switching and Network Access
TopicWhat it coversQuestions
Infrastructure connectivity: trunks, EtherChannel and SVIsOfficial CCNA v2.0 exam topic 2.1: Configure network infrastructure connectivity (switch-to-switch and switch-to-router) — Layer 2/Layer 3 physical interfaces; Layer 2 802.1Q trunk interfaces; Layer 2/Layer 3 LACP port-channel/EtherChannel; Switch virtual interface (SVI).60
Edge ports: VLANs, PoE and port channelsOfficial CCNA v2.0 exam topic 2.2: Configure Layer 2 switch port attributes for edge-host connectivity (VLAN, PoE, port channel, and LACP) — desktop, printer, and IOT appliances; wireless access points (standalone and controller based); Voice over IP phone; virtualized hosts; network appliances.60
CDP, LLDP and troubleshooting with show commandsOfficial CCNA v2.0 exam topics 2.3 and 2.4: Validate the accuracy of network documentation using CDP and LLDP. Troubleshoot basic Layer 2/Layer 3 connectivity and device operations using show commands (including show logs), ping, extended ping, trace route, and packet capture output.60
Rapid PVST+ spanning treeOfficial CCNA v2.0 exam topic 2.5: Configure operations of the Rapid Per VLAN Spanning Tree Protocol (Rapid PVST+) — root port, root bridge (primary/secondary), and other port names; port states and roles; PortFast; root guard, loop guard, and BPDU guard.60
Total240

Revise Switching and Network Access before you drill it

Other CCNA domains

Switching and Network Access: your questions

Switching and Network Access is domain 2 of the CCNA exam guide and carries 25% of the scored content — the heaviest of the 5 domains. Cisco has not yet published the exam's question count, so there is no per-domain number of questions to give.

Source

The domain weight and topic list on this page come from the official CCNA exam guide.