Skip to content

Basic Cisco Switch Configuration

A ground-up walkthrough of initial Cisco switch configuration โ€” hostname, VLANs, trunk ports, and saving the configuration.

Basic Cisco Switch Configuration
Table of Contents
  1. Before You Begin
  2. Step 1 โ€” Set hostname and basic security
  3. Step 2 โ€” Create VLANs
  4. Step 3 โ€” Assign access and trunk ports
  5. Step 4 โ€” Set a management IP and save
  6. Useful Commands
  7. Watch the Video
  8. Frequently Asked Questions
  9. What’s the difference between running-config and startup-config?
  10. Conclusion
  11. Related Articles

A factory-default Cisco switch needs a small set of baseline commands before it’s ready for production use โ€” hostname, management access, VLANs, and trunk ports. This walks through that baseline configuration on IOS.

Before You Begin

Info

Connect via console cable for this initial setup rather than relying on network access โ€” you don’t yet have a guaranteed working management IP.

Step 1 โ€” Set hostname and basic security

Step 2 โ€” Create VLANs

Step 3 โ€” Assign access and trunk ports

Step 4 โ€” Set a management IP and save

Assign a management VLAN IP

Configure an IP address on the management VLAN interface (e.g. VLAN 1 or a dedicated management VLAN) so you can reach the switch remotely afterward.

Useful Commands

Cisco IOS
enablenconfigure terminalnhostname SW-Office-01nenable secret YourStrongPassword
Cisco IOS
vlan 10n name Officenexitninterface gigabitEthernet0/1n switchport mode accessn switchport access vlan 10
Cisco IOS
copy running-config startup-config
Important

Watch the Video

Prefer watching? This tutorial covers the same steps.

Basic Cisco Switch Configuration โ€” Video Tutorial [DEMO VIDEO โ€” replace with your own]

A ground-up walkthrough of initial Cisco switch configuration โ€” hostname, VLANs, trunk ports, and saving the configuration.

Watch on YouTube →

Frequently Asked Questions

What’s the difference between running-config and startup-config?

running-config is the switch’s active configuration in memory; startup-config is what loads on boot. Changes only persist across reboots after you copy running-config to startup-config.

Conclusion

This baseline โ€” hostname, secured access, VLANs, access/trunk ports, and a saved configuration โ€” is the starting point for nearly every Cisco switch deployment, ready to be layered with more advanced features as needed.

Cisco Switch Port Not Working โ€” Troubleshooting Steps Related Article Cisco Switch Port Not Working โ€” Troubleshooting Steps → MikroTik RouterOS VLAN Configuration โ€” Complete Example Related Article MikroTik RouterOS VLAN Configuration โ€” Complete Example → How to Troubleshoot VLAN Connectivity Problems Related Article How to Troubleshoot VLAN Connectivity Problems →

Was this guide helpful?

Share it with someone who needs it, or subscribe for more practical IT tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get practical IT tutorials in your inbox

No spam โ€” just useful troubleshooting guides and tips.