6 command modes, 7 using command history, 8 saving your configuration – ZyXEL Communications ES-3124PWR User Manual

Page 199: 1 logging out

Advertising
background image

Dimension ES-3124PWR Ethernet Switch

Introducing the Commands

29-5

29.6 Command Modes

There are three CLI command modes: User, Enable and Configure.

When you first log into the CLI, the initial command mode is the User mode. The User mode commands are a
subset of the Enable mode commands. The User mode command prompt ends with an angle bracket (>).

To enter Enable (or privileged) mode, type “

enable

” and enter a password when prompted (the default is 1234).

When you enter the Enable mode, the command prompt changes to the pound sign (

#

).

To enter the configuration mode, type “

configure

” or “

config

”. The Configure mode command prompt consists

of the word “

config

” and the pound sign (

#

). There are two sub configuration modes: VLAN and interface. To

enter config-vlan mode, type “

vlan

” followed by a number (between 1 to 4094). For example,

vlan 10

. To enter

config-interface mode, enter

interface

followed by a port number. For example,

interface 10

.

Enter “

exit

” or “

logout

” to quit from the current mode or log out from the CLI.

29.7 Using Command History

The switch keeps a list of up to 256 commands(s) you have entered for the current CLI session. You can use any
commands in the history again by pressing the up (y) or down (z) arrow key to scroll through the previously used
commands and press [ENTER]. Use the history command to display the list of commands.

Figure 29-7 CLI: History Command Example

29.8 Saving Your Configuration

After you set the switch settings with the configuration commands, use the

write memory

command to save the

changes permanently.

Figure 29-8 CLI: write memory

The

write memory

command is not available in User mode.

You must save your changes after each CLI session. All unsaved configuration changes are lost

once you restart the switch.

29.8.1 Logging

Out

In User mode, enter the

exit

or

logout

command to log out of the CLI.

ras# write memory

ras> history

enable

exit

show ip

history

ras>

Advertising