CCNA · Domain 2 of 6 · 20% of the exam

CCNA Domain 2: Network Access

40 free practice questions for Network Access in the Cisco Certified Network Associate (CCNA 200-301) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Network Access practice questions

  1. Question 1. What is the main purpose of a VLAN?

    1. Increase the speed of each switch port
    2. Divide one switch into separate broadcast domains
    3. Encrypt traffic between switches
    4. Assign IP addresses to hosts
    Show answer

    Answer: B. Divide one switch into separate broadcast domains

    Each VLAN is its own broadcast domain, so traffic between VLANs must be routed.

  2. Question 2. Which command assigns switch port Gi0/5 to VLAN 20 as an access port?

    1. switchport mode trunk, then switchport trunk allowed vlan 20
    2. vlan 20, then ip address dhcp on the interface
    3. switchport mode access, then switchport access vlan 20
    4. encapsulation dot1q 20 on the interface
    Show answer

    Answer: C. switchport mode access, then switchport access vlan 20

    Access ports carry a single data VLAN, set with switchport access vlan.

  3. Question 3. Which IEEE standard adds a VLAN tag to Ethernet frames on trunk links?

    1. 802.1X
    2. 802.1Q
    3. 802.3ad
    4. 802.11ac
    Show answer

    Answer: B. 802.1Q

    802.1Q inserts a 4-byte tag with the VLAN ID. 802.1X is port authentication and 802.3ad is link aggregation.

  4. Question 4. On an 802.1Q trunk, how are frames in the native VLAN sent?

    1. Tagged with VLAN 4095
    2. Encrypted with a shared key
    3. Dropped by default
    4. Untagged
    Show answer

    Answer: D. Untagged

    Native VLAN frames cross the trunk without a tag. Mismatched native VLANs on each end cause problems.

  5. Question 5. Two switches connected by a trunk have different native VLANs configured. What is the likely result?

    1. The trunk forms normally with no side effects
    2. Both switches automatically change to VLAN 1
    3. The link switches to half duplex
    4. Traffic leaks between VLANs and CDP reports a native VLAN mismatch
    Show answer

    Answer: D. Traffic leaks between VLANs and CDP reports a native VLAN mismatch

    Untagged frames land in different VLANs on each side. Native VLANs must match on both ends.

  6. Question 6. Why is it recommended to disable DTP on trunk ports and set them statically?

    1. To increase the number of VLANs supported
    2. To prevent unauthorized devices from negotiating a trunk
    3. To enable PoE on those ports
    4. To speed up spanning tree convergence
    Show answer

    Answer: B. To prevent unauthorized devices from negotiating a trunk

    DTP could let an attacker negotiate a trunk and reach all VLANs. switchport nonegotiate disables it.

  7. Question 7. An IP phone and a PC share one switch port. How are their traffic types usually separated?

    1. The port is configured as a routed port
    2. The phone and PC share one VLAN with different subnets
    3. The port runs two separate spanning tree instances
    4. The port has a data VLAN for the PC and a voice VLAN for the phone
    Show answer

    Answer: D. The port has a data VLAN for the PC and a voice VLAN for the phone

    A voice VLAN (switchport voice vlan) lets the phone tag voice traffic while PC traffic uses the access VLAN.

  8. Question 8. Which method lets hosts in different VLANs communicate using one router interface connected to a trunk?

    1. A second spanning tree instance
    2. Router on a stick with subinterfaces
    3. A voice VLAN on each access port
    4. Port security with sticky MAC addresses
    Show answer

    Answer: B. Router on a stick with subinterfaces

    Each subinterface uses encapsulation dot1q for one VLAN and acts as that VLAN's gateway.

  9. Question 9. On a multilayer switch, which interface acts as the default gateway for hosts in VLAN 10?

    1. A loopback interface with an address in VLAN 10
    2. A switched virtual interface (interface vlan 10)
    3. The trunk port that carries the native VLAN
    4. The management port on the switch's front panel
    Show answer

    Answer: B. A switched virtual interface (interface vlan 10)

    SVIs provide layer 3 routing between VLANs directly on the switch.

  10. Question 10. Which protocol is Cisco proprietary and discovers directly connected Cisco devices?

    1. CDP
    2. LLDP
    3. LACP
    4. NTP
    Show answer

    Answer: A. CDP

    Cisco Discovery Protocol shares device information with neighbors. LLDP is the vendor-neutral standard.

  11. Question 11. Which command enables LLDP globally on a Cisco switch?

    1. lldp run
    2. cdp run
    3. lldp enable all
    4. feature lldp-global
    Show answer

    Answer: A. lldp run

    LLDP is disabled by default on many Cisco IOS devices and is enabled with lldp run.

  12. Question 12. Why might an administrator disable CDP on interfaces facing the internet?

    1. It reveals device details such as model, software version, and IP address
    2. It uses too much bandwidth on high-speed links
    3. It prevents routing protocols from forming neighbors
    4. It blocks DHCP traffic to hosts
    Show answer

    Answer: A. It reveals device details such as model, software version, and IP address

    CDP messages can give attackers useful reconnaissance information.

  13. Question 13. What does EtherChannel provide?

    1. A backup link that stays down until the primary fails
    2. Several physical links bundled into one logical link
    3. Encryption on all switch-to-switch links
    4. Separate VLANs on each physical link
    Show answer

    Answer: B. Several physical links bundled into one logical link

    EtherChannel combines links for more bandwidth and redundancy, and spanning tree treats the bundle as one link.

  14. Question 14. Which EtherChannel negotiation protocol is an IEEE standard?

    1. PAgP
    2. DTP
    3. LACP
    4. VTP
    Show answer

    Answer: C. LACP

    LACP (802.3ad/802.1AX) is open. PAgP is Cisco proprietary.

  15. Question 15. Two switches use LACP. One side is set to passive. What must the other side be set to for the bundle to form?

    1. Passive
    2. Desirable
    3. Auto
    4. Active
    Show answer

    Answer: D. Active

    At least one side must actively send LACP packets. Two passive sides never negotiate.

  16. Question 16. Which combination of PAgP modes forms an EtherChannel?

    1. Auto and auto
    2. Active and passive
    3. Desirable and auto
    4. On and desirable
    Show answer

    Answer: C. Desirable and auto

    Desirable initiates negotiation. Auto only responds, so auto–auto doesn't form a bundle.

  17. Question 17. An EtherChannel will not form. Which mismatch is a common cause?

    1. Different interface descriptions on member ports
    2. Different speed, duplex, or VLAN settings on member ports
    3. Different CDP timers on each switch
    4. Different hostnames on each switch
    Show answer

    Answer: B. Different speed, duplex, or VLAN settings on member ports

    Member ports must share speed, duplex, and switchport settings such as mode and allowed VLANs.

  18. Question 18. What is the purpose of Spanning Tree Protocol?

    1. Assign IP addresses to switches
    2. Load-balance traffic across routers
    3. Prevent layer 2 loops while allowing redundant links
    4. Encrypt traffic between switches
    Show answer

    Answer: C. Prevent layer 2 loops while allowing redundant links

    STP blocks redundant paths so broadcast storms and MAC table instability don't occur.

  19. Question 19. How is the STP root bridge elected?

    1. The highest bridge ID (priority, then MAC address)
    2. The switch with the most active ports
    3. The switch that finished booting first
    4. The lowest bridge ID (priority, then MAC address)
    Show answer

    Answer: D. The lowest bridge ID (priority, then MAC address)

    The lowest priority wins. If priorities tie, the lowest MAC address wins.

  20. Question 20. Which command makes a switch the root bridge for VLAN 10 by adjusting its priority?

    1. spanning-tree portfast vlan 10
    2. spanning-tree bpduguard enable
    3. spanning-tree mode mst
    4. spanning-tree vlan 10 root primary
    Show answer

    Answer: D. spanning-tree vlan 10 root primary

    root primary sets a priority low enough to win the root election. You can also set the priority value directly.

  21. Question 21. On a non-root switch, which port becomes the root port?

    1. The port with the highest interface number
    2. The port connected to the most hosts
    3. The port with the lowest total path cost to the root bridge
    4. The port with the fastest link to any switch
    Show answer

    Answer: C. The port with the lowest total path cost to the root bridge

    Each non-root switch picks one root port with the best (lowest cost) path to the root.

  22. Question 22. In Rapid PVST+, which port role provides a backup path to the root bridge and becomes the root port if the current one fails?

    1. Alternate
    2. Designated
    3. Disabled
    4. Edge
    Show answer

    Answer: A. Alternate

    Alternate ports discard traffic but can quickly take over as root port. Backup ports protect a designated port on a shared segment.

  23. Question 23. Which Rapid STP port state forwards frames and learns MAC addresses?

    1. Discarding
    2. Learning only
    3. Listening
    4. Forwarding
    Show answer

    Answer: D. Forwarding

    RSTP uses discarding, learning, and forwarding. Listening and blocking are legacy 802.1D states.

  24. Question 24. What does PortFast do on an access port connected to a PC?

    1. Moves the port straight to the forwarding state
    2. Doubles the port's negotiated link speed
    3. Removes the port from all VLANs
    4. Blocks all BPDUs on the port permanently
    Show answer

    Answer: A. Moves the port straight to the forwarding state

    PortFast avoids the delay that could make DHCP time out. It should be used only on edge ports.

  25. Question 25. What happens when a port with BPDU Guard enabled receives a BPDU?

    1. The port becomes the root port
    2. The port ignores the BPDU and keeps forwarding
    3. The port is placed in err-disabled state
    4. The switch reboots
    Show answer

    Answer: C. The port is placed in err-disabled state

    BPDU Guard protects edge ports from unauthorized switches that could cause loops or root changes.

  26. Question 26. Which wireless architecture uses access points that are configured individually, with no controller?

    1. Lightweight with a WLC
    2. Autonomous
    3. Cloud-managed
    4. Split-MAC
    Show answer

    Answer: B. Autonomous

    Autonomous APs hold their own configuration, which works for small sites but is hard to manage at scale.

  27. Question 27. Which protocol do lightweight access points use to communicate with a wireless LAN controller?

    1. CAPWAP
    2. LWAPP over SNMP
    3. LACP
    4. RADIUS
    Show answer

    Answer: A. CAPWAP

    CAPWAP builds control and data tunnels between the AP and the WLC.

  28. Question 28. In a split-MAC architecture, which task does the lightweight AP handle itself?

    1. Client authentication with the RADIUS server
    2. RF management across the whole network
    3. Real-time functions such as beacons and frame acknowledgments
    4. Configuration of all other access points
    Show answer

    Answer: C. Real-time functions such as beacons and frame acknowledgments

    Time-sensitive functions stay on the AP. The WLC handles management functions such as authentication and RF control.

  29. Question 29. Which cloud-managed architecture is typified by access points managed from a web dashboard over the internet?

    1. Autonomous APs configured through a console cable
    2. A WLC in each branch office
    3. Cloud-based AP management, such as Meraki
    4. FlexConnect with a local controller
    Show answer

    Answer: C. Cloud-based AP management, such as Meraki

    Cloud-managed APs receive configuration and send telemetry to a cloud dashboard, so no on-site controller is needed.

  30. Question 30. How is a lightweight AP in local mode usually connected to the switch?

    1. As an 802.1Q trunk carrying every client VLAN
    2. As a routed port with OSPF enabled
    3. As an EtherChannel member with the WLC
    4. As an access port in the AP management VLAN
    Show answer

    Answer: D. As an access port in the AP management VLAN

    In local mode, client traffic is tunneled to the WLC, so the AP only needs an access port.

  31. Question 31. How is a WLC usually connected to the switched network?

    1. With a single access port in VLAN 1
    2. With a console cable to each access point
    3. With an 802.1Q trunk, often as a LAG, carrying several VLANs
    4. With a serial link to the internet router
    Show answer

    Answer: C. With an 802.1Q trunk, often as a LAG, carrying several VLANs

    The WLC bridges wireless clients into many VLANs, so it needs a trunk. A LAG adds bandwidth and redundancy.

  32. Question 32. Which management access method to a WLC should be disabled because it sends credentials in clear text?

    1. SSH and HTTPS
    2. The console port
    3. Telnet and HTTP
    4. TACACS+ authentication
    Show answer

    Answer: C. Telnet and HTTP

    Telnet and HTTP are unencrypted. Use SSH and HTTPS for management.

  33. Question 33. Which protocol is preferred for centralized device administration with per-command authorization and separate AAA functions?

    1. RADIUS
    2. SNMPv1
    3. TFTP
    4. TACACS+
    Show answer

    Answer: D. TACACS+

    TACACS+ encrypts the whole payload and separates authentication, authorization, and accounting. RADIUS is common for network access.

  34. Question 34. When creating a WLAN on a WLC, which setting links the SSID to a client VLAN?

    1. The QoS profile of the WLAN
    2. The interface or interface group assigned to the WLAN
    3. The radio channel of the access points
    4. The AP's management IP address
    Show answer

    Answer: B. The interface or interface group assigned to the WLAN

    Mapping the WLAN to a dynamic interface places clients in that VLAN and subnet.

  35. Question 35. Which WLAN security setting on a WLC gives every user their own credentials checked against RADIUS?

    1. WPA2 with a pre-shared key
    2. Open authentication with MAC filtering only
    3. Web passthrough with no authentication
    4. WPA2/WPA3 with 802.1X authentication
    Show answer

    Answer: D. WPA2/WPA3 with 802.1X authentication

    802.1X (enterprise mode) authenticates each user individually against an AAA server.

  36. Question 36. Which WLC QoS profile should be used for a WLAN that carries voice calls?

    1. Bronze
    2. Silver
    3. Platinum
    4. Gold
    Show answer

    Answer: C. Platinum

    On Cisco WLCs, Platinum is for voice, Gold for video, Silver for best effort, and Bronze for background traffic.

  37. Question 37. What is the default VLAN on a Cisco switch that all ports belong to initially?

    1. VLAN 1
    2. VLAN 0
    3. VLAN 100
    4. VLAN 1002
    Show answer

    Answer: A. VLAN 1

    All ports start in VLAN 1. Best practice is to move user ports and the native VLAN away from it.

  38. Question 38. Which command shows which VLANs are allowed and active on each trunk?

    1. show vlan brief only
    2. show interfaces trunk
    3. show ip interface brief
    4. show mac address-table count
    Show answer

    Answer: B. show interfaces trunk

    show interfaces trunk lists trunk ports, their native VLAN, and allowed and forwarding VLANs.

  39. Question 39. Which range of VLAN IDs is the normal range on Cisco switches?

    1. 1–1005
    2. 1–4094
    3. 1006–4094
    4. 0–255
    Show answer

    Answer: A. 1–1005

    Normal-range VLANs are 1–1005. Extended-range VLANs are 1006–4094.

  40. Question 40. What is a broadcast storm most commonly caused by?

    1. A duplex mismatch on a router interface
    2. A layer 2 loop with no spanning tree blocking
    3. An incorrect default gateway on a host
    4. An expired DHCP lease
    Show answer

    Answer: B. A layer 2 loop with no spanning tree blocking

    Without STP, broadcasts loop endlessly between switches and consume all bandwidth.

Cisco and CCNA are trademarks or registered trademarks of Cisco Systems, Inc. These questions are original study material, not questions from the real exam.