3.2 Command Line Interface (CLI) Flashcards
User Exec Mode (>)
Read only access
Can do basic troubleshooting using PING and TRACEROUTE
User exec mode provides the most basic level of access to a Cisco device. Users logged into this mode have read-only access to the device and access to information gathering permissions such as ping, telnet, traceroute, and connect. Users are unable to make long-term changes while in user mode.
Privileged exec mode (#)
Editing access (not an admin)
Privileged exec mode provides a user with editing capabilities. Because the user has access to commands such as delete, copy, erase, disable, clear, and disconnect, long term damage can be done while in this mode. Access to privileged mode should be protected.
Global configuration mode (config)
configuration level access
Global configuration mode provides advanced access to device configurations. Extensive damage can be done while logged into this mode. Access should be password protected.
ROMMON mode
ROMMON mode is a command line mode that is used to recover a lost or forgotten password, to reinstall the IOS, or to format the flash file system. ROMMON mode lets you configure your router if the router can’t find a valid system image or if the boot sequence is interrupted when you start the router. It is an emergency, command-line access to the router. To go to exec mode from this mode, type continue at the prompt.
show running-configuration
Configuration that is currently running on the device’s memory.
show startup-configuration
Configuration that will be loaded on restart.
show version
The following version information:
- Hardware configuration
- Running IOS version
- ROM bootstrap version
- RAM and processor information
show flash
The following flash information:
- Size of the configuration files
- Available flash memory
- Information for all IOS image files stored
on the device
show history
Commands in the command history list.
show clock
The current time and date of the device.
show interface
Information about a router’s interface including:
- Interface status (whether it’s up or down)
- Utilization
- Protocol status on the interface
- Errors
- Maximum transmission unit (MTU)
show ip interface
Information about the configuration of the IP protocols on each interface, including:
- IP address
- Layer 2 status
- Layer 3 status
show ip route
The following routing table information:
- Networks the router can reach
- Metric
- Route to each network
running configuration file
The running configuration file stores the current configuration of the device. The running configuration file must be copied to the startup configuration file to maintain these changes on restart. You may also want to copy a configuration file that you downloaded, copied from another device, or backed up for safe keeping.
Where can a configuration file be loaded from?
A Cisco device can load a configuration file from:
- NVRAM (startup-configuration file, by
default value 0x2102) - TFTP server
Router# copy run start
Saves the contents of the running-config file to NVRAM.
Router# copy start run
Copies the startup-config file into RAM.
Router# copy run tftp
Saves the contents of the running-config file to a TFTP server.
Router# copy start tftp
Saves the contents of the startup-config file to a TFTP server.
Router# copy tftp start
Copies a configuration file from the TFTP server into NVRAM.
Router# copy tftp run
Copies a configuration file from the TFTP server into RAM.
Router# copy flash tftp
Copies the IOS image to the TFTP server. When using this command, you will be prompted for the destination file name and address.
Router# erase flash
Deletes the contents of Flash memory (deletes the IOS image).
Router# erase start
Erases the contents of the startup-config file.