Logging out, 6 command modes, 7 using command history – ZyXEL Communications ZyXEL Dimension GS-3012F User Manual
Page 179: 8 saving your configuration, 1 logging out

Dimension GS-3012F Gigabit Ethernet Switch
Introduction to CLI
28-5
28.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
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.
28.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 28-7 CLI: History Command Example
28.8 Saving Your Configuration
After you set the switch settings with the configuration commands, use the
write memory
command to save the
changes permanently to the configuration file that you are using.
Figure 28-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.
28.8.1 Logging
Out
In User mode, enter the
exit
or
logout
command to log out of the CLI.
GS-3012F# write memory
GS-3012F> history
enable
Exit
show ip
history
GS-3012F>