Setting up a VLAN

Tags
Owner
Zach
Verification

10. Example Documentation: Configuring a VLAN on a Cisco Switch

This documentation provides step-by-step instructions for configuring a VLAN on a Cisco switch. Follow these steps carefully to ensure proper setup.

Prerequisites:

  • Access to the Cisco switch (either through console or SSH)
  • Administrative credentials for the switch
  • Basic knowledge of Cisco IOS commands

Steps to Configure a VLAN:

  1. Step 1: Access the switch Connect to the switch using either a console cable or SSH. Log in with your administrative credentials.
  2. Step 2: Enter privileged EXEC mode Type the following command and press Enter:
  3. enable

    Enter your privileged EXEC password when prompted.

  4. Step 3: Enter global configuration mode Type the following command and press Enter:
  5. configure terminal
  6. Step 4: Create a new VLAN Use the following command to create a new VLAN (replace X with your desired VLAN number):
  7. vlan X
  8. Step 5: Name the VLAN (optional) To assign a name to the VLAN, use:
  9. name VLAN_NAME

    Replace VLAN_NAME with your desired name.

  10. Step 6: Exit VLAN configuration mode Type:
  11. exit
  12. Step 7: Configure switch ports for the VLAN To assign a port to the VLAN, use:
  13. interface interface_type interface_number
    switchport mode access
    switchport access vlan X

    Replace interface_type and interface_number with the appropriate values (e.g., FastEthernet0/1).

  14. Step 8: Save the configuration Exit configuration mode and save your changes:
  15. end
    copy running-config startup-config
  16. Step 9: Verify VLAN configuration To check your VLAN configuration, use:
  17. show vlan brief

Troubleshooting:

  • If the VLAN doesn't appear in the "show vlan brief" output, ensure you've created it correctly in Step 4.
  • If ports aren't associating with the VLAN, double-check the interface configuration in Step 7.
  • Make sure you've saved the configuration (Step 8) to persist changes after a switch reboot.

By following these steps, you should be able to successfully configure a VLAN on your Cisco switch. Remember to adjust VLAN numbers and interface designations according to your network's specific requirements.