Download Print this page
D-Link DES-7200 Cli Reference Manual
D-Link DES-7200 Cli Reference Manual

D-Link DES-7200 Cli Reference Manual

Hide thumbs Also See for DES-7200:

Advertisement

DES-7200
Basic Configuration Command
Reference Guide
Version 10.4(3)
DES-7200 CLI Reference Guide
.
i

Advertisement

loading

Summary of Contents for D-Link DES-7200

  • Page 1 DES-7200 Basic Configuration Command Reference Guide Version 10.4(3) DES-7200 CLI Reference Guide...
  • Page 2 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 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 point size 10 is used for the body. Note: A line is added respectively above and below the prompts such as caution and note to separate them from the body.
  • Page 4 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: Warning, danger or alert in the operation. Caution Descript, prompt, tip or any other necessary supplement or explanation for the operation.
  • Page 5 DES-7200 CLI Reference Guide Chapter 1 CLI Authorization Configuration Commands CLI Authorization Configuration Commands 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 specified command or all the aliases under one mode.
  • Page 6 DES-7200 CLI Reference Guide Chapter 1 CLI Authorization Configuration Commands 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 command, and then type the rest part of the command.
  • Page 7 In the global configuration mode, use def-route to represent the default route setting of ip route 0.0.0.0 0.0.0.0 192.168.1.1: DES-7200# configure terminal DES-7200(config)# alias config def-route ip route 0.0.0.0 0.0.0.0 192.168.1.1 Examples DES-7200(config)#def-route? *def-route="ip route 0.0.0.0 0.0.0.0 192.168.1.1"...
  • Page 8 Set the password of CLI level 1 as test and attribute the reload rights to reset the device: DES-7200(config)#enable secret level 1 0 test DES-7200(config)#privilege exec level 1 reload Examples After the above setting, you can access the CLI window as level-1 user to use the reload command DES-7200>reload ?
  • Page 9: Show Aliases

    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 use all sub commands of the reload command: DES-7200>reload ?
  • Page 10 DES-7200 CLI Reference Guide Chapter 1 CLI Authorization Configuration Commands exec mode alias: help ping show undebug 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 Switch Management Configuration Commands 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 disable .
  • Page 12 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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...
  • Page 13 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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.
  • Page 14 "password" type password and security encryption for the "security" type password. The example below configures the security password as Examples pw10: DES-7200(config)# enable secret 0 pw10 Command Description Related enable Set passwords for different privilege...
  • Page 15 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Enable HTTP Server, and the IPv4 and IPv6 services are enabled at the same web-server time. Enable SNMP Agent, and the IPv4 and snmp-agent IPv6 services are enabled at the same time.
  • Page 16 The execution result is as below: Examples DES-7200# execute flash:line_rcms_script.text executing script file line_rcms_script.text ..executing done DES-7200# configure terminal Enter configuration commands, one per line. End with CNTL/Z. DES-7200(config)# line tty 1 16 DES-7200(config-line)# transport input all DES-7200(config-line)# no exec DES-7200(config-line)# end...
  • Page 17 Use the no ip http authentication guidelines command to restore it to the default setting. The example below sets the mode of Web logon Examples authentication as local: DES-7200(Config)# ip http authentication local Command Description Related Enable disable specified...
  • Page 18 Usage Use the no ip http port command to restore it to the guidelines default setting. The example below set the port of the HTTP service as 8080: Examples DES-7200(Config)# ip http port 8080 Command Description Related Enable disable specified...
  • Page 19 The example below specifies the IP address of the interface Loopback1 as the source address for the global Examples Telnet connection. DES-7200(Config)# ip telnet source-interface Loopback 1...
  • Page 20 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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.
  • Page 21 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Command Description Related Set to support the terminal lock commands lockable 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 configuration mode.
  • Page 22 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 logon password authentication.
  • Page 23: Login Local

    The example below shows how to associate method list on VTY and perform logon authentication with radius. DES-7200(config)# aaa new-model Examples DES-7200(config)# aaa authentication login default radius DES-7200(config)# line vty 0 DES-7200(config-line)# login authentication default Command Description aaa new-model...
  • Page 24 The example below shows how to set the local user authentication on VTY. DES-7200(config)# no aaa new-model Examples DES-7200(config)# username test password 0 test DES-7200(config)# line vty 0 DES-7200(config-line)# login local Command Description Related...
  • Page 25 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Command Description Related From user mode enter to the privileged mode commands login or log on the higher level of authority. 2.1.17 privilege mode Please refer to the chapter of configure CLI authorization commands.
  • Page 26 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 Usage service password-encryption and show running or...
  • Page 27 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands This command is used to log in a telnet server. Usage guidelines The /ipv6 keyword is only applied to the IPv6 supported devices. Caution The example below commands telnet to 192.168.1.11, the...
  • Page 28 7 only when the encrypted password is copied and pasted. The example below configures a username and password and bind the user to level 15. Examples DES-7200(config)# username test privilege 15 password 0 pw15 Command Description Related commands...
  • Page 29: Banner Motd

    The following example shows the configuration of logging Examples banner: DES-7200(config)# banner login $ enter your password $ 2.2.2 banner motd To set the Message-of-the-Day (MOTD), run the banner motd command in the global configuration mode.
  • Page 30 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands no boot config Parameter Description Prefix of file system type. Note that prefix can be used to locate and Parameter prefix: access files in V10.4(2) or later description versions. Refer to File System Configuration Guide for details.
  • Page 31 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 config command is not configured, the...
  • Page 32 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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.
  • Page 33 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands The following example configures a local IP for TFTP transmission during device booting: Examples DES-7200(config)# boot ip 192.168.7.11 Command Description Related Show the boot related configuration of commands show boot the device.
  • Page 34 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 service config command is not configured, the...
  • Page 35 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Show the boot related configuration of show boot the device. Set the device’s boot configuration boot config filename. Configure the local IP for TFTP boot ip transmission during device booting.
  • Page 36 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 priority levels in the descending order (1 as the top priority and 10 as the lowest priority) during the boot stage.
  • Page 37 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-7200(config)# boot system 8 flash:/firmware_bak.bin As “flash:/firmware.bin” is of a higher priority lever, the device will first boot this file.
  • Page 38 Once the device powers off, the manually set time becomes invalid. The example below configures the current time as 10:20:30AM March 17 2003. Examples DES-7200# clock set 10:20:30 Mar 17 2003 DES-7200# show clock clock: 2003-3-17 10:20:32 Command Description Related...
  • Page 39 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands clock update-calendar Parameter description N/A. Command Privileged EXEC mode. mode Some platforms use hardware clock to complement software clock. Since battery enables hardware clock to run continuously, even though the device is closed or restarts, hardware clock still runs.
  • Page 40 63 characters. Default configuration The default hostname is DES-7200. Command Global Configuration Mode. mode This hostname is mainly used to identify the device and is Usage taken as the username for the local device in the dialup guidelines and CHAP authentication.
  • Page 41 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 command.
  • Page 42 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands cancel Cancel scheduled restart. Command mode Privileged mode. Usage This command is used to restart the device at specified guidelines time, which may facilitate the management. 2.2.13 service config This command is used to enable the device to first download the boot configuration file from a remote network server.
  • Page 43 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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.2.14 session-timeo 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 cancelled, the session will never be timeout.
  • Page 45 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Command Global configuration mode. mode Default Configuration The default rate is 9600. Usage This command sets the speed at which the terminal guidelines transmits packets. The following example shows how to configure the rate of...
  • Page 46 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Despite of the alternative command, these commands have been widely used and accepted, so they are Usage reserved to facilitate user's operation. guidelines The no form with the command is equivalent to add the memory operation.
  • Page 47 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands Showing Related Commands 2.3.1 show boot Use this command to show the boot related configuration of the device. show boot {config | network |system | ip} Parameter Description Show configuration config startup-config filename.
  • Page 48 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 boot system Boot system config:...
  • Page 49 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands DES-7200# show mainfile Examples MainFile name: /firmware.bin Command Description Related Set the filename of the boot main commands boot system program. 2.3.3 show clock To view the system time, execute the privileged user command show clock.
  • Page 50: Show Reload

    Usage This command shows the configuration information of a guidelines line. The following example shows the configuration of console port: DES-7200# show line console 0 Type speed Overruns 9600 45927 Line 0, Location: "", Type: "vt100" Length: 24 lines, Width: 79 columns...
  • Page 51: Show Version

    DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands 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 To show the configuration information current device system is running, execute the privileged user command show running-config.
  • Page 52 The example below shows the system information. DES-7200# show clock detail clock: 2003-3-17 10:27:21 Clock read from calendar when system boot. DES-7200# show version System description : DES-7200 Dual Stack Multi-Layer Switch By D-Link Corporation Examples System start time: 1970-6-14 11:49:53 System uptime: 3:17:1:17 System hardware version: 2.0...
  • Page 53 DES-7200 CLI Reference Guide Chapter 2 Switch Management Configuration Commands https server status: enabled https server port: 443...
  • Page 54 DES-7200 CLI Reference Guide Chapter 3 SSH Configuration Commands Configuration Commands Related Configuration Commands 3.1.1 crypto key generate In global configuration mode, use this command to generate a public key on the SSH server: crypto key generate {rsa|dsa} Parameter Description Parameter Generate an RSA key.
  • Page 55: Crypto Key

    DES-7200 CLI Reference Guide Chapter 3 SSH Configuration Commands DES-7200# configure terminal Examples DES-7200(config)# crypto key generate rsa Command Description Show the current status of the SSH show ip ssh Related Server. commands crypto Delete DSA and RSA keys and...
  • Page 56 SSH Server. The following example sets the authentication retry times to 2: Examples DES-7200# configure terminal DES-7200(config)# ip ssh authentication-retries 2 Command Description Related Show the current status of the SSH commands show ip ssh Server.
  • Page 57 Use the show ip ssh command to view the configuration of the SSH server. The following example sets the timeout value as 100s: Examples DES-7200# configure terminal DES-7200(config)# ip ssh time-out 100 Command Description Related Show the current status of the SSH...
  • Page 58 SSH Server. Use the show ip ssh command to show the current status of SSH Server. The following example sets the version of the SSH Server: Examples DES-7200# configure terminal DES-7200(config)# ip ssh version 2 Command Description Related Show the current status of the SSH...
  • Page 59 SSH connection or disconnect a SSH connection by Usage entering specified connection Only guidelines connections of the SSH type can be disconnected. DES-7200# disconnect ssh 1 Examples DES-7200# disconnect ssh vty 1 Command Description Show information about Related show ssh established SSH connection. commands clear line vty Disconnect the current VTY connection.
  • Page 60 Usage public key part of the generated public key on the SSH guidelines Server, including key generation time, key name, contents in the public key part, etc. Examples DES-7200# show crypto key mypubkey rsa Command Description Related crypto key commands generate {rsa | Generate DSA and RSA keys.
  • Page 61 DES-7200 CLI Reference Guide Chapter 3 SSH Configuration Commands Examples DES-7200# show ip ssh Command Description Configure the version for the SSH ip ssh version {1 | 2} Server. Related Set the authentication timeout for commands ip ssh time-out time the SSH Server.
  • Page 62 DES-7200 CLI Reference Guide Chapter 4 LINE Configuration Commands LINE Configuration Commands Configuration Related Commands 4.1.1 access-class Set the applied ACL (Access Control List) in Line. Use the access-class { access-list-number | access-list-name } { in | out } command to configure the ACL in Line.
  • Page 63 Line. In line vty 0 4, configure access-list for the accepted connections to 10: Examples DES-7200# configure terminal DES-7200(config)# line vty 0 4 DES-7200(config-line)# access-class 10 in Command Description Related commands show running Show status information 4.1.2...
  • Page 64 DES-7200 CLI Reference Guide Chapter 4 LINE Configuration Commands 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.
  • Page 65 LINE mode. The setting result is the same as that of transport input none. Specify that only the Telnet protocol is allowed to login in line vty 0 4: Examples DES-7200# configure terminal DES-7200(config)# line vty 0 4 DES-7200(config-line)# transport input telnet...
  • Page 66 DES-7200 CLI Reference Guide Chapter 4 LINE Configuration Commands Command Description Related commands show running Show status information...
  • Page 67 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands Network Connectivity Test Tool Configuration Commands Configuration Related Commands 5.1.1 ping Use this command to test the connectivity of a network to locate the network connectivity problem. The command format is as follows:...
  • Page 68 Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/10 ms The example below shows the extension ping. Examples DES-7200# ping 192.168.5.197 length 1500 ntimes 100 timeout 3 Sending 100, 1500-byte ICMP Echoes to 192.168.5.197, timeout is 3 seconds, data ffff source 192.168.4.10: <...
  • Page 69 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands 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 times] [timeout seconds]...
  • Page 70 Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/10 ms Examples The example below shows the extension ping ipv6. DES-7200# ping ipv6 2000::1 length 1500 ntimes 100 timeout 3 data ffff source 192.168.4.10: Sending 100, 1500-byte ICMP Echoes to 2000::1, timeout is 3 seconds <...
  • Page 71 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands traceroute [vrf vrf-name | ip] [ip-address [probe number ] [source source] [timeout seconds] [ttl minimum maximum]] Parameter Description vrf-name VRF name ip-address Specifies an IPv4 address. Specifies the number of probe packets number to be sent.
  • Page 72 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands 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.
  • Page 73 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands 219.142.11.10 40 msec 50 msec 30 msec 211.157.37.14 50 msec 40 msec 50 msec 222.35.65.1 40 msec 50 msec 40 msec 222.35.65.18 40 msec 40 msec 40 msec 222.35.15.109...
  • Page 74 DES-7200 CLI Reference Guide Chapter 5 Network Connectivity Test Tool Configuration Commands DES-7200# traceroute ipv6 3004::1 < press Ctrl+C to break > Tracing the route to 3004::1 3000::1 0 msec 0 msec 0 msec 3001::1 4 msec 4 msec 4 msec...