D-Link DES-7200 Cli Reference Manual

Manual is about: D-Link Systems Network Router User Manual

Summary of DES-7200

  • Page 1

    . I des-7200 basic configuration command reference guide version 10.4(3) des-7200 cli reference guide.

  • Page 2

    . Ii revision no.: version 10.4(3) date: copyright statement d-link corporation ©2011 all rights reserved. Without our written permission, this document may not be excerpted, reproduced, transmitted, or otherwise in all or in part by any party in any means..

  • Page 3: Preface

    . Iii preface version description this manual matches the firmware version 10.4(3). Target readers this manual is intended for the following readers: network engineers technical salespersons network administrators conventions in this document 1. Universal format convention arial: arial with the poin...

  • Page 4

    . Iv 3. Signs various striking identifiers are adopted in this manual to indicate the matters that special attention should be paid in the operation, as detailed below: caution warning, danger or alert in the operation. Note descript, prompt, tip or any other necessary supplement or explanation for ...

  • Page 5: Cli Authorization

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-1 1 cli authorization configuration commands 1.1 alias you can use the alias command to configure an alias of a command in the global configuration mode. Use the no form of the command to remove the alias of a specif...

  • Page 6

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-2 un undebug the default alias cannot be deleted by the no alias exec command. By setting the alias, you can use a word to replace a command. For example, you can create an alias to represent the first part of a comm...

  • Page 7

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-3 interface configuration mode, then: des-7200(config-if)#ia ? A.B.C.D ip address dhcp ip address via dhcp des-7200(config-if)# ip address the above help information lists the parameters of ip address and shows the a...

  • Page 8

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-4 (0–15) of a command or sub-commands reset restore the command execution rights to its default level command-string: command string to be authorized default settings n/a. Command mode global configuration mode. Usag...

  • Page 9

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-5 you can use the key word all to attribute all sub-commands of reload to level-1 users: des-7200(config)# privilege exec all level 1 reload after the above setting, you can access the cli window as level-1 user to u...

  • Page 10

    Des-7200 cli reference guide chapter 1 cli authorization configuration commands . 1-6 exec mode alias: h help p ping s show u undebug un undebug command description related commands alias set the alias of a command..

  • Page 11: Switch Management

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-1 2 switch management configuration commands 2.1 user management related commands 2.1.1 disable to exit from privileged user mode to normal user mode or lower the privilege level, execute the privileged user command ...

  • Page 12

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-2 2.1.2 enable to enter into the privileged user mode, execute the normal user configuration command enable. For the details of the command, see the security configuration command reference. 2.1.3 enable password to ...

  • Page 13

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-3 usage guidelines no encryption is required in general. The encryption type is required generally when the password that has been encrypted with the command for the device are to be copies and pasted. The effective ...

  • Page 14

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-4 command mode global configuration mode. Usage guidelines the password falls into "password" and "security" passwords. The "password" is simple encryption password, which can be set only for level 15. The "security"...

  • Page 15

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-5 web-server enable http server, and the ipv4 and ipv6 services are enabled at the same time. Snmp-agent enable snmp agent, and the ipv4 and ipv6 services are enabled at the same time. Command mode global configurati...

  • Page 16

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-6 usage guidelines this command is used to execute the commands in the batch files. Users could self-specify the filename and content of the batch file. In general, after finishing editting the batch files on the use...

  • Page 17

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-7 2.1.7 ip http authenticatio n when using the http server, it needs to perform the logon authentication to enter the web page. Use this command to set the mode of web logon authentication. Ip http authentication {en...

  • Page 18

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-8 keyword description parameter description number port number of the http server, the default value is 80. Default configuration 80 command mode global configuration mode. Usage guidelines this command is used to se...

  • Page 19

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-9 usage guidelines this command is used to configure the port for https services. The no form of this command is used to restore the default port configuration. Examples the example below sets the port for https serv...

  • Page 20

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-10 command description related commands telnet log in a telnet server 2.1.11 lock to set a temporary password at the terminal, execute the exec mode command lock. Lock parameter description n/a. Command mode privileg...

  • Page 21

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-11 command description related commands lockable set to support the terminal lock function in the line. 2.1.12 lockable to support the use of the lock command at the terminal, execute the lockable command in the line...

  • Page 22

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-12 2.1.13 login in case the aaa is disabled, to enable simple logon password authentication on the interface, execute the interface configuration command login. The no form of this command is used to delete the line ...

  • Page 23

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-13 parameter description default name of the default authentication method list parameter description list-name name of the method list available command mode line configuration mode. Usage guidelines if the aaa secu...

  • Page 24

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-14 usage guidelines if the aaa security server is not enabled, this command is used for the local user authentication at logon. The user here means the one configured with the username command. Examples the example b...

  • Page 25

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-15 command description related commands login from user mode enter to the privileged mode or log on the higher level of authority. 2.1.17 privilege mode please refer to the chapter of configure cli authorization comm...

  • Page 26

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-16 usage guidelines this command is disabled by default. Various passwords are displayed in form of plain text, unless it is directly configured in cipher text form. After you execute the service password-encryption ...

  • Page 27

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-17 usage guidelines this command is used to log in a telnet server. Caution the /ipv6 keyword is only applied to the ipv6 supported devices. Examples the example below commands telnet to 192.168.1.11, the port uses t...

  • Page 28

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-18 command mode global configuration mode. This command is used to establish local user database for the purpose of authentication. Usage guidelines note if the type of encryption is specified as 7, the length of the...

  • Page 29

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-19 command mode global configuration mode. Usage guidelines this command sets the logging banner message, which is displayed upon login. All characters behind the terminating symbol will be discarded by the system. E...

  • Page 30

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-20 no boot config parameter description prefix: prefix of file system type. Note that prefix can be used to locate and access files in v10.4(2) or later versions. Refer to file system configuration guide for details....

  • Page 31

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-21 usage guidelines this command is used to specify the device’s boot configuration filename. When booting the device, the system loads configuration file according to the following principles:  if the service confi...

  • Page 32

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-22 2.2.4 boot ip this command is used to configure a local ip for tftp transmission during device booting. The no form of this command is used to delete the configuration. Boot ip local-ip [gateway gateway-ip mask ma...

  • Page 33

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-23 examples the following example configures a local ip for tftp transmission during device booting: des-7200(config)# boot ip 192.168.7.11 command description related commands show boot show the boot related configu...

  • Page 34

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-24 usage guidelines this command is used to specify the device’s network boot configuration filename. When booting the device, the system loads the configuration file according to the following principles:  if the s...

  • Page 35

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-25 show boot show the boot related configuration of the device. Boot config set the device’s boot configuration filename. Boot ip configure the local ip for tftp transmission during device booting. Service config all...

  • Page 36

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-26 usage guidelines this command can be used to set filenames for multiple main programs used for booting and specify the booting priority. The system will attempt to boot the main programs according to their priorit...

  • Page 37

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-27 examples example 1: configure the name of the main program to “flash:/firmware.Bin” and the name of the backup main program to “flash:/ firmware_bak.Bin”. Des-7200(config)# boot system 5 flash:/firmware.Bin des-72...

  • Page 38

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-28 2.2.7 clock set to configure system clock manually, execute one of the two formats of the privileged user command clock set: clock set hh:mm:ss month day year parameter description hh:mm:ss current time, in the fo...

  • Page 39

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-29 clock update-calendar parameter description n/a. Command mode privileged exec mode. Usage guidelines some platforms use hardware clock to complement software clock. Since battery enables hardware clock to run cont...

  • Page 40

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-30 specified timeout. Default configuration the default timeout is 10min. Command mode line configuration mode. Usage guidelines if there is no input/output information for this connection within specified time, this...

  • Page 41

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-31 des-7200(config)# hostname beijingagenda beijingagenda(config)# 2.2.11 prompt to set the prompt command, run the prompt command in the global configuration mode. To delete the prompt setting, run the no prompt com...

  • Page 42

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-32 cancel cancel scheduled restart. Command mode privileged mode. Usage guidelines this command is used to restart the device at specified time, which may facilitate the management. 2.2.13 service config this command...

  • Page 43

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-33 usage guideline s this command needs to be used in combination with the boot config and boot network commands. When booting the device, the system loads the configuration file according to the following principles...

  • Page 44

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-34 2.2.14 session-timeo ut to configure the session timeout for the remote terminal established in current line, use the session-timeout command.When the session timeout for the remote terminal in the line is cancell...

  • Page 45

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-35 command mode global configuration mode. Default configuration the default rate is 9600. Usage guidelines this command sets the speed at which the terminal transmits packets. Examples the following example shows ho...

  • Page 46

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 2-36 usage guidelines despite of the alternative command, these commands have been widely used and accepted, so they are reserved to facilitate user's operation. The no form with the command is equivalent to add the me...

  • Page 48

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 38 des-7200# show boot network network config file: [tftp://192.168.7.24/config.Text] service config: [enabled] 3.The example below shows the configuration of the main program filename and boot priority: des-7200# show...

  • Page 49

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 39 examples des-7200# show mainfile mainfile name: /firmware.Bin command description related commands boot system set the filename of the boot main program. 2.3.3 show clock to view the system time, execute the privile...

  • Page 50

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 40 vty show the configuration of a vty line. Line-num number of the line command mode privileged mode. Usage guidelines this command shows the configuration information of a line. Examples the following example shows t...

  • Page 51

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 41 des-7200# show reload reload scheduled in 595 seconds. At 2003-12-29 11:37:42 reload reason: test. 2.3.6 show running-confi g to show the configuration information current device system is running, execute the privi...

  • Page 52

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 42 command mode privileged mode usage guidelines this command is used to view current system information, mainly including the system start time, version information, device information, serial number ,etc. Examples th...

  • Page 53

    Des-7200 cli reference guide chapter 2 switch management configuration commands . 43 https server status: enabled https server port: 443.

  • Page 57

    Des-7200 cli reference guide chapter 3 ssh configuration commands . 3-4 3.1.4 ip ssh time-out use this command to set the authentication timeout for the ssh server. Use the no form of this command to restore it to the default setting. Ip ssh time-out time no ip ssh time-out parameter description par...

  • Page 58

    Des-7200 cli reference guide chapter 3 ssh configuration commands . 3-5 parameter description 1 support the ssh1 client connection request. Parameter description 2 support the ssh2 client connection request. Default configuration ssh1 and ssh2 are compatible by default. When a version is set, the co...

  • Page 59

    Des-7200 cli reference guide chapter 3 ssh configuration commands . 3-6 parameter description parameter description session-id id of the established ssh connection session. Default configuration n/a. Command mode privileged exec mode. Usage guidelines you can disconnect a ssh connection by entering ...

  • Page 60

    Des-7200 cli reference guide chapter 3 ssh configuration commands . 3-7 default configuration n/a. Command mode privileged exec mode. Usage guidelines this command is used to show the information about the public key part of the generated public key on the ssh server, including key generation time, ...

  • Page 63

    Des-7200 cli reference guide chapter 4 line configuration commands . 4-2 filtering can be established successfully. Use the show running command to view configuration information under line. Examples in line vty 0 4, configure access-list for the accepted connections to 10: des-7200# configure termi...

  • Page 64

    Des-7200 cli reference guide chapter 4 line configuration commands . 4-3 commands 4.1.3 line vty this command can be used to increase the number of vty connections currently available. The number of currently available vty connections can be decreased by using the no form of this command. Line vty l...

  • Page 65

    Des-7200 cli reference guide chapter 4 line configuration commands . 4-4 parameter description all allow all the protocols under line to be used for communication ssh allow only the ssh protocol under line to be used for communication telnet allow only the telnet protocol under line to be used for c...

  • Page 66

    Des-7200 cli reference guide chapter 4 line configuration commands . 4-5 command description related commands show running show status information.

  • Page 67: Configuration Commands

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-1 5 network connectivity test tool configuration commands 5.1 configuration related commands 5.1.1 ping use this command to test the connectivity of a network to locate the network connectivity problem. ...

  • Page 68

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-2 command mode privileged mode. Usage guidelines the ping command can be used in the ordinary user mode and the privileged mode. In the ordinary mode, only the basic functions of ping are available. In t...

  • Page 69

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-3 5.1.2 ping ipv6 use this command to test the connectivity of a network to locate the network connectivity problem. The command format is as follows: ping [ipv6] [ipv6-address [length length ] [ntimes t...

  • Page 70

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-4 usage guidelines the ping ipv6 command can be used in the ordinary user mode and the privileged mode. In the ordinary mode, only the basic functions of ping ipv6 are available. In the privileged mode, ...

  • Page 72

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-6 from above result, it’s clear to know that the gateways passed by the packets sent to the host with an ip address of 61.154.22.36 (gateways 1~6) and the spent time are displayed. Such information is he...

  • Page 73

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-7 12 219.142.11.10 40 msec 50 msec 30 msec 13 211.157.37.14 50 msec 40 msec 50 msec 14 222.35.65.1 40 msec 50 msec 40 msec 15 222.35.65.18 40 msec 40 msec 40 msec 16 222.35.15.109 50 msec 50 msec 50 msec...

  • Page 74

    Des-7200 cli reference guide chapter 5 network connectivity test tool configuration commands . 5-8 des-7200# traceroute ipv6 3004::1 tracing the route to 3004::1 1 3000::1 0 msec 0 msec 0 msec 2 3001::1 4 msec 4 msec 4 msec 3 3002::1 8 msec 8 msec 4 msec 4 3004::1 4 msec 28 msec 12 msec from above r...