01-Basic Configuration Commands
01-Basic Configuration Commands
-I-
Table of Contents
Table of Contents
1.1.8 more................................................................................................................................ 6
1.2.2 cd .................................................................................................................................... 8
-I-
Table of Contents
1.2.7 md ................................................................................................................................ 11
1.2.9 rd .................................................................................................................................. 12
1.2.15 history........................................................................................................................ 16
2.1.2 ip telnet........................................................................................................................ 24
2.1.6 disconnect................................................................................................................... 30
- II -
Table of Contents
2.2.1 attach-port................................................................................................................... 34
2.2.4 connect........................................................................................................................ 35
2.2.5 disconnect................................................................................................................... 36
- III -
Table of Contents
2.2.21 where......................................................................................................................... 45
3.1.2 traceroute.................................................................................................................... 50
- IV -
Table of Contents
-V-
Table of Contents
- VI -
Baisc Configuration Commands
copy
delete
dir
ip address
ip route
show configuration
format
more
1.1.1 copy
To read a file from the tftp server to a switch, use the copy command.
copy tftp<:filename> {flash<:filename>|rom} [ip_addr]
Parameter
Parameter Description
tftp<:filename> Read a file from the tftp server. Filename indicates the relevant
flash <:filename> Write a file to the flash memory of the switch. Filename indicates
will prompt user to input the filename after executing the copy
command.
Default
None
-1-
Baisc Configuration Commands
Command mode
monitor mode
Instrution
None
Example
The example shows how to read the switch.bin from the tftp server to
the flash memory of the switch:
Related commands
None
1.1.2 delete
Parameter
Parameter Description
Default
Command mode
monitor mode
Instruction
None
Related commands
None
-2-
Baisc Configuration Commands
1.1.3 dir
dir file-name
Parameter
Parameter Description
Default
None
Command mode
monitor mode
Instruction
None
Related commands
None
1.1.4 ip address
Parameter
Parameter Description
ip-address IP address
Default
None
-3-
Baisc Configuration Commands
Command mode
monitor mode
Instruction
None
Example
Related commands
ip route
ping
1.1.5 ip route
Parameter
Parameter Description
Default
None
Command mode
Monitor mode
Instrution
None
Example
Related commands
ip address
-4-
Baisc Configuration Commands
Parameter
None
Default
None
Command mode
monitor mode
Instrution
None
Related commands
None
1.1.7 format
Parameter
None
Default
None
Command mode
EXEC
Instrution
All files in the file system will de deleted after executing the format
command.
-5-
Baisc Configuration Commands
Related commands
None
1.1.8 more
Parameter
Parameter Description
Default
None
Command mode
EXEC
Instrution
Related commands
None
bootflash
cd
chinese
english
chram
date
debub job
md
pwd
rd
rename
-6-
Baisc Configuration Commands
reboot
show break
show memory
alias
boot system flash
help
history
job
jobd
show alias
show job
To enable the system from the specified file in monitor mode, use the
boot flash command.
boot flash filename
Parameter
Parameter Description
Default
None
Command mode
monitor mode
Command mode
Use the boot flash command to enable the device after user entering
the monitor mode.
Example
Related commands
None
-7-
Baisc Configuration Commands
1.2.2 cd
Parameter:
Parameter Description
.. Upper directory.
Default
None
Command mode
Monitor mode
Command mode
None
Example
monitor#cd my_dir
Related commands
pwd
1.2.3 chinese
Parameter
None
Default
None
-8-
Baisc Configuration Commands
Command mode
monitor mode
Command mode
None
Example
None
Related commands
None
1.2.4 date
Parameter
None
Default
None
Command mode
Monitor mode
Command mode
This command is used to set the abslute time for the system. For the
switch with a battery-powered clock, the clock will be powered by the
battery. If the clock doesn’t keep good time, you need to change the
battery.
Example
monitor#date
The current date is 2000-7-27 21:17:24
-9-
Baisc Configuration Commands
Related commands
Parameter
None
Command mode
EXEC
Instrution
Output the debug and execution condition of the job after turn on the
debug switch of the job.
Example
config#debug job
JOB: <showver> fired
JOB: job <showver>, cmd "show ver" is parsing
Related commands
job
jobd
show job
1.2.6 english
Parameter
None
Default
None
- 10 -
Baisc Configuration Commands
Command mode
monitor
Instruction
None
Example
None
Related commands
None
1.2.7 md
md directory
Parameter
Parameter Description
Default
None
Command mode
monitor
Instruction
Related commands
None
1.2.8 pwd
Parameter
None
- 11 -
Baisc Configuration Commands
Default
None
Command mode
monitor mode
Instruction
Related commands
None
1.2.9 rd
rd directory
Parameter
Parameter Description
Default
None
Command mode
monitor mode
Instruction
The system prompts if the directory is not empty. The system prompts
if the directory doesn’t exist. To delete a command, use the rd
command.
Related commands
None
1.2.10 rename
- 12 -
Baisc Configuration Commands
Parameter
Parameter Description
Default
None
Command mode
monitor mode
Instruction
None
Related commands
None
1.2.11 reboot
Parameter
None
Default
None
Command mode
monitor mode
Instruction
None
- 13 -
Baisc Configuration Commands
Related commands
None
1.2.12 alias
Parameter
Parameter Description
the beginning
Default
Comand mode
Explanation
Example
The following example shows the latest five historical commands from
the end to the beginning:
switch#history - 5
config
int e0/1
no ip addr
- 14 -
Baisc Configuration Commands
Related command
None
Parameter
Parameter Description
Default
None
Command mode
Instruction
If you have not configured the command, the system will execute the
first systematic mirroring file in the flash file system. If you have
configured multiple commands, the system will execute the mirroring
files one by one. If the file does not exist or the check sum is wrong,
the system will execute the next file. If both fail, the system will run at
the monitoring state.
Example
Related command
None
- 15 -
Baisc Configuration Commands
1.2.14 help
help
Parameter
None
Default
None
Command mode
Management mode
Instruction
Example
After you enter the command, the help system of the switch is
displayed.
switch# help
Help may be requested at any point in a command by entering a question mark
'?',If nothing matches, the help list will be empty and you must backup until
entering a '?' shows the available options.
Two styles of help are provided:
1. Full help is available when you are ready to enter a command argument
(e.g.'show ?') and describes each possible argument.
2. Partial help is provided when an abbreviated argument is entered and you want
to know what arguments match the input (e.g. 'interface e?'.)
Related command
None
1.2.15 history
The command is used to check the historical commands. Run the [no]
history command to delete the historical commands.
[no] history [ + <count> | - <count> | clear]
- 16 -
Baisc Configuration Commands
Parameter
Parameter Description
to the end.
- <count> Displays the count<1-20> historial command from the end to the
beginning.
Default
Command mode
Instruction
Example
The following example shows the latest five commands from the end to
the beginning:
switch#history - 5
config
int e1/1
no ip addr
ip addr 192.2.2.49 255.255.255.0
exit
Related command
N/A
- 17 -
Baisc Configuration Commands
1.1.1 show
Parameter
Parameter Description
begin Means to show the result of the show command starting with
a specific word.
exclude Means not to show the lines of the result of the show command
redirect Redirects the result of the show command to the file in the
Default value
N/A
Command mode
Explanation
- 18 -
Baisc Configuration Commands
result of the show command, especially when the result is too much to
read. For example, if you want to browse a designated MAC address in
an MAC address table, which contains a lot of MAC addresses, this
command will give you convenience for you.
Example
The following example shows how to display the lines, in which the word
“interface” is contained, in the result of show running-config.
Switch#show running-config | include interface
Building configuration...
Current configuration:
!
interface GigaEthernet0/1
interface GigaEthernet0/2
interface GigaEthernet0/3
interface GigaEthernet0/4
interface GigaEthernet0/5
interface GigaEthernet0/6
interface GigaEthernet0/7
interface GigaEthernet0/8
Related command
N/A
Parameter
Parameter Description
Default
None
- 19 -
Baisc Configuration Commands
Command mode
Instruction
Run the show job command to browse the defined parameters and
the dynamic execution state of the job.
Example
The following example shows how to display the parameters of the job:
switch_config#show job parameter
Type: None - Not scheduled, interval - Fire interval, one-shot - Fire once
===========================
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Related command
debug job
job
jobd
- 20 -
Baisc Configuration Commands
Parameter
None
Default
None
Command mode
Monitoring state
Instruction
Related command
None
- 21 -
Baisc Configuration Commands
2.1.1 telnet
Parameter
Parameter Description
- 22 -
Baisc Configuration Commands
echo/noecho Enable or disable the local echo. The default value is noecho.
Default
The default port number is 23. The interface has no default number.
Command mode
Management mode
Instruction
You can use one of the following command lines to establish a remote
login.
telnet server-ip-addr/server-host-name
In this case, the application program directly sends the telnet login
request to port 23 of the remote server. The local IP address is the IP
address which is nearest to the peer and found by the routing table.
telnet server-ip-addr/server-host-name /port port
In this case, the application program sends a telnet login request to the
port of the peer.
telnet server-ip-addr/server-host-name /source-interface interface
In this case, the application program opens the debug and exports the
connection at the client side.
telnet server-ip-addr/server-host-name echo/noecho
In this case, the application program enables or disables the local echo.
The local echo is disabled by default. The echo is completed at the
server side. Only when the server is not in charge of echo is the local
echo enabled.
- 23 -
Baisc Configuration Commands
Before executing the automatic login command of the script, run the
command ip telnet script to configure the script.
The previous commands can be used together.
During the session with the remote server, you can press the Q button
to exit the session. If the session is not manually closed, the session
will be complete after a 10-second timeout.
Example
In this case, the telnet connection negotiation with port 23 of the peer
will be printed out.
5.telnet 192.168.20.124 /echo
In this case, the local echo is enabled. If the echo is also enabled at
the server side, all input will be echoed twice.
6.telnet 192.168.20.124 /script s1
2.1.2 ip telnet
- 24 -
Baisc Configuration Commands
Parameter
Parameter Description
Access list name to limit the source address when the local
accesslist
client receives the connection
Default
None
Command mode
Global configuration
Instruction
- 25 -
Baisc Configuration Commands
In this case, the access list will be checked when the server
accepts all telnet connections.
Run the following command to configure a port, except the
default port 23, to receive the telnet service.
ip telnet listen-port start-port [end-port]
Example
- 26 -
Baisc Configuration Commands
Parameter
None
Default
None
Command mode
Instruction
You can use the shortcut key to mount the current telnet connection at
the client side.
Example
switchA>telnet 192.168.20.1
Welcome to Multi-Protocol 2000 Series switch
switchB>ena
switchB#(press ctrl-shift-6+x)
switchA>
2.1.4 where
Parameter
None
Default
None
Command mode
Global configuration
- 27 -
Baisc Configuration Commands
Instruction
You can use the command to check the mounted outward telnet
connection at the client side. The displayed information contains the
serial number, peer address, local address and local port.
Note:
The where command is different from the show telnet command. The
former is used at the client side and the displayed information is the
outward telnet connection. The latter is used at the server and the
displayed information is the inward telnet connection.
Example
switchA>telnet 192.168.20.1
Welcome to Multi-Protocol 2000 Series switch
switchB>ena
switchB#(Press ctrl-shift-6+x)
switchA> telnet 192.168.20.2
Welcome to Multi-Protocol 2000 Series switch
switchC>ena
switchC#(Press ctrl-shift-6+x)
switchA>where
NO. Remote Addr Remote Port Local Addr Local
Port
1 192.168.20.1 23 192.168.20.180
20034
2 192.168.20.2 23 192.168.20.180
20035
2.1.5 resume
Parameter
Parameter Description
- 28 -
Baisc Configuration Commands
Default
None
Command mode
Global configuration
Instruction
Example
switchA>telnet 192.168.20.1
Welcome to Multi-Protocol 2000 Series switch
switchB>ena
switchB#( press ctrl-shift-6+x)
switchA> telnet 192.168.20.2
Welcome to Multi-Protocol 2000 Series switch
switchC>ena
switchC#( press ctrl-shift-6+x)
switchA>where
NO. Remote Addr Remote Port Local Addr Local
Port
1 192.168.20.1 23 192.168.20.180
20034
2 192.168.20.2 23 192.168.20.180
20035
switchA>Resume 1
[Resuming connection 1 to 192.168.20.73 . . . ]
(enter)
switchB#
- 29 -
Baisc Configuration Commands
2.1.6 disconnect
Parameter
Parameter Description
Default
None
Command mode
Global configuration
Instruction
Example
switchA>telnet 192.168.20.1
Welcome to Multi-Protocol 2000 Series switch
switchB>ena
switchB#(press ctrl-shift-6+x)
switchA> telnet 192.168.20.2
Welcome to Multi-Protocol 2000 Series switch
switchC>ena
switchC#(press ctrl-shift-6+x)
switchA>where
NO. Remote Addr Remote Port Local Addr Local
Port
- 30 -
Baisc Configuration Commands
1 192.168.20.1 23 192.168.20.180
20034
2 192.168.20.2 23 192.168.20.180
20035
switchA>disconnect 1
<Closing connection to 192.168.20.1> <y/n>y
Parameter
Parameter Description
Default
None
Command mode
Management mode
Instruction
Example
clear telnet 1
- 31 -
Baisc Configuration Commands
Parameter
None
Default
None
Command mode
Instruction
The command is used to display the telnet session at the server. The
displayed information includes the sequence number, peer address,
peer port, local address and local port.
Example
The following is a format of the debug command for the telnet session:
debug telnet
Parameter
None
- 32 -
Baisc Configuration Commands
Default
None
Command mode
Management mode
Instruction
Example
debug telnet
- 33 -
Baisc Configuration Commands
resume
script activation
script callback
script connection
script dialer
script reset
script startup
sequence-char
show debug
show line
show tty-status
switchkey
switchmsg
terminal-type
terminal monitor
terminal width
terminal length
where
width
2.2.1 attach-port
The following command is to bind the telnet listening port to the line
vty number and enable the telnet connection at a specific port
generates vty according to the designated sequence number.
[no] attach-port PORT
Parameter
Parameter Description
Default
None
Command mode
Example
- 34 -
Baisc Configuration Commands
switch_config_line#attach-port 3001
2.2.2 autocommand
Parameter
Parameter Description
Command mode
Example
switch_conf#line vty 1
switch_conf_line#autocommand pad 123456
After you successfully log in, the host whose X.121 address is 123456
will be automatically padded.
Parameter
Command mode
Management mode
Example
2.2.4 connect
- 35 -
Baisc Configuration Commands
Parameter
Parameter Description
server-ip-addr/server-ho
IP address of the server or the host name of the server
st-name
Command mode
Example
2.2.5 disconnect
Parameter
Parameter Description
Command mode
Example
switch#disconnect 1
- 36 -
Baisc Configuration Commands
2.2.6 exec-timeout
Parameter
Parameter Description
Default
Command mode
Example
2.2.7 length
Parameter
Parameter Description
Default
24
Command mode
- 37 -
Baisc Configuration Commands
2.2.8 line
Parameter
Parameter Description
Command mode
Global configuration
Example
The following example shows how to enter the line configuration mode
of VTY 0 to 10.
switch_config#line vty 0 10
2.2.9 location
Parameter
Parameter Description
Command mode
- 38 -
Baisc Configuration Commands
Parameter
Parameter Description
Command mode
Example
2.2.11 monitor
Parameter
None
Command mode
Example
switch_config_line#monitor
Parameter
None
- 39 -
Baisc Configuration Commands
Command mode
Management mode
Example
2.2.13 password
Parameter
Parameter Description
Command mode
Example
switch_conf#line vty 1
switch_conf_line#password test
- 40 -
Baisc Configuration Commands
test.
2.2.14 resume
resume N
Parameter
Parameter Description
Command mode
Example
switch#resume 1
Parameter
None
Command mode
Example
- 41 -
Baisc Configuration Commands
TELNET:
Incoming Telnet debugging is on
Parameter
Command mode
Parameter
Parameter Description
Default
Command mode
Global configuration
Instruction
- 42 -
Baisc Configuration Commands
Example
switch#terminal length 40
Related command
line
Parameter
None
Default
Command mode
Global configuration
Instruction
Example
switch#terminal monitor
Related command
line
debug
- 43 -
Baisc Configuration Commands
The parameter can be obtained by the remote host. Run the terminal
width command to set the character number in each line. Run the no
terminal width command to resume to the default value.
Parameter
Parameter Description
Default
Command mode
Global configuration
Instruction
Example
switch#terminal width 40
Related command
line
2.2.20 terminal-type
Parameter
Parameter Description
Terminal name
Name
Terminal types currently supported are VT100, ANSI and
- 44 -
Baisc Configuration Commands
VT100J.
Default
ANSI
Command mode
2.2.21 where
Parameter
None
Command mode
Example
switch#where
2.2.22 width
Parameter
Parameter Description
Default
80
- 45 -
Baisc Configuration Commands
Command mode
- 46 -
Baisc Configuration Commands
3.1.1 ping
Parameter
Parameter Description
path and the routing switch will then return an ICMP error
MTU. You can use the –f option to decide the smallest MTU on
the path.
an interface.
interface
- 47 -
Baisc Configuration Commands
Default: 56 bytes
Default: 5 messages
Default: 0
Default: 255
-v Detailed output
Default: 2 seconds
Command mode
- 48 -
Baisc Configuration Commands
Instruction
received.
messages
Example
- 49 -
Baisc Configuration Commands
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
--- 192.168.20.125 ping statistics ---
30 packets transmitted, 30 packets received, 0% packet loss
round-trip min/avg/max = 50/64/110 ms
3.1.2 traceroute
traceroute [-i source-ip-address ] [-m source-interface}] [-j host1 [host2 host3 …]]
[–k host1 [host2, host3 …]] [-p port-number] [-q probe-count] [-r hops] [-t ttl] [-w waittime]
[-x icmp] host
Parameter
Parameter Description
-j host1 [host2 host3…] Sets the loose source route.Default: Not set
-p port-number Sets the ID of destination port that transmits UDP packets. Default value:
33434
- 50 -
Baisc Configuration Commands
-q probe-count Sets the number of packets that you detect each time.
Default: 3 packets
-r hops Records the routes (at most hops routes can be recorded).
-w waittime Means the time that each packet waits for echo.
Command mode
Explanation
The UDP packet is used for detection by default, but you can run –x
icmp to replace it with ICMP ECHO for detection.
If you want to stop traceroute, press q or Q.
By default, the simple output information is as follows.
Parameter Description
- 51 -
Baisc Configuration Commands
hops max Means the maximum detection hops (the threshold of ICMP).
Example
switch#traceroute 90.1.1.10
traceroute to 90.1.1.10 (90.1.1.10), 30 hops max, 36 byte packets
1 90.2.2.1 0 ms 0 ms 0 ms
2 90.1.1.10 0 ms 0 ms 0 ms
The chapter describes the commands used for fault diagnosis. All the
following commands are used to detect the reason of the fault. You can
use other commands to remove the fault, such as the debug
command.
3.2.1 logging
- 52 -
Baisc Configuration Commands
Parameter
Parameter Description
Default:
Command mode
Global configuration
Instruction
Example
logging 192.168.1.1
Related command
logging trap
no logging buffered
Parameter
Parameter Description
Unit: byte
Refer to table 1.
- 53 -
Baisc Configuration Commands
dump When the system has abnormality, the information in the current
Default
Command mode
Global configuration
Instruction
The command records the log information to the memory cache of the
switch. The memory cache is circularly used. After the memory cache
is fully occupied, the latter information will cover the previous
information.
You can use the show logging command to display the log
information recorded in the memory cache of the switch.
Do not use big memory for it causes the shortage of memory.
Table 1 Level of log recording
needed
condition
messages only
- 54 -
Baisc Configuration Commands
Related command
clear logging
show loggin
Parameter
Parameter Description
Refer to table 2.
Default
None
Command mode
Global configuration
Instruction
needed
- 55 -
Baisc Configuration Commands
condition
messages only
Example
Related command
logging facility
show logging
Parameter
Parameter Description
Facility type
facility-type
Refer to table 3.
Default
local7
Command mode
Global configuration
- 56 -
Baisc Configuration Commands
Instruction
Type Description
kern Kernel
Example
Related command
logging console
- 57 -
Baisc Configuration Commands
Parameter
Parameter Description
Refer to table 4.
Default
debugging
Command mode
Global configuration
Instruction
needed
condition
- 58 -
Baisc Configuration Commands
messages only
Example
Related command
terminal monitor
3.2.6 logging on
Parameter
None
Default
logging on
Command mode
Global configuration
Example
switch_config# logging on
switch_config# ^Z
switch#
Configured from console 0 by DEFAULT
switch# ping 192.167.1.1
switch#ping 192.167.1.1
PING 192.167.1.1 (192.167.1.1): 56 data bytes
!!!!!
- 59 -
Baisc Configuration Commands
switch_config# no logging on
switch_config# ^Z
switch#
switch# ping 192.167.1.1
PING 192.167.1.1 (192.167.1.1): 56 data bytes
!!!!!
--- 192.167.1.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0/4/10 ms
Related command
logging
logging buffered
logging monitor
- 60 -
Baisc Configuration Commands
logging console
Parameter
Parameter Description
Refer to table 5.
Default
Informational
Command mode
Global configuration
Instruction
el
needed
- 61 -
Baisc Configuration Commands
condition
messages only
Example
logging 192.168.1.1
logging trap notifications
Related command
logging
Parameter
N/A
Default value
no logging command
Command mode
Example
Switch_config#logging command
Switch_config#Jul 11 15:26:56 %CMD-6-EXECUTE: `logging command ` return 0, switch(vty
0, 192.168.25.42).
- 62 -
Baisc Configuration Commands
Related command
logging
Parameter
N/A
Default value
no logging source-interface
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
alerts (need to act immediately).
Parameter
N/A
Default value
Command mode
- 63 -
Baisc Configuration Commands
Example
Related command
logging
This command is used to set the level of the historical log table to
critical.
Parameter
N/A
Default value
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
debugging.
Parameter
N/A
Default value
- 64 -
Baisc Configuration Commands
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
emergencies.
Parameter
N/A
Default value
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
errors.
Parameter
N/A
- 65 -
Baisc Configuration Commands
Default value
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
informational.
Parameter
N/A
Default value
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
notifications.
- 66 -
Baisc Configuration Commands
Parameter
N/A
Default value
Command mode
Example
Related command
logging
This command is used to set the level of the historical log table to
warnings.
Parameter
N/A
Default value
Command mode
Example
Related command
logging
- 67 -
Baisc Configuration Commands
Parameter
Parameter Description
<1-512> Stands for the number of logs which are exported each second.
Default value
Command mode
Example
Related command
logging
This command is used to set the number of entries in the historical log
table.
Parameter
Parameter Description
Default value
Command mode
Example
- 68 -
Baisc Configuration Commands
Related command
logging
Parameter
Parameter Description
uptime Duration between the startup of the switch and the current time
Default
Command mode
Global configuration
Instruction
- 69 -
Baisc Configuration Commands
Example
Parameter
None
Command mode
Management mode
Related command
logging buffered
show logging
Parameter
Parameter Description
Default
None
Command mode
Management mode
Instruction
- 70 -
Baisc Configuration Commands
Example
switch#sh break
Exception Type:1400-Data TLB error
BreakNum: 1 s date: 2000-1-1 time: 0:34:6
r0 r1 r2 r3 r4 r5 r6
00008538-01dbc970-0054ca18-00000003-80808080-fefefeff-01dbcca1-
r7 r8 r9 r10 r11 r12 r13
00000000-00009032-00000000-7ffffff0-00008588-44444444-0054c190-
r14 r15 r16 r17 r18 r19 r20
000083f4-000083f4-00000000-00000000-00000000-00000000-00000000-
r21 r22 r23 r24 r25 r26 r27
00000000-0000000a-00000001-00000000-00000000-004d6ce8-01dbd15c-
r28 r29 r30 r31 spr8 spr9 ip
00000002-00467078-00010300-00000300-00000310-00008588-00000370-
Variables :
00008538-44444444-01dbd15c-01dbcaac-00000002-00000000-004d6ce8-
01dbca18-
00008538 --- do_chram_mem_sys_addr---bspcfg.o
0001060c --- subcmd---cmdparse.o---libcmd.a
000083e4 --- do_chram_mem_sys---bspcfg.o
0000fb24 --- lookupcmd---cmdparse.o---libcmd.a
0000f05c --- cmdparse---cmdparse.o---libcmd.a
003e220c --- vty---vty.o---libvty.a
00499820 --- pSOS_qcv_broadcast---ksppc.o---os\libsys.a
3 BreakNum
It is the current abnormal number. It means the number of
abnormalities that the system has since it is powered on in the latest
time. It is followed by the time when the abnormality occurs.
- 71 -
Baisc Configuration Commands
5 Variable area
The content in the stack is listed out.
Parameter
None
Command mode
Management mode
Example
Crypto Subsystem:
Crypto Ipsec debugging is on
Crypto Isakmp debugging is on
Crypto Packet debugging is on
Related command
debug
- 72 -
Baisc Configuration Commands
Parameter
None
Command mode
Management mode
Instruction
Example
Related command
clear logging
- 73 -
Baisc Configuration Commands
Command description
ip sshd enable
no ip sshd enable
Parameter
None
Default
1024 bits
Instruction
It is used to generate the rsa encryption key and then monitor the
connection to the ssh server. The process of generating encryption key
is a process of consuming the calculation time. It takes one or two
minutes.
Command mode
Example
Command description
Parameter
Parameter Description
- 74 -
Baisc Configuration Commands
approval
Default
180 seconds
Instruction
Command mode
Example
Command description
Parameter
Parameter Description
Default
Instrunction
The ssh server uses the authentication method list of the login type.
- 75 -
Baisc Configuration Commands
Command mode
Example
Command description
Parameter
Parameter Description
Default
Instrunction
It is used to configure the access control list for the ssh server. Only
the connections complying with the regulations in the access control
list can be approved.
Command mode
Example
- 76 -
Baisc Configuration Commands
Command description
Parameter
Parameter Description
Default
3 times
Instrunction
Command mode
Example
Command description
ip sshd clear ID
Parameter
Parameter Description
- 77 -
Baisc Configuration Commands
Default
N/A
Instruction
Command mode
Example
Syntax
Parameter
Parameter Description
time-length Means the time of the silence, which ranges from 0 to 3600.
Default value
60s
Remarks
This command is used to set the login silence period. After the
accumulated login failures exceed a certain threshold, the system
regards that there exist attacks and disables the SSH service in a
period of time, that is, the system enters the login silence period.
The silence period is set by the ip sshd silence-period command.
The default silence period is 60 seconds. The allowable login failures
are set by the ip sshd auth-retries command, whose default value is
6.
- 78 -
Baisc Configuration Commands
Command mode
Example
The following example shows how to set the silence period to 200
seconds.
switch_config#ip sshd silence-period 200
Syntax
ip sshd sftp
no ip sshd sftp
Parameter
N/A
Default value
N/A
Remarks
Command mode
Example
Syntax
ip sshd save
- 79 -
Baisc Configuration Commands
no ip sshd save
Parameter
N/A
Default value
N/A
Remarks
This command is used to save the initial key. When the SSH server is
restarted, the key will be first read from the flash; if the key reading is
successful, the recalculation of key will be avoided and the startup time
will be shortened.
Command mode
Example
Syntax
ip sshd disable-aes
no ip sshd disable-aes
Parameter
N/A
Default value
Remarks
- 80 -
Baisc Configuration Commands
Command mode
Example
4.1.11 ssh
Command description
Parameter
Parameter Description
numberofpasswdpr Actual re-authentication times is the set value plus the smallest value set
ompts on the server. Its default value is three times.
Default
N/A
- 81 -
Baisc Configuration Commands
Instruction
Command mode
Privileged mode
Example
Command description
show ssh
Parameter
None
Default value
N/A
Instrunction
Command mode
Privileged mode
Example
In the following example, the sessions on the ssh server are displayed:
device#show ssh
- 82 -
Baisc Configuration Commands
Command description
show ip sshd
Parameter
None
Default value
N/A
Instrunction
Command mode
Privileged mode
Example
- 83 -