Freebie

IOS commands

Cisco IOS organizes configuration into a hierarchy of modes. Privileged EXEC mode (indicated by #) is the entry point for viewing device state and entering configuration. Running configure terminal drops you into global configuration mode, where device-wide settings like hostname and routing protocols live. From global config, you enter sub-modes to configure specific resources. Interface configuration mode controls physical and logical ports, where you set properties like speed, IP addresses, and shutdown state. Line configuration mode controls the access lines used to connect to the device, including the console port, VTY (SSH/Telnet), and AUX port. Use exit to move up one level and end to return directly to privileged EXEC.

  1. Privileged EXEC (#): view and manage device state, enter configuration
  2. Global configuration ((config)#): device-wide settings: hostname, routing, AAA, VLANs
  3. Interface configuration ((config-if)#): per-port settings: IP, speed, shutdown state
  4. Line configuration ((config-line)#): console, VTY, and AUX access settings
  5. Router configuration ((config-router)#): routing protocol settings: OSPF, EIGRP, BGP

Configuration commands

CommandModeDescription
line console 0Global configEnters line config mode for the physical console port
loginLine configRequires password authentication on the line
password passwordLine configSets the plain-text password for the line
interface type port-numberGlobal configEnters interface config mode for the specified port
speed valueInterface configHard-sets interface speed; disables autonegotiation
hostname nameGlobal configSets the device hostname
exitAnyMoves up one level in the config hierarchy
endAnyReturns directly to privileged EXEC from any config mode
Ctrl+ZAnyReturns directly to privileged EXEC from any config mode

EXEC commands

EXEC mode is the command-line layer above configuration. User EXEC mode (indicated by >) provides limited read-only access and is the first mode you reach after connecting. Running enable elevates you to Privileged EXEC mode (indicated by #), where you can view device state, manage configuration files, reload the device, and control the session. Unlike configuration commands, EXEC commands do not modify the running configuration.

CommandModeDescription
no debug allPrivileged EXECDisables all active debug sessions
undebug allPrivileged EXECAlias for no debug all
reloadPrivileged EXECReboots the device
copy running-config startup-configPrivileged EXECSaves running config to NVRAM
copy startup-config running-configPrivileged EXECLoads startup config into running config
show running-configPrivileged EXECDisplays the current running configuration
write erasePrivileged EXECErases the startup configuration from NVRAM
erase startup-configPrivileged EXECAlias for write erase
erase nvram:Privileged EXECErases all NVRAM contents
quitAny EXECCloses the current session
show startup-configPrivileged EXECDisplays the saved startup configuration
enableUser EXECEnters Privileged EXEC mode
disablePrivileged EXECReturns to User EXEC mode
configure terminalPrivileged EXECEnters global configuration mode
show mac address-tablePrivileged EXECDisplays the MAC address table (switches only)