Chapter 2 Using the Command-Line Interface

Understanding Command Modes

Table 2-1describes the main command modes, how to access each one, the prompt you see in that mode, and how to exit the mode. The examples in the table use the hostname Switch.

Table 2-1

Command Mode Summary

 

 

 

 

 

 

 

 

 

 

Mode

 

Access Method

Prompt

Exit Method

About This Mode

 

 

 

 

 

 

User EXEC

 

Begin a session with

Switch>

Enter logout or

Use this mode to

 

 

your switch.

 

quit.

Change terminal settings.

 

 

 

 

 

 

 

 

 

 

Perform basic tests.

 

 

 

 

 

Display system

 

 

 

 

 

 

information.

 

 

 

 

 

Privileged EXEC

While in user EXEC

Switch#

Enter disable to

Use this mode to verify

 

 

mode, enter the

 

exit.

commands that you have

 

 

enable command.

 

 

entered. Use a password to

 

 

 

 

 

protect access to this mode.

 

 

 

 

 

Global configuration

While in privileged

Switch(config)#

To exit to privileged

Use this mode to configure

 

 

EXEC mode, enter

 

EXEC mode, enter

parameters that apply to the

 

 

the configure

 

exit or end, or press

entire switch.

 

 

command.

 

Ctrl-Z.

 

 

 

 

 

 

 

 

Config-vlan

 

While in global

Switch(config-vlan)#

To exit to global

Use this mode to configure

 

 

configuration mode,

 

configuration mode,

VLAN parameters. When VTP

 

 

enter the

 

enter the exit

mode is transparent, you can

 

 

vlan vlan-id

 

command.

create extended-range VLANs

 

 

command.

 

To return to

(VLAN IDs greater than 1005)

 

 

 

 

and save configurations in the

 

 

 

 

privileged EXEC

 

 

 

 

switch startup configuration

 

 

 

 

mode, press Ctrl-Z

 

 

 

 

file.

 

 

 

 

 

or enter end.

 

 

 

 

 

 

 

 

 

 

 

 

VLAN configuration

While in privileged

Switch(vlan)#

To exit to privileged

Use this mode to configure

 

 

EXEC mode, enter

 

EXEC mode, enter

VLAN parameters for VLANs

 

 

the vlan database

 

exit.

1 to 1005 in the VLAN

 

 

command.

 

 

database.

 

 

 

 

 

 

 

Catalyst 3750-E and 3560-E Switch Software Configuration Guide

2-2

OL-9775-02

 

 

Page 80
Image 80
Cisco Systems 3750E Mode Access Method Prompt Exit Method About This Mode, Quit, Configure, Ctrl-Z, Vlan database Exit