The basic commands related to moving between command input modes are described below. For commands that move from
global configuration mode mode to individual configuration mode, refer to "individual configuration mode."
•
exit command
•
logout command
•
enable command
•
disable command
•
configure terminal command
•
end command
2.4.2 individual configuration mode
individual configuration mode is the overall name for the mode in which you can make detailed settings for specific items such
as LAN/SFP port, VLAN interface, and QoS. To enter individual configuration mode, issue the command for transitioning to
the respective mode from global configuration mode.
On SWR2311P, individual configuration mode contains the following modes. Some of the modes within individual
configuration mode have a hierarchy. For example, policy map mode → policy map class mode.
individual configuration mode
interface mode
line mode
VLAN mode
VLAN access map mode
MST mode
class map mode
policy map mode
policy map class mode
L2MS mode
LLDP agent mode
2.4.3 Command prompt prefix
he command prompt prefix indicates the host name. In the default state, the host name is the model name "SWR2311P". This
indication can be changed by using the hostname command to specify the host name. In cases where multiple SWR2311P units
are used, management will be easier if separate names are assigned to each switch.
Changing the host name
SWR2311P(config)# hostname Switch-012
Switch-012(config)#
2.4.4 Executing commands of a different input mode
Because the commands that can be used on the SWR2311P differ depending on the mode, you must transition to the mode in
which a command can be executed before you execute that command. The do command is provided as a way to avoid this
requirement.
By using the do command you can execute priviledged EXEC mode commands from any configuration mode. This allows you
to reference the current configuration or save settings from any configuration mode without having to transition to priviledged
EXEC mode.
However, since the completion function cannot be used with do, you must enter the command that follows either in its full
spelling or in its abbreviated form.
•
Entry in full spelling
SWR2311P(config)#do show running-config
•
Entry in abbreviated form
SWR2311P(config)#do sh ru
Transition command
interface command
line con command
line vty command
vlan database command
vlan access-map command
spanning-tree mst configuration
command
class-map command
policy-map command
class command
l2ms configuration command
lldp-agent command
Command Reference | How to use the commands | 19
Prompt
SWR2311P(config-if)#
SWR2311P(config-line)#
SWR2311P(config-vlan)#
SWR2311P(config-vlan-access-map)#
SWR2311P(config-mst)#
SWR2311P(config-cmap)#
SWR2311P(config-pmap)#
SWR2311P(config-pmap-c)#
SWR2311P(config-l2ms)#
SWR2311P(lldp-agent)#