GigaX2024B/M L2 Managed Switch CLI Manual
1
CLI Command Modes
Command
mode
Access method
Prompt
Exit or Access Next
Mode.
User EXEC
This is the first level
of access.(For the
switch) Change
terminal settings,
perform basic tasks,
and list system
information.
Switch>
Exit to enter the EXIT
command. To enter
privileged EXEC mode,
enter the enable command.
Privileged
EXEC
From user EXEC
mode, enter the
enable command.
Switch#
To exit to user EXEC mode,
enter the disable command.
To enter global configuration
mode, enter the configure
terminal command.
Global
configuration
From privileged EXEC
mode, enter the
configure command.
Switch
(config)#
To exit to privileged EXEC
mode, enter the exit or
end command, or press
Ctrl-Z. To enter interface
configuration mode, enter
the interface IFNAME
configuration
command.
Interface
configuration
From global
configuration
mode, specify an
interface by entering
the interface
command followed
by an interface
identification.
Switch
(config-if)#
To exit to privileged
EXEC mode, enter the
end command, or press
Ctrl-Z. To exit to global
configuration mode, enter
the exit command.
Config-vlan
In global
configuration mode,
enter the vlan vlan-
id command.
Switch
(config-
vlan)#
To exit to global
configuration mode, enter
the exit command. To
return to privileged EXEC
mode, enter the end
command, or press Ctrl-Z.
mac access-
list extended
[NAME]
In global
configuration mode,
enter the ACL
NAME command.
Switch
(config-ext-
mac)#
To exit to global
configuration mode, enter
the exit command. To
return to privileged EXEC
mode, enter the end
command, or press Ctrl-Z.