12
If you want to execute more powerful commands, you must enter the privileged mode.
Input command “
enable
”
L2SWITCH>enable
Input a valid username and password when below prompt are displayed.
user:admin
password:admin
L2SWITCH#
4.4.
CLI command concept
Node
Command
Description
enable
show hostname
This command displays the system’s network name.
configure reboot
This command reboots the system.
eth0
ip address A.B.C.D/M This command configures a static IP and subnet
mask for the system.
interface
show
This command displays the current port
configurations.
acl
show
This command displays the current access control
profile.
vlan
show
This command displays the current VLAN
configurations.
The Node type:
enable
Its command prompt is “
L2SWITCH#”.
It means these commands can be executed in this command prompt.
configure
Its command prompt is “
L2SWITCH(config)#”.
It means these commands can be executed in this command prompt.
In
Enable
code, executing command “
configure terminal
” enter the configure node.
L2SWITCH#
configure terminal
eth0
Its command prompt is “
L2SWITCH(config-if)#”.
It means these commands can be executed in this command prompt.
In
Configure
code, executing command “
interface eth0
” enter the eth0 interface node.
L2SWITCH(config)#interface eth0
L2SWITCH(config-if)#
interface
Its command prompt is “
L2SWITCH(config-if)#”.
It means these commands can be executed in this command prompt.
In
Configure
code, executing command “
interface gigaethernet1/0/5
” enter the
interface port 5 node.