beautypg.com

Command modes, Using command history, Saving your configuration – ZyXEL Communications ZyXEL Dimension GS-3012 User Manual

Page 199: 6 command modes, 7 using command history, 8 saving your configuration, 1 logging out

background image

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

Introducing the Commands

30-5

30.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

configuration

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

port-channel followed by a port number. For example,

interface port-channel 10

.

Enter

exit

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

30.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 30-7 CLI: History Command Example

30.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 30-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.

30.8.1 Logging

Out

ras# write memory

ras> history

enable

exit

show ip

history

ras>