Cisco IOS Switch Configuration Guide¶
This guide walks through the essential steps to configure a Cisco switch running IOS. It includes initial setup, VLANs, port settings, IP addressing, and basic security.
🛠️ 1. Initial Setup¶
Connect via Console¶
- Use a console cable and terminal emulator (e.g., PuTTY or Tera Term)
- Default settings:
- Baud rate: 9600
- Data bits: 8
- Parity: None
- Stop bits: 1
- Flow control: None
Enter Privileged Mode¶
Enter Global Configuration Mode¶
🌐 2. Set Hostname and Domain¶
🔐 3. Secure Access¶
Set Console Password¶
Set Enable Password¶
Configure SSH Access¶
username admin secret strongpassword
ip ssh version 2
line vty 0 4
login local
transport input ssh
exit
📦 4. Save Configuration¶
🧭 5. Configure VLANs¶
Create VLANs¶
Assign VLANs to Ports¶
interface range fa0/1 - 10
switchport mode access
switchport access vlan 10
exit
interface range fa0/11 - 20
switchport mode access
switchport access vlan 20
exit
🔀 6. Configure Trunk Ports¶
🌐 7. Assign IP to VLAN Interface (SVI)¶
📡 8. Show Commands¶
Show Port Status¶
Show VLANs¶
Show IP Interfaces¶
Show Running Configuration¶
🔁 9. Reboot or Reload¶
❌ 10. Shutdown Interfaces¶
⚠️ Cisco switches cannot be powered off via CLI. You must disconnect power physically.
✅ 11. Best Practices¶
- Use strong passwords and SSH for remote access
- Disable unused ports
- Save config regularly
- Document VLAN assignments and IPs