Free CCNA | VLANs (Part 3) | Day 18 Lab | CCNA 200-301 Complete Course

3 min read 3 months ago
Published on Nov 25, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

In this tutorial, we will cover the configuration of access and trunk ports on a Cisco switch, as well as inter-VLAN routing using Switch Virtual Interfaces (SVIs) on a Layer 3 switch. This is part of the CCNA 200-301 course and will give you hands-on experience essential for your networking skills.

Step 1: Configure Access Ports

Access ports are used to connect end devices to a switch. Here’s how to set them up:

  1. Enter Configuration Mode

    • Access the switch console and enter privileged EXEC mode:
      enable
      configure terminal
      
  2. Select the Interface

    • Choose the interface you want to configure. For example, if you are configuring interface FastEthernet 0/1:
      interface FastEthernet0/1
      
  3. Set the Port to Access Mode

    • Configure the interface as an access port:
      switchport mode access
      
  4. Assign the VLAN

    • Assign the desired VLAN to the access port. For example, to assign VLAN 10:
      switchport access vlan 10
      
  5. Repeat for Additional Ports

    • If you have more ports to configure, repeat steps 2 to 4 for each interface.

Step 2: Configure Trunk Ports

Trunk ports are used to carry traffic for multiple VLANs. Follow these steps for configuration:

  1. Enter Configuration Mode

    • Access the switch console and enter privileged EXEC mode:
      enable
      configure terminal
      
  2. Select the Interface for Trunking

    • Choose the interface you want to configure as a trunk. For example, if you are configuring interface FastEthernet 0/24:
      interface FastEthernet0/24
      
  3. Set the Port to Trunk Mode

    • Configure the interface as a trunk port:
      switchport mode trunk
      
  4. Allow VLANs on the Trunk

    • Specify which VLANs are allowed on the trunk. For example, to allow VLANs 10 and 20:
      switchport trunk allowed vlan 10,20
      
  5. Verify Configuration

    • Use the following command to verify trunk configuration:
      show interfaces trunk
      

Step 3: Configure Inter-VLAN Routing

Inter-VLAN routing allows communication between different VLANs using SVIs.

  1. Enter Configuration Mode

    • Access the switch console and enter privileged EXEC mode:
      enable
      configure terminal
      
  2. Create SVIs for Each VLAN

    • For each VLAN, create a SVI and assign an IP address. For example, for VLAN 10:

      interface vlan 10
      ip address 192.168.10.1 255.255.255.0
      no shutdown
      
    • Repeat for VLAN 20:

      interface vlan 20
      ip address 192.168.20.1 255.255.255.0
      no shutdown
      
  3. Enable Routing on the Switch

    • If your switch supports it, enable IP routing:
      ip routing
      
  4. Verify SVI Configuration

    • Check the configuration with:
      show ip interface brief
      

Conclusion

In this tutorial, we covered the essential steps to configure access and trunk ports on a Cisco switch, as well as how to set up inter-VLAN routing using SVIs. These skills are crucial for managing VLANs in a network environment. For further practice, consider utilizing Packet Tracer labs or additional resources to solidify your understanding.