Chapter 2 Cisco IOS Software Basics

Understanding Command Modes

Understanding Command Modes

The Cisco IOS user interface is used in various command modes. Each command mode permits you to configure different components on your router. The commands available at any given time depend on which command mode you are in. Entering a question mark (?) at a prompt displays a list of commands available for that command mode. Table 2-1lists the most common command modes.

Table 2-1

Common Command Modes

 

 

 

 

 

 

 

 

 

 

Router Prompt

 

Command Mode

Access Method

Displayed

Exit Method

 

 

 

 

 

User EXEC

 

Log in.

Router>

Use the logout command.

 

 

 

 

Privileged EXEC

From user EXEC mode,

Router#

To exit to user EXEC

 

 

enter the enable

 

mode, use the disable,

 

 

command.

 

exit, or logout command.

 

 

 

 

Global configuration

From the privileged

Router (config)#

To exit to privileged

 

 

EXEC mode, enter the

 

EXEC mode, use the exit

 

 

configure terminal

 

or end command, or press

 

 

command.

 

Ctrl-Z.

 

 

 

 

Interface configuration

From the global

Router (config-if)#

To exit to global

 

 

configuration mode,

 

configuration mode, use

 

 

enter the interface type

 

the exit command.

 

 

number command, such

 

To exit directly to

 

 

as interface serial

 

 

 

 

privileged EXEC mode,

 

 

0/0/0.

 

 

 

 

press Ctrl-Z.

 

 

 

 

 

 

 

 

 

Timesaver Each command mode restricts you to a subset of commands. If you have trouble entering a command, check the prompt and enter the question mark (?) to see a list of available commands. You might be in the wrong command mode or be using an incorrect syntax.

In the following example, notice how the prompt changes after each command to indicate a new command mode:

Router> enable

Password: <enable password>

Router# configure terminal

Router (config)# interface serial 0/0/0 Router (config-if)# line 0

Router (config-line)# controller t1 0 Router (config-controller)# exit Router (config)# exit

Router#

%SYS-5-CONFIG_I: Configured from console by console

The last message is normal and does not indicate an error. Press Return to get the Router# prompt.

Note You can press Ctrl-Zin any mode to immediately return to enable mode (Router#), instead of entering exit, which returns you to the previous mode.

Cisco 3825 Mobile Wireless Edge Router Software Configuration Guide

2-2

OL-15667-03

 

 

Page 48
Image 48
Cisco Systems 3825 manual Understanding Command Modes, Configure terminal, Ctrl-Z, As interface serial