- •1.1 Configuring File Management Commands
- •1.1.1 Copy
- •1.1.2 Delete
- •1.1.4 ip address
- •1.1.5 ip route
- •1.1.6 show configuration
- •1.1.7 format
- •1.1.8 more
- •1.2 BasicSystemManagementCommands
- •1.2.1 boot flash
- •1.2.3 chinese
- •1.2.4 chram
- •1.2.5 date
- •1.2.6 english
- •1.2.10 rename
- •1.2.11 reboot
- •1.2.12 alias
- •1.2.13 boot system flash
- •1.2.14 help
- •1.2.15 history
- •1.2.16 show alias
- •1.2.17 show job
- •1.2.18 show break
- •1.2.19 show memory
- •1.3 HTTP Configuration Command
- •1.3.1 ip http access-class
- •1.3.2 ip http port
- •1.3.3 ip http server
- •1.3.4 debug ip http
- •Chapter 2 Terminal Service Configuration Command
- •2.1 Telnet Configuration Command
- •2.1.1 telnet
- •2.1.2 ip telnet
- •2.1.4 where
- •2.1.5 resume
- •2.1.6 disconnect
- •2.1.7 switchkey
- •2.1.8 switchmsg
- •2.1.9 sequence-char
- •2.1.10 clear telnet
- •2.1.11 show telnet
- •2.1.12 debug telnet
- •2.2 Terminal Configuration Command
- •2.2.1 attach-port
- •2.2.2 autocommand
- •2.2.3 clear line
- •2.2.4 connect
- •2.2.5 disconnect
- •2.2.6 exec-timeout
- •2.2.7 length
- •2.2.8 line
- •2.2.9 location
- •2.2.10 login authentication
- •2.2.11 monitor
- •2.2.12 no debug all
- •2.2.13 password
- •2.2.14 resume
- •2.2.15 switchkey
- •2.2.16 sequence-char
- •2.2.17 show debug
- •2.2.18 show line
- •2.2.19 switchmsg
- •2.2.20 terminal length
- •2.2.21 terminal monitor
- •2.2.22 terminal width
- •2.2.23 terminal-type
- •2.2.24 where
- •2.2.25 width
- •3.1 SNMP Commands
- •3.1.1 snmp-server community
- •3.1.2 snmp-server contact
- •3.1.4 snmp-server location
- •3.1.5 snmp-server packetsize
- •3.1.6 snmp-server queue-length
- •3.1.7 snmp-server trap-source
- •3.1.8 snmp-server trap-timeout
- •3.1.11 snmp-server source-addr
- •3.1.12 snmp-server encryption
- •3.1.13 show snmp
- •3.1.14 debug snmp
- •3.2 Configuring RMON Commands
- •3.2.1 rmon alarm
- •3.2.2 rmon event
- •3.2.3 rmon collection stat
- •3.2.4 rmon collection history
- •3.2.5 show rmon
- •3.3 Configuring PDP Commands
- •3.3.1 pdp timer
- •3.3.2 pdp holdtime
- •3.3.3 pdp version
- •3.3.5 pdp enable
- •3.3.6 show pdp traffic
- •3.3.7 show pdp neighbour
- •4.1 Network Testing Tool Commands
- •4.1.1 ping
- •4.2 System Debugging Commands
- •4.3 Fault Diagnosis Commands
- •4.3.1 logging
- •4.3.2 logging buffered
- •4.3.3 logging console
- •4.3.4 logging facility
- •4.3.5 logging monitor
- •4.3.6 logging on
- •4.3.7 logging trap
- •4.3.8 service timestamps
- •4.3.9 clear logging
- •4.3.10 show break
- •4.3.11 show controller
- •4.3.12 show debug
- •4.3.13 show logging
- •Chapter 5 SSH Configuration Commands
- •5.1.1 ip sshd enable
- •5.1.2 ip sshd timeout
- •5.1.3 ip sshd auth-method
- •5.1.4 ip sshd access-class
- •5.1.5 ip sshd auth-retries
- •5.1.6 ip sshd clear
- •5.1.8 show ssh
- •5.1.9 show ip sshd
- •Chapter 6 Other system Command
- •6.1 The link scan command
Basic Configuration Commands
|
Table of Contents |
Table of Contents |
|
Chapter 1 System Management Commands........................................................................................................................ |
1 |
1.1 Configuring File Management Commands............................................................................................................ |
1 |
1.1.1 Copy.......................................................................................................................................................... |
1 |
1.1.2 Delete........................................................................................................................................................ |
2 |
1.1.3 dir .............................................................................................................................................................. |
2 |
1.1.4 ip address.................................................................................................................................................. |
3 |
1.1.5 ip route ...................................................................................................................................................... |
3 |
1.1.6 show configuration .................................................................................................................................... |
4 |
1.1.7 format ........................................................................................................................................................ |
4 |
1.1.8 more .......................................................................................................................................................... |
5 |
1.2 BasicSystemManagementCommands .................................................................................................................. |
5 |
1.2.1 boot flash................................................................................................................................................... |
6 |
1.2.2 cd............................................................................................................................................................... |
7 |
1.2.3 chinese...................................................................................................................................................... |
7 |
1.2.4 chram ........................................................................................................................................................ |
8 |
1.2.5 date ........................................................................................................................................................... |
8 |
1.2.6 english....................................................................................................................................................... |
9 |
1.2.7 md ........................................................................................................................................................... |
10 |
1.2.8 pwd.......................................................................................................................................................... |
10 |
1.2.9 rd ............................................................................................................................................................. |
11 |
1.2.10 rename .................................................................................................................................................. |
11 |
1.2.11 reboot .................................................................................................................................................... |
12 |
1.2.12 alias....................................................................................................................................................... |
12 |
1.2.13 boot system flash .................................................................................................................................. |
13 |
1.2.14 help........................................................................................................................................................ |
14 |
1.2.15 history.................................................................................................................................................... |
14 |
1.2.16 show alias.............................................................................................................................................. |
15 |
1.2.17 show job ................................................................................................................................................ |
16 |
1.2.18 show break............................................................................................................................................ |
17 |
1.2.19 show memory........................................................................................................................................ |
17 |
1.3 HTTP Configuration Command ........................................................................................................................... |
18 |
1.3.1 ip http access-class................................................................................................................................. |
18 |
1.3.2 ip http port ............................................................................................................................................... |
19 |
1.3.3 ip http server............................................................................................................................................ |
19 |
1.3.4 debug ip http............................................................................................................................................ |
20 |
Chapter 2 Terminal Service Configuration Command........................................................................................................ |
21 |
2.1 Telnet Configuration Command ........................................................................................................................... |
21 |
2.1.1 telnet........................................................................................................................................................ |
21 |
2.1.2 ip telnet.................................................................................................................................................... |
23 |
2.1.3 ctrl-shift-6+x (the current connection is mounted) ................................................................................... |
24 |
2.1.4 where....................................................................................................................................................... |
25 |
2.1.5 resume .................................................................................................................................................... |
26 |
2.1.6 disconnect ............................................................................................................................................... |
27 |
- I -
|
Table of Contents |
2.1.7 switchkey................................................................................................................................................. |
28 |
2.1.8 switchmsg................................................................................................................................................ |
29 |
2.1.9 sequence-char......................................................................................................................................... |
29 |
2.1.10 clear telnet............................................................................................................................................. |
31 |
2.1.11 show telnet ............................................................................................................................................ |
32 |
2.1.12 debug telnet........................................................................................................................................... |
32 |
2.2 Terminal Configuration Command ....................................................................................................................... |
33 |
2.2.1 attach-port ............................................................................................................................................... |
34 |
2.2.2 autocommand.......................................................................................................................................... |
34 |
2.2.3 clear line.................................................................................................................................................. |
35 |
2.2.4 connect.................................................................................................................................................... |
35 |
2.2.5 disconnect ............................................................................................................................................... |
35 |
2.2.6 exec-timeout............................................................................................................................................ |
36 |
2.2.7 length....................................................................................................................................................... |
36 |
2.2.8 line........................................................................................................................................................... |
37 |
2.2.9 location.................................................................................................................................................... |
37 |
2.2.10 login authentication ............................................................................................................................... |
38 |
2.2.11 monitor................................................................................................................................................... |
38 |
2.2.12 no debug all........................................................................................................................................... |
38 |
2.2.13 password............................................................................................................................................... |
39 |
2.2.14 resume .................................................................................................................................................. |
39 |
2.2.15 switchkey............................................................................................................................................... |
40 |
2.2.16 sequence-char....................................................................................................................................... |
40 |
2.2.17 show debug........................................................................................................................................... |
41 |
2.2.18 show line ............................................................................................................................................... |
41 |
2.2.19 switchmsg.............................................................................................................................................. |
41 |
2.2.20 terminal length....................................................................................................................................... |
42 |
2.2.21 terminal monitor..................................................................................................................................... |
43 |
2.2.22 terminal width ........................................................................................................................................ |
43 |
2.2.23 terminal-type.......................................................................................................................................... |
44 |
2.2.24 where..................................................................................................................................................... |
44 |
2.2.25 width...................................................................................................................................................... |
45 |
Chapter 3 Network Management Configuration Commands .............................................................................................. |
46 |
3.1 SNMP Commands............................................................................................................................................... |
46 |
3.1.1 snmp-server community.......................................................................................................................... |
46 |
3.1.2 snmp-server contact................................................................................................................................ |
47 |
3.1.3 snmp-server host..................................................................................................................................... |
48 |
3.1.4 snmp-server location............................................................................................................................... |
49 |
3.1.5 snmp-server packetsize .......................................................................................................................... |
50 |
3.1.6 snmp-server queue-length ...................................................................................................................... |
50 |
3.1.7 snmp-server trap-source ......................................................................................................................... |
51 |
3.1.8 snmp-server trap-timeout ........................................................................................................................ |
52 |
3.1.9 snmp-server view .................................................................................................................................... |
52 |
3.1.10 snmp-server udp-port............................................................................................................................ |
54 |
3.1.11 snmp-server source-addr ...................................................................................................................... |
54 |
3.1.12 snmp-server encryption......................................................................................................................... |
55 |
- II -
|
Table of Contents |
3.1.13 show snmp ............................................................................................................................................ |
56 |
3.1.14 debug snmp........................................................................................................................................... |
58 |
3.2 Configuring RMON Commands........................................................................................................................... |
60 |
3.2.1 rmon alarm .............................................................................................................................................. |
60 |
3.2.2 rmon event .............................................................................................................................................. |
61 |
3.2.3 rmon collection stat ................................................................................................................................. |
62 |
3.2.4 rmon collection history............................................................................................................................. |
62 |
3.2.5 show rmon............................................................................................................................................... |
63 |
3.3 Configuring PDP Commands .............................................................................................................................. |
63 |
3.3.1 pdp timer ................................................................................................................................................. |
64 |
3.3.2 pdp holdtime............................................................................................................................................ |
64 |
3.3.3 pdp version.............................................................................................................................................. |
65 |
3.3.4 pdp run .................................................................................................................................................... |
65 |
3.3.5 pdp enable............................................................................................................................................... |
66 |
3.3.6 show pdp traffic ....................................................................................................................................... |
66 |
3.3.7 show pdp neighbour................................................................................................................................ |
67 |
Chapter 4 Maintenance and Debugging Tool Commands.................................................................................................. |
68 |
4.1 Network Testing Tool Commands ........................................................................................................................ |
68 |
4.1.1 ping.......................................................................................................................................................... |
68 |
4.2 System Debugging Commands........................................................................................................................... |
70 |
4.3 Fault Diagnosis Commands ................................................................................................................................ |
70 |
4.3.1 logging..................................................................................................................................................... |
70 |
4.3.2 logging buffered....................................................................................................................................... |
71 |
4.3.3 logging console ....................................................................................................................................... |
72 |
4.3.4 logging facility.......................................................................................................................................... |
73 |
4.3.5 logging monitor........................................................................................................................................ |
74 |
4.3.6 logging on................................................................................................................................................ |
75 |
4.3.7 logging trap.............................................................................................................................................. |
77 |
4.3.8 service timestamps.................................................................................................................................. |
78 |
4.3.9 clear logging............................................................................................................................................ |
78 |
4.3.10 show break............................................................................................................................................ |
79 |
4.3.11 show controller ...................................................................................................................................... |
80 |
4.3.12 show debug........................................................................................................................................... |
82 |
4.3.13 show logging ......................................................................................................................................... |
83 |
Chapter 5 SSH Configuration Commands.......................................................................................................................... |
84 |
5.1.1 ip sshd enable ......................................................................................................................................... |
84 |
5.1.2 ip sshd timeout ........................................................................................................................................ |
84 |
5.1.3 ip sshd auth-method................................................................................................................................ |
85 |
5.1.4 ip sshd access-class ............................................................................................................................... |
85 |
5.1.5 ip sshd auth-retries.................................................................................................................................. |
86 |
5.1.6 ip sshd clear ............................................................................................................................................ |
87 |
5.1.7 ssh........................................................................................................................................................... |
87 |
5.1.8 show ssh ................................................................................................................................................. |
88 |
5.1.9 show ip sshd............................................................................................................................................ |
89 |
Chapter 6 Other system Command.................................................................................................................................... |
90 |
- III -
Table of Contents
6.1 The link scan command....................................................................................................................................... |
90 |
- IV -
Baisc Configuration Commands
Chapter 1 System Management Commands
1.1Configuring File Management Commands
zcopy
zdelete
zdir
zip address
zip route
zshow configuration
zformat
zmore
1.1.1Copy
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 |
|
|
filename. If not specified the filename, the system will prompt |
|
|
user to input the filename after executing the copy command. |
|
|
|
|
flash <:filename> |
Write a file to the flash memory of the switch. Filename |
|
|
indicates the relevant filename. If not specified the filename, |
|
|
the system will prompt user to input the filename after executing |
|
|
the copy command. |
|
|
|
|
rom |
Updates bootrom for the switch. |
|
|
|
|
ip_addr |
Specifies the IP address of tftp srever. If not specified, the |
|
|
system will prompt user to input the IP address after executing |
|
|
the copy command. |
|
|
|
Default |
|
none
Command mode
monitor mode
Instrution
none
- 1 -
Baisc Configuration Commands
Example
monitor#copy tftp:switch.bin flash:switch.bin 192.2.2.1
The example shows how to read the switch.bin file from the tftp server to the flash memory of the switch.
Related commands
none
1.1.2Delete
To delete a file, use the delete command. delete file-name
Parameter
Parameter |
Description |
|
|
file-name |
Specifies the filename (maximum 20 characters) |
|
|
Default
If the file name is not specified, the system will delete the startup-config file by default.
Command mode
monitor mode
Instruction
none
Related commands
none
1.1.3dir
To display filename, use the dir command.
dir file-name
Parameter
Parameter |
Description |
|
|
file-name |
Specifies the filename (maximum 20 characters) |
|
|
- 2 -
Baisc Configuration Commands
Default
none
Command mode
monitor mode
Instruction
none
Related commands
none
1.1.4ip address
To set an IP address for an Ethernet interface, use the ip address command. ip address ip-address mask
Parameter
Parameter |
Description |
|
|
ip-address |
IP address |
|
|
mask |
IP network mask |
|
|
Default
none
Command mode
monitor mode
Instruction
none
Example
monitor#ip address 192.168.1.1 255.255.255.0
Related commands
ip route ping
1.1.5ip route
To specify a default gateway, use the ip route default command. ip route default gw_ip_addr
- 3 -
Baisc Configuration Commands
Parameter
Parameter |
Description |
|
|
gw_ip_addr |
Default gateway address |
|
|
Default
none
Command mode
monitor mode
Instrution
none
Example
monitor#ip route default 192.168.1.3
Related commands
ip address
1.1.6show configuration
To display the running configuration file, use the show configuration command. show configuration
Parameter
none
Default
none
Command mode
monitor mode
Instrution
none
Related commands
none
1.1.7format
To format file system, use the format command.
- 4 -