Page 3
RESTORATION, WORK STOPPAGE, LOSS OF SAVED DATA OR ANY OTHER COMMERCIAL DAMAGES OR LOSSES) RESULTING FROM THE APPLICATION OR IMPROPER USE OF THE D-LINK PRODUCT OR FAILURE OF THE PRODUCT, EVEN IF D-LINK IS INFORMED OF THE POSSIBILITY OF SUCH DAMAG ES. FURTHERMORE, D- LINK WILL NOT BE LIABLE FOR THIRD-PARTY CLAIMS AGAINST CUSTOMER FOR LOSSES OR DAMAGES.
Unified Services Router CLI Reference Guide Table of Contents Chapter 1. Introduction ..........................7 Accessing the CLI ..................... 7 Chapter 2. Basic commands available on the CLI ................8 CONTEXT SENSITIVE HELP ................. 8 AUTO-COMPLETION ....................8 MOVEMENT KEYS ....................8 DELETION KEYS .....................
Page 5
Unified Services Router CLI Reference Guide 8.17 net lan ipv6 pool delete <start_address> ............26 8.18 net mode configure ....................26 8.19 net port management configure <port_name> ........... 27 8.20 net radvd configure ....................27 8.21 net radvd pool add/edit ................... 28 8.22 net radvd pool delete <row_id>...
Unified Services Router CLI Reference Guide Chapter 1. Introduction This document describes the command line inter face (CLI) for managing D-Link's DSR- 1000N/1000/500N/500/250N/250 series of routers. The CLI user requires advanced knowledge about the configuration of the system and should be used only by those users who are familiar with CLI -based configuration.
Unified Services Router CLI Reference Guide Chapter 2. Basic commands available on the CLI 2.1 CONTEXT SENSITIVE HELP [?] - Display context sensitive help. This is either a list of possible command completions with summaries, or the full syntax of the current comm and. A subsequent repeat of this key, when a command has been resolved, will display a detailed reference.
Unified Services Router CLI Reference Guide 2.5 ESCAPE SEQUENCES !! - Substitute the last command line. !N - Substitute the Nth command line (absolute as per 'history' command). !-N - Substitute the command line entered N lines before (relative).
Unified Services Router CLI Reference Guide Chapter 3. Command Hierarchy in CLI 3.1 CLI commands can be divided into 4 categories: Global commands Show commands Utility commands Configuration commands 3.2 The router configuration is divided into 5 branches: ...
Unified Services Router CLI Reference Guide Chapter 4. Global commands used in .exit: Exit this session .help: Display an overview of the CLI syntax .top: Return to the default mode .reboot: Reboot the system. .history: Display the current session's command line history. Number of commands in history list can be controlled by setting limit argument;...
Unified Services Router CLI Reference Guide Chapter 5. Show commands used in The show commands for all the above mentione d branches are outlined in this section. The command show net ? at the CLI prompt would give the description of all the show commands in the branch net, which is as follows: Sl No Command Name...
Page 15
Unified Services Router CLI Reference Guide The command show security ? at the CLI prompt would give the description of all the show commands in the branch security, which is as follows: Sl No Command Name Purpose show security attack_checks setup Display Security Checks configuration show security blocked_keywords setup Display blocked keywords configuration...
Page 16
Unified Services Router CLI Reference Guide Sl No Command Name Purpose Show dot11 profile setup [profile_name] Display profile configuration [display_qos] The command show vpn ? at the CLI prompt would give the description of all the show commands in the branch vpn, which is as follows: Sl No Command Name Purpose...
Unified Services Router CLI Reference Guide Chapter 6. Utility commands used in The command util ? at the CLI prompt would give the description of all the utility commands in the branch util, which is as follows: Sl No Command Name Purpose util ping Ping or Trace an IP Address.
Page 18
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description between the destination IP address and IP address this router...
Unified Services Router CLI Reference Guide Chapter 7. Configure commands used in CLI The configure commands for all the branches mentioned above are discussed in this section. The command net ? at the CLI prompt would give the description of all the configuration commands in the branch net, which is as follows: Sl No Command Name...
Page 20
Unified Services Router CLI Reference Guide Sl No Command Name Purpose net bandwidth traffic_selector edit Traffic selector configuration edit mode net bandwidth traffic_selector delete Traffic selector configuration delete mode net upnp configure Upnp configuration mode net wan wan1 ipv4 configure Wan1 ipv4 configuration mode net wan ipv6 configure Wan ipv6 configuration mode...
Page 22
Unified Services Router CLI Reference Guide Sl No Command Name Purpose system users idle_timeout <timeout> Admin idle timeout configuration system users password <user_string> Users password configuration The command vpn ? at the CLI prompt would give the description of all the configurat ion commands in the branch vpn, which is as follows: Sl No Command Name...
Page 23
Unified Services Router CLI Reference Guide Sl No Command Name Purpose vpn sslvpn users domains edit Domains edit mode vpn sslvpn users domains delete Domains delete mode vpn sslvpn users groups add Groups add mode vpn sslvpn users groups edit Groups edit mode vpn sslvpn users groups delete Groups delete mode...
Unified Services Router CLI Reference Guide Chapter 8. Configuration commands under branch NET 8.1 net bandwidth profile enable Sl No Command Name Description Type and Description enable Enable or disable bandwidth profiles Boolean (Y/N) Enable/ Disable bandwidth profiles 8.2 net bandwidth profile add/edit Sl No Command Name Description...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description Password. wild_flag_enable Enable / Disable using wild cards Boolean (Y/N) Wildcard flag time_update_enable Set Timeperiod as 30 days Boolean (Y/N) Update for every 30 days or not cancel Roll back DDNS configuration changes exit...
Unified Services Router CLI Reference Guide 8.8 net lan dhcp reserved_ip add Sl No Command Name Description Type and Description mac_address Reserved mac address used to add/edit MAC address Reserved Mac address you want to add/edit ip_address IP Address to be reserved IP Address IP Address to be reserved cancel...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description and exit current mode save Save lan host configuration changes 8.13 net lan host delete <row_id> Sl No Command Name Description Type and Description row_id row id of lan host to be deleted Unsigned integer Row id number 8.14 net lan ipv4 configure...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description save Save LAN configuration changes 8.16 net lan ipv6 pool configure <start_address> Sl No Command Name Description Type and Description start_address Set dhcpv6 start IP address. IP address abcd:abcd:abcd:abcd:abcd:abcd:a bcd:abcd where each part is in the...
Unified Services Router CLI Reference Guide 8.19 net port management configure <port_name> Sl No Command Name Description Type and Description port_name port name LAN/WAN to manage Port name, dedicated port's Port1-LAN/Port2-WAN auto_negotiation_enable Select this to let the gateway and Boolean Choice (Y/N) network to determine the optimal port Enable/disable auto negotiation settings.
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description cancel Roll back radvd configuration changes exit Save radvd configuration changes and exit current mode Save Save radvd configuration changes 8.21 net radvd pool add/edit Sl No Command Name Description Type and Description...
Page 31
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description Enable or disable ripng status version Rip version Rip version type, Disabled/Rip1/Rip2B/Rip2M first_key authentication_id First MD5 Authentication Key String, Alphanumeric md5 authentication first_key id_number First MD5 Key Id Integer, Unique md5 key identifier first_key valid_from day...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description second_key valid_from second in which md5 authentication key Second in the format SS(00-59) second validity starts second_key valid_from year year in which md5 authentication key Year , valid range is 1970 to 2037 validity starts second_key valid_to day day in which md5 authentication key...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description interface Set interface for which the route is String, applied Valid strings (LAN/WAN) metric Set the metric for this route Integer value, Valid metric 2-15 private_flag Defines whether the route can be Boolean Choice (Y/N), shared with other gateways when RIP...
Unified Services Router CLI Reference Guide 8.28 net routing static ipv6 delete <name> Sl No Command Name Description Type and Description name Unique route name String, Route name 8.29 net upnp configure Sl No Command Name Description Type and Description advertisement period UPnP Advertisement Period UPnP Advertisement Period.
Page 35
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description loadbalancing Set WAN3 DNS IP Valid ip address, failover_method dns valid wan3 dns ip n load balancing ipaddr_wan3 mode loadbalancing Set WAN1 PING IP Valid ip address, failover_method ping valid wan1 ip in load balancing ipaddr_wan1...
Unified Services Router CLI Reference Guide 8.31 net wan configurable_port configure Sl No Command Name Description Type and Description port_name Select the configurable port type Select from the wan2 or dmz 8.32 net wan wan1 ipv4 configure Sl No Command Name Description Type and Description dhcpc mac_address...
Page 37
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description where each part is in the range 0- l2tp username Enter the username to log in String, Alphanumeric username l2tp split_tunnel Set Split Tunnel Mode Boolean Choice(Y/N) L2tp get_dns_from_isp Enter Yes to get dns dynamically from Boolean Choice (Y/N),...
Unified Services Router CLI Reference Guide 8.33 net wan wan2 ipv4 configure Sl No Command Name Description Type and Description dhcpc This command allows you to set the MAC Address, mac_address MAC address. Its format is XX:XX:XX:XX:XX:XX where X is a number from 0 to 9 (inclusive) or an alphabetical letter between A and F (inclusive).
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description pptp username Enter the username to log in String, Alphanumeric username pptp get_dns_from_isp Enter Yes to get dns dynamically from Boolean Choice (Y/N), ISP otherwise Enter No and give valid Enter Yes to get dns dynamically static dns addresses from ISP otherwise Enter No and...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description AuthMethod Setting Threeg authentication methods Select from - NONE/PAP/CHAP Enter the Apn Provided by the ISP String Reconnect_mode Select Always On: The connection is Keepalive /idletimeout always on OR On Demand :The connection will close after time specified in Idle_time field...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description subnet_mask Setting Subnet Mask if not obtaining IP address from ISP Subnet Mask Service Setting optional service name String type cancel Roll back wan configuration changes exit Save wan configuration changes and exit current mode...
Unified Services Router CLI Reference Guide 8.37 net wan wan1-pppoeprofile edit prof_name Sl No Command Name Description Type and Description username Enter the username to log in String, Alphanumeric username password Enter the password to log in String, Alphanumeric password authOpt Setting authentication options Authentication option types...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description ISP otherwise Enter No and give valid Enter Yes to get dns dynamically static dns addresses from ISP otherwise Enter No and give valid static dns addresses primary_dns Valid primary DNS Server IP Address IP Address,...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description static prefix set prefix length Integer, Prefix length static primary_dns Set ipv6 primary dns address IP Address, Primary dns static secondary_dns Set ipv6 secondary dns address IP Address, Secondary dns Cancel...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description pppoe primary_dns Valid primary DNS Server IP Address IP Address, Primary dns pppoe secondary_dns Valid secondary DNS Server IP IP address, Address Secondary dns Cancel Roll back wan configuration changes Exit Save wan configuration changes and exit current mode...
Unified Services Router CLI Reference Guide 8.45 routing protocol_binding edit Sl No Command Name Description Type and Description row_id Row Id Of the rule to be edited Unsigned integer 8.46 routing protocol_binding disable Sl No Command Name Description Type and Description row_id Row Id Of the rule to be disabled Unsigned integer...
Unified Services Router CLI Reference Guide 9.3 security blocked_keywords delete <row_id> Sl No Command Name Description Type and Description security blocked_keywords Delete blocked keyword Rule Row Id Of the rule to be deleted delete <row_id> 9.4 security blocked_keywords disable <row_id> Sl No Command Name Description...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description name Name of the service for which a rule is String, to be added Service name protocol Protocol type Protocol type (TCP/UDP/ICMP/ICMPv6) quality_of_service Type of QoS QoS.
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description dnat_address <dnatAddr> Send to Local Server (DNAT IP address AAA.BBB.CCC.DDD IP),Specifies an IP address and port where each part is in the range 0- number of a machine on the Local Network which is host dnat_port <dnatport>...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description <row_id> Row Id Of the rule to be deleted 9.12 security firewall ipv4 disable <row_id> Sl No Command Name Description Type and Description security firewall ipv4 disable Row Id Of the rule to be disabled Integer, <row_id>...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description changes. 9.16 security ip_or_mac_binding delete <row_id> Sl No Command Name Description Type and Description security ip_or_mac_binding Row Id Of the rule to be deleted Integer, delete <row_id> Row Id Of the rule to be deleted 9.17 security port_triggering add/edit Sl No...
Unified Services Router CLI Reference Guide 9.19 security schedules add/edit Sl No Command Name Description Type and Description days all <allDays> select all days for schedule Boolean Choice (Y/N) days monday <monday> Select Monday for schedule Boolean Choice (Y/N) days tuesday <tuesday> Select Tuesday for schedule Boolean Choice (Y/N) days wednesday...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description configured max_unidentified_sessions Maximum number of unidentified Integer, <maxUnIdentfdSess> sessions Max number of unidentified sessions other_session_timeout Configure other session timeout Integer, <otherSessTimeout> duration Other Session Timeout Duration tcp_session_cleanup_latency Configure TCP session cleanup latency Integer,...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description cancel Roll back mac filter configuration changes. save Save mac filter configuration changes. exit Save mac filter configuration changes and exit current mode. 9.25 security trusted_domain add/edit Sl No Command Name Description...
Page 56
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description service for which a rule is to be added NORMAL/CUSTOM service service_custom Name of the custom service for which String a rule is to be added (custom name Custom service should already be added into custom service)
Unified Services Router CLI Reference Guide Chapter 10. Configuration commands under branch SYSTEM 10.1 system logging facility configure <facility> Sl No Command Name Description Type and Description system logging facility Facility type to configure. Facility types, configure <facility> Kernel/System/Local0- Wireless/Local1-UTM level_options_set <level>...
Unified Services Router CLI Reference Guide 10.3 system logging remote configure Sl No Command Name Description Type and Description email_logs_enable <enabled> Set whether or not system emails Email logs enabled or disabled. scheduled Boolean Choice (Y/N) email_server <ip_address> Set options for emailing of logs. String, IP Address or internet name of an SMTP server.
Unified Services Router CLI Reference Guide 10.4 system radius configure <radiusServer> Sl No Command Name Description Type and Description server <ip_address> Set RADIUS server IP address. Radius server IP address AAA.BBB.CCC.DDD where each part is in the range 0-255 authentication_port <port> Set RADIUS server port.
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description exit Save access Management changes for https and exit current mode. cancel Roll back Remote Mgmt changes. 10.7 system snmp sys configure Sl No Command Name Description Type and Description contact <contact>...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description where each part is in the range 0- 10.10 system snmp user configure Sl No Command Name Description Type and Description authentication_algo Choose between MD5 or SHA String authentication MD5/SHA...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description changes and exit current mode. 10.11 system time configure Sl No Command Name Description Type and Description auto_daylight <auto_daylight> Specify whether system automatically Boolean (Y/N) adjusts for daylight savings time Specify whether system automatically adjusts for daylight savings time...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description save Save traffic meter configuration changes. exit Save traffic meter configuration changes and exit current mode. 10.13 system group add Sl No Command Name Description Type and Description groupname <groupname>...
Unified Services Router CLI Reference Guide 10.17 system users edit <row_id> Sl No Command Name Description Type and Description system users edit <row id> The rowid of the user to be edited Integer 10.18 system users delete <row_id> Sl No Command Name Description Type and Description...
Unified Services Router CLI Reference Guide Chapter 11. Configuration commands under branch DOT11 11.1 dot11 access point configure <ap_name> Sl No Command Name Description Type and Description ap_name Unique name of the access point String, Access point name acl_policy_status Policy, Set the default ACL policy for policy Name of the policy.
Unified Services Router CLI Reference Guide 11.3 dot11 access point disable <ap_name> Sl No Command Name Description Type and Description ap_name Unique name of the access point String, Access point name 11.4 dot11 access point enable <ap_name> Sl No Command Name Description Type and Description ap_name...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description group_key_refresh_interval interval options. seconds). [10] advanced pmksa_lifetime Set advanced profile pmksa lifetime PMKSA Lifetime (in seconds). [10] options. broadcast_ssid Enable or disable SSID broadcast. Enable or disable. (Y/N) default_cos Set default Class Of Service Default QoS.
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description preamble_mode <preamble> Set the 802.11b preamble type to be 802.11b preamble type to be prepended to every frame prepended to every frame (Long/Short) rts_cts_protection <enabled> Enable/disable RTS/CTS handshake Enable/Disable RTS/CTS before packet transmission.
Unified Services Router CLI Reference Guide Chapter 12. Configuration commands under branch VPN 12.1 vpn ipsec policy connect <row_id> Sl No Command Name Description Type and Description row_id rowid of vpn policy to connect and Unsigned integer, row_id of vpn establish an inactive SA (connection).
Page 71
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description general_select_ In the event two WAN ports are Vpn Local gateway configured to connect to an ISP, select (DedicatedWAN/ConfiguredWAN) local_gateway the gateway that will be used as the local endpoint for this IPsec tunnel.
Page 72
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description entire subnet, or any IP address that wants to connect. general_remote_st IP address from where the range needs IP address AAA.BBB.CCC.DDD to begin where each part is in the range 0- art_address general_remote_en IP address where the range needs to...
Page 73
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description auto_phase1_key_l BLOWFISH and CAST128 are variable Unsigned integer length algorithms, and so the key length ength field is required when using either of these encryption types. For BLOWFISH, the Key Length must be between 40 and 448 and it must be a multiple of 8.
Page 74
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description authentication method mentioned in the IKE SA parameters. auto_phase1_authe If userdata base is selected Authentication type (User authentication done using local DataBase / Radius-PAP / Radius- ntication_type Database.If Radius option is selected CHAP)
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description lifetime auto_phase2_encry The algorithm used to encrypt the data vpn encryption algorithm (None/DES/3DES/AES-128/AES- ption_algorithm 192/AES-256/AES-CCM/AES- GCM//TWOFISH(128/192/256)/ BLOWFISH/CAST128) auto_phase2_key_l BLOWFISH and CAST128 are variable Unsigned integer length algorithms, and so the key length ength field is required when using either of these encryption types.
Unified Services Router CLI Reference Guide 12.7 vpn ipsec dhcp configure Sl No Command Name Description Type and Description Start_address The starting IP address of the range. IP address AAA.BBB.CCC.DDD where each part is in the range 0- End_address The end IP address of the range. IP address AAA.BBB.CCC.DDD where each part is in the range 0- Subnet_mask...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description policy_masklength Mask Length number in range of 0 to 32 start_port Begin port Port number end_port End port Port number service_type Defined service VIRTUAL-PASSAGE, VIRTUAL- TRANSPORT, all(all) resource_name Defined Resource String, Max 128 characters and no...
Unified Services Router CLI Reference Guide 12.13 vpn sslvpn portforwarding appconfig Sl No Command Name Description Type and Description serverip Local Server IP Address IP address AAA.BBB.CCC.DDD where each part is in the range 0- port TCP Port Number Port Number 12.14 vpn sslvpn portforwarding appconfig delete <row_id>...
Unified Services Router CLI Reference Guide 12.18 vpn sslvpn resource delete <row_id> Sl No Command Name Description Type and Description row_id Row id of resource to be deleted Unsigned integer, Row number 12.19 vpn sslvpn resource configure add <resource_name> Sl No Command Name Description Type and Description...
Unified Services Router CLI Reference Guide 12.22 vpn sslvpn route delete <row_id> Sl No Command Name Description Type and Description row_id Row id of route to be deleted Unsigned integer, Row number 12.23 vpn sslvpn users domains add Sl No Command Name Description Type and Description...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description active_directory_ Active directory domain String of any character type with no spaces domain second_active_dir Secondary Active directory domain String of any character type with no spaces ectory_domain 12.24 vpn sslvpn users domains edit...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description second_ldap_base_ Secondary Ldap base domain name String of any character type with no spaces active_directory_ Active directory domain String of any character type with no spaces domain second_active_dir Secondary Active directory domain...
Unified Services Router CLI Reference Guide Sl No Command Name Description Type and Description mask_length Source network mask length Integer range 1 to 32 12.28 vpn sslvpn users users ip_policies delete <row_id> Sl No Command Name Description Type and Description row_id Row id of policy table to be deleted Unsigned integer,...