Free CCNA | VLANs (Part 1) | Day 16 Lab | CCNA 200-301 Complete Course
2 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
This tutorial will guide you through configuring access ports on a Cisco switch and assigning them to specific VLANs (Virtual Local Area Networks). Understanding VLAN configuration is essential for managing and segmenting network traffic effectively, a key skill for obtaining your CCNA certification.
Step 1: Access the Switch Configuration
- Open your terminal or console application to connect to the Cisco switch.
- Enter the privileged EXEC mode by typing:
enable - Access the global configuration mode by entering:
configure terminal
Step 2: Create VLANs
- To create a VLAN, use the following command:
Replacevlan [VLAN_ID][VLAN_ID]with the desired VLAN number (e.g., 10, 20). - Assign a name to the VLAN for easier identification:
Replacename [VLAN_NAME][VLAN_NAME]with a descriptive name (e.g., "Sales").
Step 3: Configure Access Ports
- Identify the interface you want to configure as an access port. Enter the following command:
Replaceinterface [INTERFACE_ID][INTERFACE_ID]with the actual interface (e.g.,FastEthernet0/1). - Change the port mode to access:
switchport mode access - Assign the interface to the VLAN you created:
Again, replaceswitchport access vlan [VLAN_ID][VLAN_ID]with the VLAN number you want to associate.
Step 4: Verify Configuration
- Exit the interface configuration mode:
exit - To check the VLAN configuration, use:
show vlan brief - Verify that the port configurations are correct by using:
This command will display the current configuration for all interfaces.show running-config
Conclusion
In this tutorial, you learned how to configure access ports on a Cisco switch and assign them to specific VLANs. Remember to save your configuration changes using:
write memory
or
copy running-config startup-config
As a next step, consider practicing these commands in a lab environment using Packet Tracer or similar simulation software to solidify your understanding and prepare for the CCNA exam.