Skip to content
FALCON CORETECHNOLOGIES

// Lesson 16 of 49 · Switching and VLANs

Cisco IOS basics

Console access, IOS modes, help and shortcuts, basic device settings, and saving configuration.
2 min read#ios#cli

Every Cisco router and switch in this course is configured through the IOS command line. Fluency here makes every later lesson faster.

Getting in

  • Console port — a serial connection (RJ-45 or USB) for first-time setup and recovery. Terminal settings: 9600 baud, 8 data bits, no parity, 1 stop bit.
  • SSH — remote, encrypted access once the device has an IP address (configured in the IP services module).
  • Telnet — remote but unencrypted; avoid it.

Modes

Prompt Mode How to get there
Switch> User EXEC — limited viewing Login
Switch# Privileged EXEC — all show/debug, save, reload enable
Switch(config)# Global configuration configure terminal
Switch(config-if)# Interface configuration interface g1/0/1
Switch(config-line)# Line configuration (console, vty) line vty 0 15

exit goes back one level; end (or Ctrl+Z) returns straight to privileged EXEC.

Help and shortcuts

  • ? — list commands or arguments: show ?, show ip ?.
  • Tab completes a command; abbreviations work if unique: conf t, sh run, int g1/0/1.
  • Up arrow / Ctrl+P recalls previous commands.
  • do show … runs an EXEC command from configuration mode.
  • | include, | section, | begin filter long output: show run | section interface.

Basic settings for any new device

Switch> enable
Switch# configure terminal
Switch(config)# hostname SW1
SW1(config)# no ip domain-lookup
SW1(config)# enable secret <STRONG-SECRET>
SW1(config)# line console 0
SW1(config-line)# password <CONSOLE-PASSWORD>
SW1(config-line)# login
SW1(config-line)# logging synchronous
SW1(config-line)# exec-timeout 10 0
SW1(config-line)# exit
SW1(config)# banner motd # Authorised access only #

no ip domain-lookup stops IOS from treating a mistyped command as a hostname and freezing for several seconds.

Running vs startup configuration

  • running-config lives in RAM: every command takes effect immediately.
  • startup-config lives in NVRAM: loaded at boot.

Changes are lost on reload unless saved:

SW1# copy running-config startup-config
SW1# write memory          (older shortcut, still works)

To compare: show running-config vs show startup-config.

Most-used show commands

Command Shows
show running-config Current configuration
show version IOS version, uptime, hardware, config register
show ip interface brief Interfaces, IPs, status
show interfaces status Switchport status, VLAN, speed, duplex
show vlan brief VLANs and their access ports
show mac address-table Learned MAC addresses

Key points

  • User EXEC → enable → privileged → configure terminal → global → sub-modes.
  • Use ?, Tab and | include to work fast.
  • Running config is live; save it to startup config or lose it on reload.
  • enable secret (hashed) — never enable password.

Sign in to save your lesson progress across devices. You can read every published lesson without an account.