Chapter 3 Cisco IOS Software Basics

Understanding Command Modes

Understanding Command Modes

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

Table 3-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

 

configure terminal

 

exit or end command,

 

command.

 

or press 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 0/0.

 

 

 

privileged EXEC mode,

 

 

 

 

 

 

press Ctrl-z.

 

 

 

 

Timesaver Each command mode restricts you to a subset of commands. If you are having trouble entering a command, check the prompt, and enter the question mark (?) for a list of available commands. You might be in the wrong command mode or using the wrong 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 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.

Cisco MWR 1900 Mobile Wireless Edge Router Software Configuration Guide

3-2

78-13983-04

 

 

Page 26
Image 26
Cisco Systems 78-13983-04 manual Understanding Command Modes, Exit , or logout, Configure terminal, As interface serial 0/0