Creating a VLAN on Cisco Switch

Aug 6, 2024

VLAN Creation on Cisco Switch

Introduction

  • Overview of creating a VLAN on a Cisco switch using Packet Tracer.
  • Focus on Cisco 2960 switch.

Step 1: Check Existing VLANs

  • Use the command show VLAN to view existing VLANs.
    • Default VLANs include:
      • VLAN 1 (default VLAN)
      • VLAN 1002 to 1005 (cannot be deleted)
  • Note: Ports can be removed from the default VLAN for security reasons, but the VLAN itself cannot be deleted.

Step 2: Enable Configuration Mode

  • Type enable to enable configuration mode.
  • Enter configuration terminal mode with configure terminal.

Step 3: Create a New VLAN

  • Create VLAN 2 using the command:
    • vlan 2
  • Set the name of the newly created VLAN:
    • name butter
  • Confirmation that VLAN 2 has been created and named.

Step 4: Verify Created VLAN

  • Use show VLAN again to see the new VLAN name 'butter' under VLAN 2.

Step 5: Assign Ports to VLAN

  • Enter configuration mode again with configure terminal.
  • Go to interface configuration for the desired port:
    • Example: interface fa0/1
  • Change the port mode to access:
    • switchport mode access
  • Assign the port to VLAN 2:
    • switchport access vlan 2

Step 6: Verify Port Assignment

  • Use show VLAN to verify that VLAN 2 (butter) is active and tied to port fa0/1.

Summary

  • Successfully created VLAN 2, named it 'butter', and assigned it to port fa0/1 on a Cisco 2960 switch.