Chapter 32 Introducing the Commands

To enter Enable (or privileged) mode, type enable and enter the administrator password when prompted (the default is 1234). When you enter Enable mode, the command prompt changes to the pound sign (#). If you log into the command interpreter as an administrator (admin) you automatically enter Enable mode.

The following table describes command interpreter modes and how to access them.

Table 80 Command Interpreter Mode Summary

MODE

.DESCRIPTION

HOW TO LOGIN/

PROMPT

 

 

ACCESS

 

User

Commands available in this mode are

Default login level for a

sysname>

 

a subset of the enable mode. You can

read-only account.

The first part of the prompt is

 

perform basic tests and display

 

 

 

the system name. In the CLI

 

system information.

 

 

 

examples in this User’s

 

 

 

Guide, the system name is

 

 

 

always “sysname”.

 

 

 

 

Enable

Commands available in this mode

Default login level for

sysname#

 

allow you to save configuration

the administrator or

 

 

settings, reset configuration settings

accounts with a

 

 

as well as display further system

privilege of 13 or 14.

 

 

information. This mode also contains

Read-only accounts

 

 

the configure command which

(with a privilege of 0 to

 

 

takes you to config mode.

12) need to type the

 

 

 

enable command

 

 

 

and enter the enable

 

 

 

mode password.

 

 

 

 

 

Config

Commands available in this mode

Type config or

sysname(config)#

 

allow you to configure settings that

configure in the

 

 

affect the switch globally.

enable mode prompt.

 

Command modes that follow are sub-modes of the config mode and can only be accessed from within the config mode.

Config-vlan

This is a sub-mode of the config mode

Type vlan followed

sysname(config-vlan)#

 

and allows you to configure VLAN

by a number (between

 

 

settings.

1 and 4094). For

 

 

 

example, vlan 10 to

 

 

 

configure settings for

 

 

 

VLAN 10.

 

 

 

 

 

Config-interface

This is a sub-mode of the config mode

Type interface

sysname(config-

 

and allows you to configure port

port-channel

interface)#

 

specific settings.

followed by a port

 

 

 

number. For example,

 

 

 

interface port-

 

 

 

channel 8 to

 

 

 

configure port 8 on the

 

 

 

switch.

 

 

 

 

 

Config-mvr

This is a sub-mode of the config mode

To enter MVR mode,

sysname(config-mvr)#

 

and allows you to configure multicast

enter mvr followed by

 

 

VLAN settings.

a VLAN ID (between 1

 

 

 

and 4094). For

 

 

 

example, enter mvr 2

 

 

 

to configure multicast

 

 

 

settings on VLAN 2.

 

 

 

 

 

Enter exit to quit from the current mode or enter logout to exit the command interpreter.

212

 

GS-3012/GS-3012F User’s Guide