User Manual

Table Of Contents
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 SWP2, 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 Transition command Prompt
interface mode interface command SWP2(config-if)#
line mode line con command
line vty command
SWP2(config-line)#
VLAN mode vlan database command SWP2(config-vlan)#
VLAN access map mode vlan access-map command SWP2(config-vlan-access-map)#
MST mode
spanning-tree mst configuration
command
SWP2(config-mst)#
class map mode class-map command SWP2(config-cmap)#
policy map mode policy-map command SWP2(config-pmap)#
policy map class mode class command SWP2(config-pmap-c)#
LLDP agent mode lldp-agent command SWP2(lldp-agent)#
E-mail template mode mail template command SWP2(config-mail)#
RADIUS configuration mode radius-server local-profile command SWP2(config-radius)#
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 "SWP2". This
indication can be changed by using the hostname command to specify the host name. In cases where multiple SWP2 units are
used, management will be easier if separate names are assigned to each switch.
Changing the host name
SWP2(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 SWP2 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
SWP2(config)#do show running-config
Entry in abbreviated form
SWP2(config)#do sh ru
2.5 Keyboard operations when using the console
2.5.1 Basic operations for console input
The SWP2 allows the following operations in the command line.
Moving the cursor
Command Reference | How to use the commands | 19