Chapter 2
Command-Line Interfaces
You use a separate mode called ROMMON when the switch cannot boot up properly. For example, the
switch might enter ROMMON mode if it does not find a valid system image when it is booting, or if its
configuration file is corrupted. For more information, see the
section on page
Table 2-3
Table 2-3
Frequently Used Cisco IOS Command Modes
Mode
User EXEC
Privileged EXEC (enable) To set operating parameters. The
Global configuration
Interface configuration
Console configuration
The Cisco IOS command interpreter, called the EXEC, interprets and runs the commands you enter. You
can abbreviate commands and keywords by entering just enough characters to make the command unique
from other commands. For example, you can abbreviate the show command to sh and the configure
terminal command to config t.
When you type exit, the switch backs out one level. To exit configuration mode completely and return
to privileged EXEC mode, press Ctrl-Z.
Getting a List of Commands and Syntax
In any command mode, you can get a list of available commands by entering a question mark (?).
Switch> ?
To obtain a list of commands that begin with a particular character sequence, enter those characters
followed by the question mark (?). Do not include a space before the question mark. This form of help
is called word help, because it completes a word for you.
OL-25340-01
2-7.
lists and describes frequently used Cisco IOS modes.
What You Use It For
To connect to remote devices,
change terminal settings on a
temporary basis, perform basic
tests, and display system
information.
privileged command set includes
the commands in user EXEC
mode, as well as the configure
command. Use the configure
command to access the other
command modes.
To configure features that affect
the system as a whole, such as the
system time or switch name.
To enable or modify the operation
of a 10-Gigabit Ethernet, Gigabit
Ethernet, or Fast Ethernet interface
with interface commands.
To configure the console interface;
from the directly connected
console or the virtual terminal;
used with Telnet.
Software Configuration Guide—Release IOS XE 3.3.0SG and IOS 15.1(1)SG
"ROMMON Command-Line Interface"
How to Access
Log in.
From user EXEC mode, enter the
enable command and the enable
password (if a password has been
configured).
From privileged EXEC mode,
enter the configure terminal
command.
From global configuration mode,
enter the interface type location
command.
From global configuration mode,
enter the line console 0 command.
Getting a List of Commands and Syntax
Prompt
Switch>
Switch#
Switch(config)#
Switch(config-if)#
Switch(config-line)#
2-5