TUTORIAL - CARA KONFIGURASI VLAN PADA CISCO PACKET TRACER (UNTUK PEMULA)

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

Table of Contents

Introduction

In this tutorial, we will learn how to configure VLANs (Virtual Local Area Networks) using Cisco Packet Tracer. This guide is designed for beginners and aims to provide a clear and concise method for setting up VLANs in a simulated environment. Understanding VLANs is essential for network segmentation and improving network performance.

Step 1: Open Cisco Packet Tracer and Create a New Project

  • Launch Cisco Packet Tracer on your computer.
  • Start a new project by clicking on "File" and then "New."
  • Save your project with an appropriate name to avoid losing your progress.

Step 2: Add Networking Devices

  • From the device toolbar, drag and drop the following devices onto the workspace:
    • Switch (Choose a 2960 switch for this tutorial)
    • PCs (Add at least two to illustrate VLAN configuration)
  • Connect the PCs to the switch using straight-through cables. To do this:
    • Click on the cable icon.
    • Select "Copper Straight-Through."
    • Connect one end to the PC's FastEthernet port and the other end to one of the switch's ports.

Step 3: Access the Switch CLI

  • Click on the switch device to open its configuration window.
  • Navigate to the "CLI" tab to access the command-line interface.

Step 4: Enter Global Configuration Mode

  • At the CLI prompt, type the following commands:
    enable
    configure terminal
    
  • This will allow you to make changes to the switch configuration.

Step 5: Create VLANs

  • To create a VLAN, use the following command:
    vlan [VLAN_ID]
    
  • Example:
    vlan 10
    name Marketing
    
  • Repeat the process for additional VLANs, changing the VLAN ID and name as needed.

Step 6: Assign Ports to VLANs

  • Determine which switch ports will belong to each VLAN. For example, to assign port Fa0/1 to VLAN 10, use the following commands:
    interface FastEthernet0/1
    switchport mode access
    switchport access vlan 10
    
  • Repeat this for other ports and VLANs as necessary.

Step 7: Verify VLAN Configuration

  • To check your VLAN settings, use the command:
    show vlan brief
    
  • This command will display a list of configured VLANs and their associated ports.

Step 8: Test Connectivity

  • Go back to the PC configuration and set IP addresses for the PCs in the same VLAN to ensure they can communicate.
  • Use the command prompt on each PC to ping the other PC within the same VLAN to verify connectivity.

Conclusion

Congratulations! You have successfully configured VLANs on a Cisco switch using Packet Tracer. By following these steps, you can segment your network, improving both performance and security. To further your learning, consider exploring advanced VLAN configurations, such as trunking and inter-VLAN routing, in future projects. Happy networking!