IOS Commands Flashcards
Basics of IOS
line console 0
Global command that changes the context to console configuration mode.
line vty
Global command that changes the context to vty configuration mode for the range of vty lines listed in the command.
login
Line (console and vty) configuration mode. Tells IOS to prompt for a password (no username).
password
Line (console and vty) configuration mode. Lists the password required if the login command (with no other parameters) is configured.
interface
Global command that changes the context to interface mode - for example, interface FastEthernet 0/1
hostname
Global command that sets this switch’s host name, which is also used as the first part of the switch’s command prompt.
exit
Moves back to the next higher mode and goes back to enable mode from any of the configuration submodes.
Ctrl-Z
This is not a command, but rather a two-key combination that together do the same thing as the end command
end
Exits configuration mode and goes back to enable mode from any of the configuration submodes.
no debug all
undebug all
Enable mode EXEC command to disable all currently enabled debugs.
terminal monitor
EXEC command that tells Cisco IOS to send a copy of all syslog messages, including debug messages, to the Telnet or SSH user who issues this command.
reload
Enable mode EXEC command that reboots the switch or router.
copy
Enable mode EXEC command that copies files from one file location to another. Locations include the startup config and running config in RAM, files TFTP and RCP servers, and flash memory.
copy running-config startup-config
Enable mode EXEC command that saves the active config, replacing the startup config file used when the switch initializes.
copy startup-config running-config
Enable mode EXEC command that merges the startup config file with the currently active running config file in RAM.
show running-config
Lists the contents of the running config file.
write erase
erase startup-config
These enable mode EXEC commands to erase the startup config file.
quit
EXEC command that disconnects the user from the CLI session.
show startup-config
Lists the contents of the startup config (initial config) file.
enable
Moves the user from user mode to enable (privileged) mode and prompts for a password if one is configured.
disable
Moves the user from enable mode to user mode.
configure terminal
Enable mode command that moves the user into configuration mode.
login local
Console and vty configuration mode. Tells IOS to prompt for a username and password, to be checked against locally configured username global configuration commands on this switch or router.
username secret
Global command. Defines one of possibly multiple usernames and associated passwords, used for user authentication. Used when the login local line configuration command has been used.