Courseiva

CCNA 200-301 study guide · Part 2: Switching and Network Access

Chapter 10: VLANs and Trunking

Build segmented Layer 2 networks: how switches learn MAC addresses, how VLANs and access ports work, 802.1Q trunking and the native VLAN, plus configuration labs and the VLAN faults seen most often.

Part 2 begins here, with the technology that divides a physical switch into separate broadcast domains. You start with how a switch builds and uses its MAC address table, then learn what a VLAN is, why networks use them and how a VLAN ID travels with a frame.

The chapter compares access and trunk switchport modes and explains 802.1Q tagging, including the native VLAN and why leaving it at its default is a security concern. Two labs have you create and assign VLANs and then configure an 802.1Q trunk, verifying each step with show vlan brief and show interfaces trunk.

The troubleshooting scenarios are the part exam writers love: a VLAN mismatch between switches, a native VLAN mismatch on a trunk and an access port in the wrong VLAN. An exam-trap lesson collects the related mistakes.

Make sure you can predict what a given configuration does before you verify it. Chapters on inter-VLAN routing, STP and Layer 2 security all assume that fluency.

11 lessons (5 concept, 2 lab, 3 troubleshooting, 1 exam traps) · about 4.6 hours · Johnson Ajibi

What you will learn

  • Read the MAC address table
  • Create VLANs and assign access ports
  • Configure and verify 802.1Q trunks
  • Explain native VLAN behaviour
  • Fix VLAN and trunk mismatches

Sections

Read in order: concepts first, then how to configure and verify, then troubleshooting and exam traps.

  1. 10.1
    MAC Address Table

    The previous chapter troubleshot IP-layer faults; we now drop to Layer 2, starting with the data structure every switch relies on.

    Concept25m
  2. 10.2
    VLANs Explained

    The MAC address table is kept per VLAN, so this section explains what a VLAN is.

    Concept25m
  3. 10.3
    Switchport Access and Trunk Modes

    A VLAN only becomes useful once switch ports are assigned to it, so this section covers the two port modes that do that.

    Concept25m
  4. 10.4
    802.1Q Trunking

    The previous section set ports to access or trunk mode; this one looks inside the 802.1Q tag that makes a trunk work.

    Concept25m
  5. 10.5
    Native VLAN Security

    The previous section showed that the native VLAN carries untagged frames on a trunk; this section explains why that behavior is a security concern and how to harden it.

    Concept25m
  6. 10.6
    Lab: Create and Assign VLANs

    With the native VLAN and trunk security covered, it is time to practice: this lab creates VLANs and assigns access ports.

    Lab25m
  7. 10.7
    Lab: Configure 802.1Q Trunk

    The previous lab created VLANs on one switch; this lab extends them across two switches with an 802.1Q trunk.

    Lab25m
  8. 10.8
    Troubleshoot: VLAN Mismatch Between Switches

    The previous lab built a working trunk; this page covers how to find the VLAN, native VLAN, allowed-list and mode mismatches that break one.

    Troubleshooting25m
  9. 10.9
    Troubleshoot: Native VLAN Mismatch on Trunk

    The previous page covered every kind of trunk mismatch; this page zooms in on the most common one, the native VLAN.

    Troubleshooting25m
  10. 10.10
    Troubleshoot: Access Port in Wrong VLAN

    The previous two pages dealt with trunk faults; this one moves to the access port, where a single wrong VLAN number isolates a host.

    Troubleshooting25m
  11. 10.11
    Exam Trap: VLAN and Trunk Errors

    VLANs and trunk links are the backbone of any switched network, but they are also the source of some of the most common and costly configuration errors on the CCNA 200-301 exam —…

    Exam traps25m

Practice this in the sandbox

Type real IOS commands in your browser on a cabled-up network. Each lab checks what the network actually does.

Free practice: open the sandbox

Key terms

Practice

Check what you learned in this chapter with free CCNA 200-301 practice questions and full explanations.

CCNA 200-301 practice questions

↑ Up to Part 2: Switching and Network Access · Book contents