Table 3 Command Modes

Command Mode

Mode Access Method

Prompt

Exit or Access Previous Mode

 

 

 

 

Mac Access List

In the Global Config mode,

hostname (Mac-Access-List

To exit to the Global Config mode, enter

Config

enter the mac access-list

Config)#

the exit command. To return to the User

 

extended command

 

Exec mode, enter Ctrl-Z.

 

 

 

 

TACACS Config

In the Global Config mode,

hostname (Tacacs)#

To exit to the Global Config mode, enter

 

enter the tacacs-server

 

the exit command. To return to the User

 

host ip-address

 

Exec mode, enter Ctrl-Z.

 

command.

 

 

 

 

 

 

Mode-based Command Hierarchy

As introduced above, the CLI is divided into various modes. Commands in a particular mode are not available until the operator switches to that mode, with the exception of the User Exec mode commands. The User Exec mode commands may also be executed in the Privileged Exec mode.

The commands available to the operator at any point in time depend upon the mode. Entering a question mark (?) at the CLI prompt displays a list of the available commands, along with descriptions of the commands.

The CLI provides the following modes:

User Exec Mode. When the operator logs into the CLI, the User Exec mode is the initial mode. The User Exec mode contains a limited set of commands.

Command Prompt: hostname >

Note: The hostname here is a placeholder for the prompt that you create using the

hostname command. See hostname on page 57.

Privileged Exec Mode. To have access to the full suite of commands, you must enter the Privileged Exec mode. The Privileged Exec mode requires password authentication. In Privileged Exec mode, you can issue any User Exec mode command or enter the Global Config mode. Command Prompt: hostname #

Global Config Mode. This mode permits you to make general modifications to the running configuration. From the Global Configuration mode, you can enter all of the configuration-specific modes listed below. Command Prompt: hostname (Config)#

From the Global Config mode, you may enter the following configuration modes:

Interface Config Mode. Many features are enabled for a particular interface. The Interface commands enable or modify the operation of an interface.

48

Using the Command Line Interface

Page 48
Image 48
Force10 Networks S2410s Mode-based Command Hierarchy, Enter the mac access-list, Extended command, Enter the tacacs-server