D-Link xStack DXS-3250 Cli Manual

L2 stackable gigabit mngd. switch with optional 10gig uplinks
Hide thumbs Also See for xStack DXS-3250:
Table of Contents

Advertisement

Quick Links

CLI Guide
DXS-3200 Series
Product Model :
L2 Stackable Gigabit Mngd. Switch with Optional 10Gig Uplinks
Release 1
©Copyright 2005. All rights reserved.

Advertisement

Table of Contents
loading

Summary of Contents for D-Link xStack DXS-3250

  • Page 1 CLI Guide DXS-3200 Series Product Model : L2 Stackable Gigabit Mngd. Switch with Optional 10Gig Uplinks Release 1 ©Copyright 2005. All rights reserved.
  • Page 2: Table Of Contents

    Table of Contents Section 1.Using the CLI ... 12 Overview...12 CLI Command Modes... 13 Introduction ...13 User EXEC Mode ...14 Privileged EXEC Mode ...14 Global Configuration Mode ...14 Interface Configuration and Specific Configuration Modes...15 Starting the CLI... 15 Editing Features ...16 Entering Commands ...16 Terminal Command Buffer ...
  • Page 3 D-Link CLI Reference Guide Section 4.Address Table Commands... 46 bridge address... 46 bridge multicast filtering... 47 bridge multicast address... 48 bridge multicast forbidden address... 49 bridge multicast forward-all... 50 bridge multicast forbidden forward-all... 51 bridge aging-time... 52 clear bridge... 53 port security ...
  • Page 4 Section 7.Ethernet Configuration Commands ... 94 interface ethernet ...94 interface range ethernet ... 95 shutdown...96 description... 97 speed ... 98 duplex... 99 negotiation... 100 flowcontrol ... 101 mdix... 102 back-pressure ... 103 port jumbo-frame...104 clear counters...105 set interface active ...106 show interfaces advertise...107 show interfaces configuration...109 show interfaces status...
  • Page 5 D-Link CLI Reference Guide Section 10.IP Addressing Commands ... 144 ip address ... 144 ip address dhcp ... 145 ip default-gateway ... 146 show ip interface... 147 arp ... 148 arp timeout... 149 ip proxy-arp... 150 clear arp-cache... 151 show arp ... 152 interface ip ...
  • Page 6 deny (Management) ... 189 management access-class...190 show management access-list ... 191 show management access-class ...192 Section 15.PHY Diagnostics Commands... 194 test copper-port tdr...194 show copper-ports tdr ... 195 show copper-ports cable-length ...196 show fiber-ports optical-transceiver ...197 Section 16.Port Channel Commands ... 200 interface port-channel ...
  • Page 7 D-Link CLI Reference Guide wrr-queue bandwidth ... 233 priority-queue out num-of-queues ... 234 traffic-shape... 235 show qos interface... 236 qos wrr-queue threshold... 238 qos map policed-dscp... 239 qos map dscp-queue ... 240 qos trust (Global) ... 241 qos trust (Interface) ... 242 qos cos ...
  • Page 8 snmp-server location...286 snmp-server set ... 287 show snmp ...288 show snmp engineid ...290 show snmp views ... 291 show snmp groups ...292 show snmp filters ... 294 show snmp users ... 295 Section 23.Spanning-Tree Commands ... 296 spanning-tree ...296 spanning-tree mode ... 297 spanning-tree forward-time ...298 spanning-tree hello-time...
  • Page 9 D-Link CLI Reference Guide show ip ssh... 343 show crypto key mypubkey ... 344 show crypto key pubkey-chain ssh... 345 Section 25.Syslog Commands... 346 logging on ... 346 logging ... 347 logging console... 348 logging buffered... 349 logging buffered size ... 350 clear logging ...
  • Page 10 Section 28.User Interface Commands ... 392 do ... 392 enable ...392 disable...394 login... 395 configure ...396 exit (Configuration)...397 exit...398 end ...399 help ... 400 terminal data-dump ... 401 show history ... 402 show privilege ... 403 Section 29.VLAN Commands... 404 vlan database...404 vlan...405 interface vlan...406...
  • Page 11 D-Link CLI Reference Guide show ip http ... 438 show ip https... 439 Section 31.802.1x Commands ... 440 aaa authentication dot1x default... 440 dot1x system-auth-control ... 441 dot1x port-control... 442 dot1x re-authentication ... 443 dot1x timeout re-authperiod... 444 dot1x re-authenticate... 445 dot1x timeout quiet-period ...
  • Page 12 Page 11...
  • Page 13: Section 1.Using The Cli

    This document describes the Command Line Interface (CLI) used to manage the D-Link family of managed devices. This family includes: DXS-3250 – Stackabel device with 48-port 10/100/1000BASE-T, 4 FSP ports, one Infiniband port and a 10G port. DXS-3227P – Stackabel Power over Ethernet device with 24-port 10/100/1000BASE-T, with one XFP fixed port and two 10G ports.
  • Page 14: Cli Command Modes

    Using the CLI CLI Command Modes CLI Command Modes Introduction To assist in configuring the device, the Command Line Interface (CLI) is divided into different command modes. Each command mode has its own set of specific commands. Entering a question mark "?" at the system prompt (console prompt) displays a list of commands available for that particular command mode.
  • Page 15: User Exec Mode

    D-Link CLI Reference Guide User EXEC Mode After logging into the device, the user is automatically in User EXEC command mode unless the user is defined as a privileged user. In general, the User EXEC commands allow the user to perform basic tests, and list system information.
  • Page 16: Interface Configuration And Specific Configuration Modes

    To return from the Global Configuration mode to the Privileged EXEC mode, the user can use one of the following commands: • exit • • Ctrl+Z The following example illustrates how to access the Global Configuration mode and return to the Privileged EXEC mode: Console# Console# configure...
  • Page 17: Editing Features

    D-Link CLI Reference Guide Note The following steps are for use on the console line only. To start using the CLI, perform the following steps: Connect the DB9 null-modem or cross over cable to the RS-232 serial port of the device to the RS-232 serial port of the terminal or computer running the terminal emulation application.
  • Page 18: Terminal Command Buffer

    • Keyword lookup — The character ? is entered in place of a command. A list of all valid commands and corresponding help messages are is displayed. • Partial keyword lookup — If a command is incomplete and or the character ? is entered in place of a parameter.
  • Page 19: Keyboard Shortcuts

    The ports may be described on an individual basis or within a range. Use format port number-port number to specify a set of consecutive ports and port number,port number to indicates a set of non-consecutive ports. For example, 1-3 stands for Gigabit Ethernet ports 1, 2 and 3, and 1,5 stands for Gigabit Ethernet ports 1 and 5. Keyboard Shortcuts The CLI has a range of keyboard shortcuts to assist in editing the CLI commands.
  • Page 20 Note It is the user’s responsibility to ensure that the text copied into the device consists of legal commands only. This feature is dependent on the baud rate of the device. When copying and pasting commands from a configuration file, make sure that the following conditions exist: •...
  • Page 21: Section 2.Aaa Commands

    D-Link CLI Reference Guide Section 2. AAA Commands aaa authentication login The aaa authentication login Global Configuration mode command defines login authentication. To return to the default configuration, use the no form of this command. Syntax aaa authentication login {default | list-name} method1 [method2...]...
  • Page 22 AAA Commands User Guidelines The default and optional list names created with the aaa authentication login command are used with the login authentication command. Create a list by entering the aaa authentication login list-name method command for a particular protocol, where list-name is any character string used to name this list.
  • Page 23: Aaa Authentication Enable

    D-Link CLI Reference Guide aaa authentication enable The aaa authentication enable Global Configuration mode command defines authentication method lists for accessing higher privilege levels. To return to the default configuration, use the no form of this command. Syntax aaa authentication enable {default | list-name} method1 [method2...]...
  • Page 24 AAA Commands Example The following example sets the enable password for authentication when accessing higher privilege levels. Console(config)# aaa authentication enable default enable Page 23...
  • Page 25: Login Authentication

    D-Link CLI Reference Guide login authentication The login authentication Line Configuration mode command specifies the login authentication method list for a remote telnet or console. To return to the default configuration specified by the aaa authentication login command, use the no form of this command.
  • Page 26: Enable Authentication

    enable authentication The enable authentication Line Configuration mode command specifies the authentication method list when accessing a higher privilege level from a remote Telnet or console. To return to the default configuration specified by the aaa authentication enable command, use the no form of this command. Syntax enable authentication {default | list-name} no enable authentication...
  • Page 27: Ip Http Authentication

    D-Link CLI Reference Guide ip http authentication The ip http authentication Global Configuration mode command specifies authentication methods for HTTP server users. To return to the default configuration, use the no form of this command. Syntax ip http authentication method1 [method2...]...
  • Page 28: Ip Https Authentication

    ip https authentication The ip https authentication Global Configuration mode command specifies authentication methods for HTTPS server users. To return to the default configuration, use the no form of this command. Syntax ip https authentication method1 [method2...] no ip https authentication Parameters •...
  • Page 29: Show Authentication Methods

    D-Link CLI Reference Guide show authentication methods The show authentication methods Privileged EXEC mode command displays information about the authentication methods. Syntax show authentication methods Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 30: Password

    password The password Line Configuration mode command specifies a password on a line. To remove the password, use the no form of this command. Syntax password password [encrypted] no password Parameters • password — Password for this level (Range: 1-159 characters). •...
  • Page 31: Enable Password

    D-Link CLI Reference Guide enable password The enable password Global Configuration mode command sets a local password to control access to user and privilege levels. To remove the password requirement, use the no form of this command. Syntax enable password [level level] password [encrypted]...
  • Page 32: Username

    username The username Global Configuration mode command creates a user account in the local database. To remove a user name, use the no form of this command. Syntax username name [password password] [level level] [encrypted] no username name Parameters • name —...
  • Page 33: Section 3.Acl Commands

    D-Link CLI Reference Guide Section 3. ACL Commands stack light unit The stack light unit EXEC command light LEDs on a specific unit. Syntax stack light unit unit-number [duration seconds] stack light unit stop Parameters • unit-number— Specify Unit number or all. (range : 1 – product specific).
  • Page 34: Ip Access-List

    ip access-list The ip-access-list Global Configuration command enables the IP-Access Configuration mode and creates Layer 3 ACLs. To delete an ACL, use the no form of this command. Syntax ip access-list name no ip access-list name Parameters • name — Specifies the name of the ACL. Default Configuration The default for all ACLs is deny-all.
  • Page 35: Permit (Ip)

    D-Link CLI Reference Guide permit (ip) The permit IP-Access List Configuration mode command permits traffic if the conditions defined in the permit statement match. Syntax permit {any | protocol} {any | {source source-wildcard}} {any | {destination destination-wildcard}} [dscp dscp number | ip-precedence ip-precedence]...
  • Page 36 IP P r o t oco l Fragment Header for IPv6 Inter-Domain Routing Protocol Reservation Protocol General Routing Encapsulation Encapsulating Security Payload (50) Authentication Header ICMP for IPv6 EIGRP routing protocol Open Shortest Path Protocol IP-within-IP Encapsulation Protocol Protocol Independent Multicast Layer Two Tunneling Protocol ISIS over IPv4 (any IP protocol)
  • Page 37 D-Link CLI Reference Guide User Guidelines Use the ip-access-list Global Configuration mode command to enable the IP-Access List Configuration mode. Before an Access Control Element (ACE) is added to an ACL, all packets are permitted. After an ACE is added, an implied deny-any-any condition exists at the end of the list and those packets that do not match the conditions defined in the permit statement are denied.
  • Page 38: Deny (Ip)

    deny (IP) The deny IP-Access List Configuration mode command denies traffic if the conditions defined in the deny statement match. Syntax deny [disable-port] {any | protocol} {any | {source source-wildcard}} {any | {destination destination-wildcard}} [dscp dscp number | ip-precedence ip-precedence] [in-port port-num | out-port port-num] Parameters •...
  • Page 39 D-Link CLI Reference Guide IP P r o t oco l EIGRP routing protocol Open Shortest Path Protocol IP-within-IP Encapsulation Protocol Protocol Independent Multicast Layer Two Tunneling Protocol ISIS over IPv4 (any IP protocol) • in-port port-num — (Optional) Specifies the output port of the devise. In case of egress classification this port will be devise input port.
  • Page 40: Mac Access-List

    mac access-list The mac access-list Global Configuration mode command enables the MAC-Access List Configuration mode and creates Layer 2 ACLs. To delete an ACL, use the no form of this command. Syntax mac access-list name no mac access-list name Parameters •...
  • Page 41: Permit (Mac)

    D-Link CLI Reference Guide permit (MAC) The permit MAC-Access List Configuration mode command defines permit conditions of an MAC ACL. Syntax permit {any | {host source source-wildcard} any | {destination destination-wildcard}} [vlan vlan-id] [cos cos cos- wildcard] [ethtype eth-type] Parameters •...
  • Page 42: Deny (Mac)

    deny (MAC) The deny MAC-Access List Configuration mode command denies traffic if the conditions defined in the deny statement match. Syntax deny [disable-port] {any | {source source-wildcard} {any | {destination destination- wildcard}}[vlan vlan-id] [cos cos cos-wildcard] [ethtype eth-type] Parameters • disable-port —...
  • Page 43: Service Acl

    D-Link CLI Reference Guide service acl The service-acl Interface Configuration mode command applies an ACL to the input interface. To detach an ACL from an input interface, use the no form of this command. Syntax service acl {input acl-name} no service acl {input} Parameters •...
  • Page 44: Show Access-Lists

    show access-lists The show access-lists Privileged EXEC mode command displays access control lists (ACLs) defined on the device. Syntax show access-lists [name] Parameters • name — Name of the ACL. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 45: Show Interfaces Access-Lists

    D-Link CLI Reference Guide show interfaces access-lists The show interfaces access-lists Privileged EXEC mode command displays access lists applied on interfaces. Syntax show interfaces access-lists [ethernet interface | port-channel port-channel-number] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port).
  • Page 46 ACL Commands Page 45...
  • Page 47: Section 4.Address Table Commands

    D-Link CLI Reference Guide Section 4. Address Table Commands bridge address The bridge address Interface Configuration (VLAN) mode command adds a MAC-layer station source address to the bridge table. To delete the MAC address, use the no form of this command.
  • Page 48: Bridge Multicast Filtering

    User Guidelines If multicast devices exist on the VLAN, do not change the unregistered multicast addresses state to drop on the switch ports. If multicast devices exist on the VLAN and IGMP-snooping is not enabled, the bridge multicast forward-all command should be used to enable forwarding all multicast packets to the multicast switches.
  • Page 49: Bridge Multicast Address

    D-Link CLI Reference Guide bridge multicast address The bridge multicast address Interface Configuration (VLAN) mode command registers a MAC-layer multicast address in the bridge table and statically adds ports to the group. To unregister the MAC address, use the no form of this command.
  • Page 50: Bridge Multicast Forbidden Address

    bridge multicast forbidden address The bridge multicast forbidden address Interface Configuration (VLAN) mode command forbids adding a specific multicast address to specific ports. Use the no form of this command to return to the default configuration. Syntax bridge multicast forbidden address {mac-multicast-address | ip-multicast-address} {add | remove} {ethernet interface-list | port-channel port-channel-number-list} no bridge multicast forbidden address {mac-multicast-address | ip-multicast-address} Parameters...
  • Page 51: Bridge Multicast Forward-All

    D-Link CLI Reference Guide bridge multicast forward-all The bridge multicast forward-all Interface Configuration (VLAN) mode command enables forwarding all multicast packets on a port. To restore the default configuration, use the no form of this command. Syntax bridge multicast forward-all {add | remove} {ethernet interface-list | port-channel port-channel-number-list}...
  • Page 52: Bridge Multicast Forbidden Forward-All

    bridge multicast forbidden forward-all The bridge multicast forbidden forward-all Interface Configuration (VLAN) mode command forbids a port to be a forward-all-multicast port. To restore the default configuration, use the no form of this command. Syntax bridge multicast forbidden forward-all {add | remove} {ethernet interface-list | port-channel port-channel- number-list} no bridge multicast forbidden forward-all Parameters...
  • Page 53: Bridge Aging-Time

    D-Link CLI Reference Guide bridge aging-time The bridge aging-time Global Configuration mode command sets the address table aging time. To restore the default configuration, use the no form of this command. Syntax bridge aging-time seconds no bridge aging-time Parameters •...
  • Page 54: Clear Bridge

    Address Table Commands clear bridge The clear bridge Privileged EXEC mode command removes any learned entries from the forwarding database. Syntax clear bridge Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example In this example, the bridge tables are cleared.
  • Page 55: Port Security

    D-Link CLI Reference Guide port security The port security Interface Configuration mode command locks the port, thereby, blocking unknown traffic and preventing the port from learning new addresses. To return to the default configuration, use the no form of this command.
  • Page 56: Port Security Mode

    port security mode The port security mode Interface Configuration mode command configures the port security mode. To return to the default configuration, use the no form of this command. Syntax port security mode {lock | max-addresses} no port security mode Parameters •...
  • Page 57: Port Security Routed Secure-Address

    D-Link CLI Reference Guide port security routed secure-address The port security routed secure-address Interface Configuration (Ethernet, port-channel) mode command adds a MAC-layer secure address to a routed port. Use the no form of this command to delete a MAC address.
  • Page 58: Show Bridge Address-Table

    show bridge address-table The show bridge address-table Privileged EXEC mode command displays all entries in the bridge-forwarding database. Syntax show bridge address-table [vlan vlan] [ethernet interface | port-channel port-channel-number][address mac- address] Parameters • vlan — Specifies a valid VLAN, such as VLAN 1. •...
  • Page 59: Show Bridge Address-Table Static

    D-Link CLI Reference Guide show bridge address-table static The show bridge address-table static Privileged EXEC mode command displays statically created entries in the bridge-forwarding database. Syntax show bridge address-table static [vlan vlan] [ethernet interface | port-channel port-channel-number] Parameters • vlan — Specifies a valid VLAN, such as VLAN 1.
  • Page 60: Show Bridge Address-Table Count

    show bridge address-table count The show bridge address-table count Privileged EXEC mode command displays the number of addresses present in the Forwarding Database. Syntax show bridge address-table count [vlan vlan][ ethernet interface-number | port-channel port-channel-number] Parameters • vlan — Specifies a valid VLAN, such as VLAN 1. •...
  • Page 61: Show Bridge Multicast Address-Table

    D-Link CLI Reference Guide show bridge multicast address-table The show bridge multicast address-table User EXEC mode command displays multicast MAC address or IP address table information. Syntax show bridge multicast address-table [vlan vlan-id] [address mac-multicast-address | ip-multicast-address] [format ip | format mac] Parameters •...
  • Page 62 Console# show bridge multicast address-table format ip Vlan IP/MAC Address ---- ----------------- 224-239.130|2.2.3 224-239.130|2.2.8 224-239.130|2.2.8 Forbidden ports for multicast addresses: Vlan IP/MAC Address ---- ----------------- 224-239.130|2.2.3 224-239.130|2.2.8 Note A multicast MAC address maps to multiple IP addresses as shown above. Address Table Commands Type Ports...
  • Page 63: Show Bridge Multicast Filtering

    D-Link CLI Reference Guide show bridge multicast filtering The show bridge multicast filtering User EXEC mode command displays the multicast filtering configuration. Syntax show bridge multicast filtering vlan-id Parameters • vlan-id — VLAN ID value. Default Configuration This command has no default configuration.
  • Page 64: Show Ports Security

    show ports security The show ports security Privileged EXEC mode command displays the port-lock status. Syntax show ports security [addresses] [ethernet interface | port-channel port-channel-number] Parameters • addresses — Port address to display. • interface — A valid Ethernet port. •...
  • Page 65 D-Link CLI Reference Guide Trap Frequency Indicates if traps are sent in case of a violation Minimum time between consecutive traps Page 64...
  • Page 66: Show Ports Security Addresses

    show ports security addresses The show ports security addresses Privileged EXEC mode command displays the current dynamic addresses in locked ports. Syntax show ports security addresses [ethernet interface | port-channel port-channel-number] Parameters • interface — A valid Ethernet port. • port-channel-number —...
  • Page 67 D-Link CLI Reference Guide In this example, dynamic addresses in currently locked port 1/1 are displayed. Console# show ports security addresses ethernet 1/1 Port Status ---- -------- Disabled Learning Current -------- ------- Lock Page 66 Maximum -------...
  • Page 68 Address Table Commands Page 67...
  • Page 69: Section 5.Clock Commands

    D-Link CLI Reference Guide Section 5. Clock Commands clock set The clock set Privileged EXEC mode command manually sets the system clock. Syntax clock set hh:mm:ss day month year clock set hh:mm:ss month day year Parameters • hh:mm:ss — Current time in hours (military format), minutes, and seconds (hh: 0 - 23, mm: 0 - 59, ss: 0 - 59).
  • Page 70: Clock Source

    Clock Commands clock source The clock source Global Configuration mode command configures an external time source for the system clock. Use no form of this command to disable external time source. Syntax clock source {sntp} no clock source Parameters • sntp —...
  • Page 71: Clock Timezone

    D-Link CLI Reference Guide clock timezone The clock timezone Global Configuration mode command sets the time zone for display purposes. To set the time to the Coordinated Universal Time (UTC), use the no form of this command. Syntax clock timezone hours-offset [minutes minutes-offset] [zone acronym]...
  • Page 72: Clock Summer-Time

    The clock summer-time Global Configuration mode command configures the system to automatically switch to summer time (daylight saving time). To configure the software not to automatically switch to summer time, use the no form of this command. Syntax...
  • Page 73 D-Link CLI Reference Guide User Guidelines In both the date and recurring forms of the command, the first part of the command specifies when summer time begins, and the second part specifies when it ends. All times are relative to the local time zone. The start time is relative to standard time.
  • Page 74: Sntp Authentication-Key

    sntp authentication-key The sntp authentication-key Global Configuration mode command defines an authentication key for Simple Network Time Protocol (SNTP). To remove the authentication key for SNTP, use the no form of this command. Syntax sntp authentication-key number md5 value no sntp authentication-key number Parameters •...
  • Page 75: Sntp Authenticate

    D-Link CLI Reference Guide sntp authenticate The sntp authenticate Global Configuration mode command grants authentication for received Simple Network Time Protocol (SNTP) traffic from servers. To disable the feature, use the no form of this command. Syntax sntp authenticate no sntp authenticate...
  • Page 76: Sntp Trusted-Key

    sntp trusted-key The sntp trusted-key Global Configuration mode command authenticates the identity of a system to which Simple Network Time Protocol (SNTP) will synchronize. To disable authentication of the identity of the system, use the no form of this command. Syntax sntp trusted-key key-number no sntp trusted-key key-number...
  • Page 77: Sntp Client Poll Timer

    D-Link CLI Reference Guide sntp client poll timer The sntp client poll timer Global Configuration mode command sets the polling time for the Simple Network Time Protocol (SNTP) client. To return to default configuration, use the no form of this command.
  • Page 78: Sntp Broadcast Client Enable

    Clock Commands sntp broadcast client enable The sntp broadcast client enable Global Configuration mode command enables Simple Network Time Protocol (SNTP) broadcast clients. To disable SNTP broadcast clients, use the no form of this command. Syntax sntp broadcast client enable no sntp broadcast client enable Default Configuration The SNTP broadcast client is disabled.
  • Page 79: Sntp Anycast Client Enable

    D-Link CLI Reference Guide sntp anycast client enable The sntp anycast client enable Global Configuration mode command enables SNTP anycast client. To disable the SNTP anycast client, use the no form of this command. Syntax sntp anycast client enable no sntp anycast client enable Default Configuration The SNTP anycast client is disabled.
  • Page 80: Sntp Client Enable (Interface)

    sntp client enable (Interface) The sntp client enable Interface Configuration (Ethernet, port-channel, VLAN) mode command enables the Simple Network Time Protocol (SNTP) client on an interface. This applies to both receive broadcast and anycast updates. To disable the SNTP client, use the no form of this command. Syntax sntp client enable no sntp client enable...
  • Page 81: Sntp Unicast Client Enable

    D-Link CLI Reference Guide sntp unicast client enable The sntp unicast client enable Global Configuration mode command enables the device to use the Simple Network Time Protocol (SNTP) to request and accept SNTP traffic from servers. To disable requesting and accepting SNTP traffic from servers, use the no form of this command.
  • Page 82: Sntp Unicast Client Poll

    Clock Commands sntp unicast client poll The sntp unicast client poll Global Configuration mode command enables polling for the Simple Network Time Protocol (SNTP) predefined unicast servers. To disable the polling for SNTP client, use the no form of this command.
  • Page 83: Sntp Server

    D-Link CLI Reference Guide sntp server The sntp server Global Configuration mode command configures the device to use the Simple Network Time Protocol (SNTP) to request and accept SNTP traffic from a specified server. To remove a server from the list of SNTP servers, use the no form of this command.
  • Page 84: Show Clock

    show clock The show clock User EXEC mode command displays the time and date from the system clock. Syntax show clock [detail] Parameters • detail — Shows timezone and summertime configuration. Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines The symbol that precedes the show clock display indicates the following:...
  • Page 85: Show Sntp Configuration

    D-Link CLI Reference Guide show sntp configuration The show sntp configuration Privileged EXEC mode command shows the configuration of the Simple Network Time Protocol (SNTP). Syntax show sntp configuration Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 86: Show Sntp Status

    show sntp status The show sntp status Privileged EXEC mode command shows the status of the Simple Network Time Protocol (SNTP). Syntax show sntp status Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 87: Section 6.Configuration And Image File Commands

    D-Link CLI Reference Guide Section 6. Configuration and Image File Commands copy The copy Privileged EXEC mode command copies files from a source to a destination. Syntax copy source-url destination-url Parameters • source-url — The source file location URL or reserved keyword of the source file to be copied.
  • Page 88 Command Mode Privileged EXEC mode User Guidelines Up to five backup configuration files are supported on the device. The location of a file system dictates the format of the source or destination URL. The entire copying process may take several minutes and differs from protocol to protocol and from network to network.
  • Page 89 D-Link CLI Reference Guide Saving the Running Configuration to the Startup Configuration To copy the running configuration to the startup configuration file, enter the copy running-config startup-config command. Backing up the Running or Startup Configuration to a Backup Configuration File To copy the running configuration file to a backup configuration file, enter the copy running-config file command.
  • Page 90: Delete

    delete The delete Privileged EXEC mode command deletes a file from a flash memory device. Syntax delete url Parameters • url — The location URL or reserved keyword of the file to be deleted. (Range: 1-160 characters) The following table displays keywords and URL prefixes: K ey wo r d Sou r c e o r D es t in at io n flash:...
  • Page 91: Boot System

    D-Link CLI Reference Guide boot system The boot system Privileged EXEC mode command specifies the system image that the device loads at startup. Syntax boot system [unit unit] {image-1 | image-2} Parameters • unit — Specifies the unit number. •...
  • Page 92: Show Running-Config

    show running-config The show running-config Privileged EXEC mode command displays the contents of the currently running configuration file. Syntax show running-config Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Examples The following example displays the contents of the running configuration file.
  • Page 93: Show Startup-Config

    D-Link CLI Reference Guide show startup-config The show startup-config Privileged EXEC mode command displays the contents of the startup configuration file. Syntax show startup-config Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 94: Show Bootvar

    show bootvar The show bootvar Privileged EXEC mode command displays the active system image file that is loaded by the device at startup. Syntax show bootvar [unit unit] Parameters • unit — Specifies the unit number. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 95: Section 7.Ethernet Configuration Commands

    D-Link CLI Reference Guide Section 7. Ethernet Configuration Commands interface ethernet The interface ethernet Global Configuration mode command enters the interface configuration mode to configure an Ethernet type interface. Syntax interface ethernet interface Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 96: Interface Range Ethernet

    interface range ethernet The interface range ethernet Global Configuration mode command configures multiple Ethernet type interfaces at the same time. Syntax interface range ethernet {port-range | all} Parameters • port-range — List of valid ports. Where more than one port is listed, separate nonconsecutive ports with a comma and no spaces, use a hyphen to designate a range of ports and group a list seperated by commas in brackets.
  • Page 97: Shutdown

    D-Link CLI Reference Guide shutdown The shutdown Interface Configuration (Ethernet, port-channel) mode command disables an interface. To restart a disabled interface, use the no form of this command. Syntax shutdown no shutdown Default Configuration The interface is enabled. Command Mode...
  • Page 98: Description

    description The description Interface Configuration (Ethernet, port-channel) mode command adds a description to an interface. To remove the description, use the no form of this command. Syntax description string no description Parameters • string — Comment or a description of the port to enable the user to remember what is attached to the port. (Range: 1-64 characters) Default Configuration The interface does not have a description.
  • Page 99: Speed

    D-Link CLI Reference Guide speed The speed Interface Configuration (Ethernet, port-channel) mode command configures the speed of a given Ethernet interface when not using auto-negotiation. To restore the default configuration, use the no form of this command. Syntax speed {10 | 100 | 1000 | 10000}...
  • Page 100: Duplex

    duplex The duplex Interface Configuration (Ethernet) mode command configures the full/half duplex operation of a given Ethernet interface when not using auto-negotiation. To restore the default configuration, use the no form of this command. Syntax duplex {half | full} Parameters •...
  • Page 101: Negotiation

    D-Link CLI Reference Guide negotiation The negotiation Interface Configuration (Ethernet, port-channel) mode command enables auto-negotiation operation for the speed and duplex parameters of a given interface. To disable auto-negotiation, use the no form of this command. Syntax negotiation [capability1 [capability2…capability5]]...
  • Page 102: Flowcontrol

    flowcontrol The flowcontrol Interface Configuration (Ethernet, port-channel) mode command configures flow control on a given interface. To disable flow control, use the no form of this command. Syntax flowcontrol {auto | on | off} no flowcontrol Parameters • auto — Indicates auto-negotiation •...
  • Page 103: Mdix

    D-Link CLI Reference Guide mdix The mdix Interface Configuration (Ethernet) mode command enables cable crossover on a given interface. To disable cable crossover, use the no form of this command. Syntax mdix {on | auto} no mdix Parameters • on — Manual mdix •...
  • Page 104: Back-Pressure

    back-pressure The back-pressure Interface Configuration (Ethernet, port-channel) mode command enables back pressure on a given interface. To disable back pressure, use the no form of this command. Syntax back-pressure no back-pressure Default Configuration Back pressure is enabled. Command Mode Interface Configuration (Ethernet, port-channel) mode User Guidelines There are no user guidelines for this command.
  • Page 105: Port Jumbo-Frame

    D-Link CLI Reference Guide port jumbo-frame The port jumbo-frame Global Configuration mode command enables jumbo frames on the device. To disable jumbo frames, use the no form of this command. Syntax port jumbo-frame no port jumbo-frame Default Configuration Jumbo frames are disabled on the device.
  • Page 106: Clear Counters

    clear counters The clear counters User EXEC mode command clears statistics on an interface. Syntax clear counters [ethernet interface | port-channel port-channel-number] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) • port-channel-number — Valid port-channel number. Default Configuration This command has no default configuration.
  • Page 107: Set Interface Active

    D-Link CLI Reference Guide set interface active The set interface active Privileged EXEC mode command reactivates an interface that was shutdown. Syntax set interface active {ethernet interface | port-channel port-channel-number} Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) •...
  • Page 108: Show Interfaces Advertise

    show interfaces advertise The show interfaces advertise Privileged EXEC mode command displays autonegotiation data. Syntax show interfaces advertise [ethernet interface | port-channel port-channel-number ] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) • port-channel-number — Valid port-channel number. Default Configuration This command has no default configuration.
  • Page 109 D-Link CLI Reference Guide 100M-Copper 100M-Copper 100M-Copper 100M-Copper 100M-Copper Enabled Enabled Enabled Enabled Enabled Page 108...
  • Page 110: Show Interfaces Configuration

    show interfaces configuration The show interfaces configuration Privileged EXEC mode command displays the configuration for all configured interfaces. Syntax show interfaces configuration [ethernet interface | port-channel port-channel-number |] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) • port-channel-number — Valid port-channel number. Default Configuration This command has no default configuration.
  • Page 111 D-Link CLI Reference Guide 100M-Copper Full 100M-Copper Full 100M-Copper Full 100M-Copper Full 100M-Copper Full 100M-Copper Full Enabled Enabled Enabled Enabled Enabled Enabled Page 110 Disabled Auto Disabled Auto Disabled Auto Disabled Auto Disabled Auto Disabled Auto...
  • Page 112: Show Interfaces Status

    show interfaces status The show interfaces status Privileged EXEC mode command displays the status of all configured interfaces. Syntax show interfaces status [ethernet interface| port-channel port-channel-number |] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
  • Page 113 D-Link CLI Reference Guide 100M-Copper 100M-Copper 100M-Copper 100M-Copper 100M-Copper Page 112 Down Down Down Down Down...
  • Page 114: Show Interfaces Description

    show interfaces description The show interfaces description Privileged EXEC mode command displays the description for all configured interfaces. Syntax show interfaces description [ethernet interface | port-channel port-channel-number |] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
  • Page 115: Show Interfaces Counters

    D-Link CLI Reference Guide show interfaces counters The show interfaces counters User EXEC mode command displays traffic seen by the physical interface. Syntax show interfaces counters [ethernet interface | port-channel port-channel-number] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) •...
  • Page 116 OutOctets --------- 23739 The following example displays counters for Ethernet port 1/1. Console# show interfaces counters ethernet 1/1 Port InOctets ------ ----------- 183892 Port OutOctets ------ ----------- 9188 FCS Errors: 8 Single Collision Frames: 0 Late Collisions: 0 Oversize Packets: 0 Internal MAC Rx Errors: 0 Symbol Errors: 0 Received Pause Frames: 0...
  • Page 117 D-Link CLI Reference Guide Late Collisions Number of times that a collision is detected later than one slotTime into the transmission of a packet. Oversize Packets Counted frames received that exceed the maximum permitted frame size. Internal MAC Rx Errors Counted frames for which reception fails due to an internal MAC sublayer receive error.
  • Page 118: Show Ports Jumbo-Frame

    show ports jumbo-frame The show ports jumbo-frame User EXEC mode command displays the configuration of jumbo frames. Syntax show ports jumbo-frame Default Configuration This command has no default configuration. Command Modes User EXEC mode User Guidelines This command has no default configuration. Examples The following example displays the configuration of jumbo frames on the device.
  • Page 119: Port Storm-Control Include-Multicast (Gc)

    D-Link CLI Reference Guide port storm-control include-multicast (GC) The port storm-control include-multicast Global Configuration mode command enables counting multicast packets in the port storm-control broadcast rate command. To disable counting multicast packets, use the no form of this command. Syntax...
  • Page 120: Port Storm-Control Include-Multicast (Ic)

    port storm-control include-multicast (IC) The port storm-control include-multicast Interface Configuration (Ethernet) mode command counts multicast packets in broadcast storm control. To disable counting multicast packets, use the no form of this command. Syntax port storm-control include-multicast [unknown-unicast] no port storm-control include-multicast Parameters •...
  • Page 121: Port Storm-Control Broadcast Enable

    D-Link CLI Reference Guide port storm-control broadcast enable The port storm-control broadcast enable Interface Configuration (Ethernet) mode command enables broadcast storm control. To disable broadcast storm control, use the no form of this command. Syntax port storm-control broadcast enable no port storm-control broadcast enable Default Configuration Broadcast storm control is disabled.
  • Page 122: Port Storm-Control Broadcast Rate

    port storm-control broadcast rate The port storm-control broadcast rate Interface Configuration (Ethernet) mode command configures the maximum broadcast rate. To return to the default configuration, use the no form of this command. Syntax port storm-control broadcast rate rate no port storm-control broadcast rate Parameters •...
  • Page 123: Show Ports Storm-Control

    D-Link CLI Reference Guide show ports storm-control The show ports storm-control User/Privileged EXEC mode command displays the storm control configuration. Syntax show ports storm-control [interface] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 124 Ethernet Configuration Commands Page 123...
  • Page 125: Section 8.Gvrp Commands

    D-Link CLI Reference Guide Section 8. GVRP Commands gvrp enable (Global) GARP VLAN Registration Protocol (GVRP) is an industry-standard protocol designed to propagate VLAN information from device to device. With GVRP, a single device is manually configured with all desired VLANs for the network, and all other devices on the network learn these VLANs dynamically.
  • Page 126: Gvrp Enable (Interface)

    gvrp enable (Interface) The gvrp enable Interface Configuration (Ethernet, port-channel) mode command enables GVRP on an interface. To disable GVRP on an interface, use the no form of this command. Syntax gvrp enable no gvrp enable Default Configuration GVRP is disabled on all interfaces. Command Mode Interface Configuration (Ethernet, port-channel) mode User Guidelines...
  • Page 127: Garp Timer

    D-Link CLI Reference Guide garp timer The garp timer Interface Configuration (Ethernet, Port channel) mode command adjusts the values of the join, leave and leaveall timers of GARP applications. To return to the default configuration, use the no form of this command.
  • Page 128: Gvrp Vlan-Creation-Forbid

    gvrp vlan-creation-forbid The gvrp vlan-creation-forbid Interface Configuration (Ethernet, port-channel) mode command disables dynamic VLAN creation or modification. To enable dynamic VLAN creation or modification, use the no form of this command. Syntax gvrp vlan-creation-forbid no gvrp vlan-creation-forbid Default Configuration Dynamic VLAN creation or modification is enabled. Command Mode Interface Configuration (Ethernet, port-channel) mode User Guidelines...
  • Page 129: Gvrp Registration-Forbid

    D-Link CLI Reference Guide gvrp registration-forbid The gvrp registration-forbid Interface Configuration (Ethernet, port-channel) mode command deregisters all dynamic VLANs on a port and prevents VLAN creation or registration on the port. To allow dynamic registration of VLANs on a port, use the no form of this command.
  • Page 130: Clear Gvrp Statistics

    clear gvrp statistics The clear gvrp statistics Privileged EXEC mode command clears all GVRP statistical information. Syntax clear gvrp statistics [ethernet interface | port-channel port-channel-number] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
  • Page 131: Show Gvrp Configuration

    D-Link CLI Reference Guide show gvrp configuration The show gvrp configuration User EXEC mode command displays GVRP configuration information, including timer values, whether GVRP and dynamic VLAN creation is enabled, and which ports are running GVRP. Syntax show gvrp configuration [ethernet interface | port-channel port-channel-number] Parameters •...
  • Page 132: Show Gvrp Statistics

    show gvrp statistics The show gvrp statistics User EXEC mode command displays GVRP statistics. Syntax show gvrp statistics [ethernet interface | port-channel port-channel-number] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
  • Page 133: Show Gvrp Error-Statistics

    D-Link CLI Reference Guide show gvrp error-statistics The show gvrp error-statistics User EXEC mode command displays GVRP error statistics. Syntax show gvrp error-statistics [ethernet interface | port-channel port-channel-number] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) •...
  • Page 134 GVRP Commands Page 133...
  • Page 135: Section 9.Igmp Snooping Commands

    D-Link CLI Reference Guide Section 9. IGMP Snooping Commands ip igmp snooping (Global) The ip igmp snooping Global Configuration mode command enables Internet Group Management Protocol (IGMP) snooping. To disable IGMP snooping, use the no form of this command. Syntax...
  • Page 136: Ip Igmp Snooping (Interface)

    ip igmp snooping (Interface) The ip igmp snooping Interface Configuration (VLAN) mode command enables Internet Group Management Protocol (IGMP) snooping on a specific VLAN. To disable IGMP snooping on a VLAN interface, use the no form of this command. Syntax ip igmp snooping no ip igmp snooping Default Configuration...
  • Page 137: Ip Igmp Snooping Mrouter Learn-Pim-Dvmrp

    D-Link CLI Reference Guide ip igmp snooping mrouter learn-pim-dvmrp The ip igmp snooping mrouter learn-pim-dvmrp Interface Configuration (VLAN) mode command enables automatic learning of multicast device ports in the context of a specific VLAN. To remove automatic learning of multicast device ports, use the no form of this command.
  • Page 138: Ip Igmp Snooping Host-Time-Out

    ip igmp snooping host-time-out The ip igmp snooping host-time-out Interface Configuration (VLAN) mode command configures the host-time- out. If an IGMP report for a multicast group was not received for a host-time-out period from a specific port, this port is deleted from the member list of that multicast group. To return to the default configuration, use the no form of this command.
  • Page 139: Ip Igmp Snooping Mrouter-Time-Out

    D-Link CLI Reference Guide ip igmp snooping mrouter-time-out The ip igmp snooping mrouter-time-out Interface Configuration (VLAN) mode command configures the mrouter-time-out. The ip igmp snooping mrouter-time-out Interface Configuration (VLAN) mode command is used for setting the aging-out time after multicast device ports are automatically learned. To return to the default configuration, use the no form of this command.
  • Page 140: Ip Igmp Snooping Leave-Time-Out

    ip igmp snooping leave-time-out The ip igmp snooping leave-time-out Interface Configuration (VLAN) mode command configures the leave- time-out. If an IGMP report for a multicast group was not received for a leave-time-out period after an IGMP Leave was received from a specific port, this port is deleted from the member list of that multicast group.To return to the default configuration, use the no form of this command.
  • Page 141: Show Ip Igmp Snooping Mrouter

    D-Link CLI Reference Guide show ip igmp snooping mrouter The show ip igmp snooping mrouter User EXEC mode command displays information on dynamically learned multicast device interfaces. Syntax show ip igmp snooping mrouter [interface vlan-id] Parameters • vlan-id — VLAN number.
  • Page 142: Show Ip Igmp Snooping Interface

    show ip igmp snooping interface The show ip igmp snooping interface User EXEC mode command displays IGMP snooping configuration. Syntax show ip igmp snooping interface vlan-id Parameters • vlan-id — VLAN number. Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines...
  • Page 143: Show Ip Igmp Snooping Groups

    D-Link CLI Reference Guide show ip igmp snooping groups The show ip igmp snooping groups User EXEC mode command displays multicast groups learned by IGMP snooping. Syntax show ip igmp snooping groups [vlan vlan-id] [address ip-multicast-address] Parameters • vlan-id — VLAN number.
  • Page 144 IGMP Snooping Commands Page 143...
  • Page 145: Section 10.Ip Addressing Commands

    D-Link CLI Reference Guide Section 10. IP Addressing Commands ip address The ip address Interface Configuration (Ethernet, VLAN, port-channel) mode command sets an IP address. To remove an IP address, use the no form of this command. Syntax ip address ip-address {mask | prefix-length}...
  • Page 146: Ip Address Dhcp

    The no ip address dhcp command deconfigures any IP address that was acquired, thus sending a DHCPRELEASE message. Note The command is only valid when the device is in Switch mode. Example The following example acquires an IP address for Ethernet port 1/16 from DHCP.
  • Page 147: Ip Default-Gateway

    Default Configuration No default gateway is defined. Command Mode Global Configuration mode User Guidelines Note The command is only valid when the device is in Switch mode. Example The following example defines default gateway 192.168.1.1. Console(config)# ip default-gateway 192.168.1.1 Page 146...
  • Page 148: Show Ip Interface

    show ip interface The show ip interface Privileged EXEC mode command displays the usability status of configured IP interfaces. Syntax show ip interface [ethernet interface-number | vlan vlan-id | port-channel port-channel number |] Parameters • interface-number — Valid Ethernet port. •...
  • Page 149: Arp

    D-Link CLI Reference Guide The arp Global Configuration mode command adds a permanent entry in the Address Resolution Protocol (ARP) cache. To remove an entry from the ARP cache, use the no form of this command. Syntax arp ip_addr hw_addr {ethernet interface-number | vlan vlan-id | port-channel port-channel number.} no arp ip_addr {ethernet interface-number | vlan vlan-id | port-channel port-channel number.}...
  • Page 150: Arp Timeout

    IP Addressing Commands arp timeout The arp timeout Global Configuration mode command configures how long an entry remains in the ARP cache. To return to the default configuration, use the no form of this command. Syntax arp timeout seconds no arp timeout Parameters •...
  • Page 151: Ip Proxy-Arp

    D-Link CLI Reference Guide ip proxy-arp The ip proxy-arp global configuration command enables ARP proxy. To disable ARP, use the no form of this command. Syntax ip proxy-arp no ip proxy-arp Default Configuration By default ARP proxy is disabled. Command Mode...
  • Page 152: Clear Arp-Cache

    IP Addressing Commands clear arp-cache The clear arp-cache Privileged EXEC mode command deletes all dynamic entries from the ARP cache. Syntax clear arp-cache Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example deletes all dynamic entries from the ARP cache.
  • Page 153: Show Arp

    D-Link CLI Reference Guide show arp The show arp Privileged EXEC mode command displays entries in the ARP table. Syntax show arp Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 154: Interface Ip

    interface ip The interface ip global configuration command configures an IP interface and enters the IP interface configuration mode. Syntax interface ip ip-address Parameters • ip-address — One of the device IP addresses. Default Configuration This command has no default configuration. Command Mode Global Configuration mode User Guidelines...
  • Page 155: Directed-Broadcast

    D-Link CLI Reference Guide directed-broadcast The directed-broadcast interface configuration command enables the translation of a directed broadcast to physical broadcasts. To disable this function, use the no form of this command. Syntax directed-broadcast no directed-broadcast Default Configuration Disabled, all IP directed broadcasts are dropped.
  • Page 156: Broadcast-Address

    broadcast-address The broadcast-address interface configuration command defines an interface broadcast address. To restore the default IP broadcast address, use the no form of this command. Syntax broadcast-address {255.255.255.255 | 0.0.0.0} no broadcast-address Parameters • 255.255.255.255 — Use 255.255.255.255 as the broadcast address. •...
  • Page 157: Helper-Address

    D-Link CLI Reference Guide helper-address The helper-address interface configuration command enables the software to forward User Datagram Protocol (UDP) broadcasts, including BOOTP, received on an interface. To disable broadcast packets forwarding to specific addresses, use the no form of this command.
  • Page 158 IP Addressing Commands Console (config-ip)# helper-address 172.16.9.9 49 53 Page 157...
  • Page 159: Ip Domain-Lookup

    D-Link CLI Reference Guide ip domain-lookup The ip domain-lookup Global Configuration mode command enables the IP Domain Naming System (DNS)- based host name-to-address translation. To disable DNS-based host name-to-address translation, use the no form of this command. Syntax ip domain-lookup...
  • Page 160: Ip Domain-Name

    (Range: 1-158 characters) Default Configuration A default domain name is not defined. Command Mode Global Configuration mode User Guidelines There are no user guidelines for this command. Examples The following example defines default domain name www.D-Link.com. Console(config)# ip domain-name www.D-Link.com Page 159...
  • Page 161: Ip Name-Server

    D-Link CLI Reference Guide ip name-server The ip name-server Global Configuration mode command defines the available name servers. To remove a name server, use the no form of this command. Syntax ip name-server server-address [server-address2 … server-address8] no ip name-server [server-address1 … server-address8] Parameters •...
  • Page 162: Ip Host

    No host is defined. Command Mode Global Configuration mode User Guidelines There are no user guidelines for this command. Examples The following example defines a static host name-to-address mapping in the host cache. Console(config)# ip host accounting.D-Link.com 176.10.23.1 IP Addressing Commands Page 161...
  • Page 163: Clear Host

    D-Link CLI Reference Guide clear host The clear host Privileged EXEC mode command deletes entries from the host name-to-address cache. Syntax clear host {name | *} Parameters • name — Specifies the host entry to be removed. (Range: 1-158 characters •...
  • Page 164: Clear Host Dhcp

    This command deletes the host name-to-address mapping temporarily until the next renewal of the IP address. Note The command is only valid when the device is in Switch mode. Examples The following example deletes all entries from the host name-to-address mapping.
  • Page 165: Show Hosts

    D-Link CLI Reference Guide show hosts The show hosts Privileged EXEC mode command displays the default domain name, a list of name server hosts, the static and the cached list of host names and addresses. Syntax show hosts [name] Parameters •...
  • Page 166 IP Addressing Commands Page 165...
  • Page 167: Section 11.Ip Routing Commands

    D-Link CLI Reference Guide Section 11. IP Routing Commands ip route The ip route global configuration command establishes static IP routes. To remove static IP routes, use the no form of this command. Syntax ip route prefix {mask | prefix-length} gateway [metric distance] [reject]...
  • Page 168: Show Ip Route

    show ip route The show ip route user EXEC command displays the routing table current state. Syntax show ip route [protocol] show ip route address address [mask | prefix-length] [longer-prefixes] Parameters • protocol—A routing protocol, or the keyword connected, static. If specifying a routing protocol, use one of the following keywords: ospf, rip.
  • Page 169 D-Link CLI Reference Guide Examples The following example displays the whole routing table state. Console> show ip route Maximum Parallel Paths: 2 (4 after reset) Codes: C - connected, S - static, R - RIP, O - OSPF, E - OSPF external, * - candidate default R 10.0.0.0/8 is rejected...
  • Page 170 IP Routing Commands Ethernet 1 Specifies the interface through which the specified network can be reached. Page 169...
  • Page 171: Section 12.Lacp Commands

    D-Link CLI Reference Guide Section 12. LACP Commands lacp system-priority The lacp system-priority Global Configuration mode command configures the system priority. To return to the default configuration, use the no form of this command. Syntax lacp system-priority value no lacp system-priority Parameters •...
  • Page 172: Lacp Port-Priority

    lacp port-priority The lacp port-priority Interface Configuration (Ethernet) mode command configures physical port priority. To return to the default configuration, use the no form of this command. Syntax lacp port-priority value no lacp port-priority Parameters • value — Specifies port priority. (Range: 1 - 65535) Default Configuration The default port priority is 1.
  • Page 173: Lacp Timeout

    D-Link CLI Reference Guide lacp timeout The lacp timeout Interface Configuration (Ethernet) mode command assigns an administrative LACP timeout. To return to the default configuration, use the no form of this command. Syntax lacp timeout {long | short} no lacp timeout Parameters •...
  • Page 174: Show Lacp Ethernet

    show lacp ethernet The show lacp ethernet Privileged EXEC mode command displays LACP information for Ethernet ports. Syntax show lacp ethernet interface [parameters | statistics | protocol-state] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) • parameters — Link aggregation parameter information. •...
  • Page 175 D-Link CLI Reference Guide distributing: expired: Partner system priority: system mac addr: port Admin key: port Oper key: port Oper number: port Admin priority: port Oper priority: port Oper timeout: LACP Activity: Aggregation: synchronization: collecting: distributing: expired: Port 1/2 LACP Statistics:...
  • Page 176: Show Lacp Port-Channel

    show lacp port-channel The show lacp port-channel Privileged EXEC mode command displays LACP information for a port-channel. Syntax show lacp port-channel [port_channel_number] Parameters • port_channel_number — Valid port-channel number. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 177: Section 13.Line Commands

    D-Link CLI Reference Guide Section 13. Line Commands line The line Global Configuration mode command identifies a specific line for configuration and enters the Line Configuration command mode. Syntax line {console | telnet | ssh} Parameters • console — Console terminal line.
  • Page 178: Speed

    speed The speed Line Configuration mode command sets the line baud rate. To return to the default configuration, use the no form of the command. Syntax speed bps no speed Parameters • bps—Baud rate in bits per second (bps). Possible values are 2400, 9600, 19200, 38400, 57600 and 115200. Default Configuration The default speed is 9600 bps.
  • Page 179: Autobaud

    D-Link CLI Reference Guide autobaud The autobaud Line Configuration mode command sets the line for automatic baud rate detection (autobaud). To disable automatic baud rate detection, use the no form of the command. Syntax autobaud no autobaud Default Configuration Autobaud is disabled.
  • Page 180: Exec-Timeout

    exec-timeout The exec-timeout Line Configuration mode command sets the interval that the system waits until user input is detected. To return to the default configuration, use the no form of this command. Syntax exec-timeout minutes [seconds] no exec-timeout Parameters • minutes —...
  • Page 181: History

    D-Link CLI Reference Guide history The history Line Configuration mode command enables the command history function. To disable the command history function, use the no form of this command. Syntax history no history Default Configuration The command history function is enabled.
  • Page 182: History Size

    Line Commands history size The history size Line Configuration mode command configures the command history buffer size for a particular line. To reset the command history buffer size to the default configuration, use the no form of this command. Syntax history size number-of-commands no history size Parameters...
  • Page 183: Terminal History

    D-Link CLI Reference Guide terminal history The terminal history user EXEC command enables the command history function for the current terminal session. To disable the command history function, use the no form of this command. Syntax terminal history terminal no history Default Configuration The default configuration for all terminal sessions is defined by the history line configuration command.
  • Page 184: Terminal History Size

    Line Commands terminal history size The terminal history size user EXEC command configures the command history buffer size for the current terminal session. To reset the command history buffer size to the default setting, use the no form of this command. Syntax terminal history size number-of-commands terminal no history size...
  • Page 185: Show Line

    D-Link CLI Reference Guide show line The show line User EXEC mode command displays line parameters. Syntax show line [console | telnet | ssh] Parameters • console — Console terminal line. • telnet — Virtual terminal for remote console access (Telnet).
  • Page 186 Line Commands Page 185...
  • Page 187: Section 14.Management Acl Commands

    D-Link CLI Reference Guide Section 14. Management ACL Commands management access-list The management access-list Global Configuration mode command configures a management access list and enters the Management Access-list Configuration command mode. To delete an access list, use the no form of this command.
  • Page 188 The following example creates a management access list called mlist, configures all interfaces to be management interfaces except Ethernet interfaces 1/1 and 2/9 and makes the new access list the active list. Console(config)# management access-list mlist Console(config-macl)# deny ethernet 1/1 Console(config-macl)# deny ethernet 2/9 Console(config-macl)# permit Console(config-macl)# exit...
  • Page 189: Permit (Management)

    D-Link CLI Reference Guide permit (Management) The permit Management Access-List Configuration mode command defines a permit rule. Syntax permit [ethernet interface-number | vlan vlan-id | port-channel port-channel-number |] [service service] permit ip-source ip-address [mask mask | prefix-length] [ethernet interface-number | vlan vlan-id | port-channel...
  • Page 190: Deny (Management)

    deny (Management) The deny Management Access-List Configuration mode command defines a deny rule. Syntax deny [ethernet interface-number | vlan vlan-id | port-channel port-channel-number |] [service service] deny ip-source ip-address [mask mask | prefix-length] [ethernet interface-number | vlan vlan-id | port-channel port-channel-number |] [service service] Parameters •...
  • Page 191: Management Access-Class

    D-Link CLI Reference Guide management access-class The management access-class Global Configuration mode command restricts management connections by defining the active management access list. To disable this restriction, use the no form of this command. Syntax management access-class {console-only | name}...
  • Page 192: Show Management Access-List

    show management access-list The show management access-list Privileged EXEC mode command displays management access-lists. Syntax show management access-list [name] Parameters • name — Specifies the name of a management access list. (Range: 1 - 32 characters) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 193: Show Management Access-Class

    D-Link CLI Reference Guide show management access-class The show management access-class Privileged EXEC mode command displays the active management access list. Syntax show management access-class Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 194 Management ACL Commands Page 193...
  • Page 195: Section 15.Phy Diagnostics Commands

    D-Link CLI Reference Guide Section 15. PHY Diagnostics Commands test copper-port tdr The test copper-port tdr Privileged EXEC mode command uses Time Domain Reflectometry (TDR) technology to diagnose the quality and characteristics of a copper cable attached to a port.
  • Page 196: Show Copper-Ports Tdr

    show copper-ports tdr The show copper-ports tdr User EXEC mode command displays information on the last Time Domain Reflectometry (TDR) test performed on copper ports. Syntax show copper-ports tdr [interface] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 197: Show Copper-Ports Cable-Length

    D-Link CLI Reference Guide show copper-ports cable-length The show copper-ports cable-length User EXEC mode command displays the estimated copper cable length attached to a port. Syntax show copper-ports cable-length [interface] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 198: Show Fiber-Ports Optical-Transceiver

    show fiber-ports optical-transceiver The show fiber-ports optical-transceiver Privileged EXEC command displays the optical transceiver diagnostics. Syntax show fiber-ports optical-transceiver [interface] [detailed] Parameters • interface — A valid Ethernet port. (Full syntax: unit/port) • detailed — Detailed diagnostics. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 199 D-Link CLI Reference Guide Console# show fiber-ports optical-transceiver detailed Port Temp Voltage [Volt] ---- ---- ------- 5.15 5.15 Copper Temp – Internally measured transceiver temperature. Voltage - Internally measured supply voltage. Current – Measured TX bias current. Output Power – Measured TX output power.
  • Page 200 PHY Diagnostics Commands Page 199...
  • Page 201: Section 16.Port Channel Commands

    D-Link CLI Reference Guide Section 16. Port Channel Commands interface port-channel The interface port-channel Global Configuration mode command enters the interface configuration mode to configure a specific port-channel. Syntax interface port-channel port-channel-number Parameters • port-channel-number — A valid port-channel number.
  • Page 202: Interface Range Port-Channel

    interface range port-channel The interface range port-channel Global Configuration mode command enters the interface configuration mode to configure multiple port-channels. Syntax interface range port-channel {port-channel-range | all} Parameters • port-channel-range — List of valid port-channels to add. Separate nonconsecutive port-channels with a comma and no spaces.
  • Page 203: Channel-Group

    D-Link CLI Reference Guide channel-group The channel-group Interface Configuration (Ethernet) mode command associates a port with a port-channel. To remove a port from a port-channel, use the no form of this command. Syntax channel-group port-channel-number mode {on | auto} no channel-group Parameters •...
  • Page 204: Show Interfaces Port-Channel

    show interfaces port-channel The show interfaces port-channel Privileged EXEC mode command displays port-channel information. Syntax show interfaces port-channel [port-channel-number] Parameters • port-channel-number — Valid port-channel number. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 205: Section 17.Port Monitor Commands

    D-Link CLI Reference Guide Section 17. Port Monitor Commands port monitor The port monitor Interface Configuration mode command starts a port monitoring session. To stop a port monitoring session, use the no form of this command. Syntax port monitor src-interface [rx | tx]...
  • Page 206: Port Monitor Vlan-Tagging

    port monitor vlan-tagging The port monitor Interface Configuration (Ethernet) mode command transmits tagged ingress mirrored packets. To transmit untagged ingress mirrored packets, use the no form of this command. Syntax port monitor vlan-tagging no port monitor vlan-tagging Default Configuration Ingress mirrored packets are transmitted untagged. Command Mode Interface Configuration (Ethernet) mode User Guidelines...
  • Page 207: Show Ports Monitor

    D-Link CLI Reference Guide show ports monitor The show ports monitor User EXEC mode command displays the port monitoring status. Syntax show ports monitor Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 208 Port Monitor Commands Page 207...
  • Page 209: Section 18.Power Over Ethernet Commands

    D-Link CLI Reference Guide Section 18. Power over Ethernet Commands power inline The port inline Interface Configuration (Ethernet) mode command configures the administrative mode of inline power on an interface. Note This section is only relevant for the 3227P devices.
  • Page 210: Power Inline Powered-Device

    power inline powered-device The power inline powered-device Interface Configuration (Ethernet) mode command adds a comment or description of the powered device type to enable the user to remember what is attached to the interface. To remove the description, use the no form of this command. Syntax power inline powered-device pd-type no power inline powered-device...
  • Page 211: Power Inline Priority

    D-Link CLI Reference Guide power inline priority The power inline priority Interface Configuration (Ethernet) mode command configures the inline power management priority of the interface. To return to the default configuration, use the no form of this command. Syntax power inline priority {critical | high | low}...
  • Page 212: Power Inline Usage-Threshold

    Power over Ethernet Commands power inline usage-threshold The power inline usage-threshold Global Configuration mode command configures the threshold for initiating inline power usage alarms. To return to the default configuration, use the no form of this command. Syntax power inline usage-threshold percentage no power inline usage-threshold Parameters •...
  • Page 213: Power Inline Traps Enable

    D-Link CLI Reference Guide power inline traps enable The power inline traps enable Global Configuration mode command enables inline power traps. To disable inline power traps, use the no form of this command. Syntax power inline traps enable no power inline traps Default Configuration Inline power traps are disabled.
  • Page 214: Show Power Inline

    show power inline The show power inline User EXEC mode command displays the information about inline power. Syntax show power inline [ethernet interface] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines...
  • Page 215 D-Link CLI Reference Guide Overload Counter: 1 Short Counter: 0 Denied Counter: 0 Absent Counter: 0 Invalid Signature Counter: 0 The following table describes the significant fields shown in the example: Field Desc ription Power The operational status of the inline power sourcing equipment.
  • Page 216 Power over Ethernet Commands Page 215...
  • Page 217: Section 19.Qos Commands

    D-Link CLI Reference Guide Section 19. QoS Commands The qos Global Configuration mode command enables quality of service (QoS) on the device. To disable QoS on the device, use the no form of this command. Syntax qos [basic | advanced | service]...
  • Page 218: Show Qos

    show qos The show qos User EXEC mode command displays the quality of service (QoS) mode for the device. Syntax show qos Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines Trust mode is displayed if QoS is enabled in basic mode. Example The following example displays QoS attributes when QoS is enabled in basic mode on the device.
  • Page 219: Class-Map

    D-Link CLI Reference Guide class-map The create-map Global Configuration mode command creates or modifies a class map and enters the Class-map Configuration mode. To delete a class map, use the no form of this command. Syntax class-map class-map-name [match-all | match-any]...
  • Page 220: Show Class-Map

    show class-map The show class-map User EXEC mode command displays all class maps. Syntax show class-map [class-map-name] Parameters • class-map-name — Specifies the name of the class map to be displayed. Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 221: Match Access-Group

    User Guidelines There are no user guidelines for this command. Example The following example defines the match criterion for classifying traffic as an access group called D-Link in a class map called class1.. Console (config)# class-map class1 Console (config-cmap)# match access-group D-Link...
  • Page 222: Policy-Map

    policy-map The policy-map Global Configuration mode command creates a policy map and enters the Policy-map Configuration mode. To delete a policy map, use the no form of this command. Syntax policy-map policy-map-name no policy-map policy-map-name Parameters • policy-map-name — Specifies the name of the policy map. Default Configuration If the packet is an IP packet, the DCSP value of the policy map is 0.
  • Page 223: Class

    If this command is used to create a new class map, the name of an IP or MAC ACL must also be specified. Example The following example defines a traffic classification called class1 with an access-group called D-Link. The class is in a policy map called policy1.
  • Page 224: Show Policy-Map

    show policy-map The show policy-map User EXEC command displays the policy maps. Syntax show policy-map [policy-map-name [class class-name]] Parameters • policy-map-name — Specifies the name of the policy map to be displayed. • class-name — Specifies the name of the class whose QoS policies are to be displayed. Default Configuration This command has no default configuration.
  • Page 225: Trust Cos-Dscp

    D-Link CLI Reference Guide trust cos-dscp The trust cos-dscp Policy-map Class Configuration mode command configures the trust state. The trust state determines the source of the internal DSCP value used by Quality of Service (QoS). To return to the default configuration, use the no form of this command.
  • Page 226: Set

    The set Policy-map Class Configuration mode command sets new values in the IP packet. Syntax set {dscp new-dscp | queue queue-id | cos new-cos} no set Parameters • new-dscp — Specifies a new DSCP value for the classified traffic. (Range: 0-63) •...
  • Page 227: Police

    D-Link CLI Reference Guide police The police Policy-map Class Configuration mode command defines the policer for classified traffic. To remove a policer, use the no form of this command. Syntax police committed-rate-bps committed -burst-byte [exceed-action {drop | policed-dscp-transmit }] no police Parameters •...
  • Page 228: Service-Policy

    QoS Commands service-policy The service-policy Interface Configuration (Ethernet, port-Channel) mode command applies a policy map to the input of a particular interface. To detach a policy map from an interface, use the no form of this command. Syntax service-policy {input policy-map-name} no service-policy {input} Parameters •...
  • Page 229: Qos Aggregate-Policer

    D-Link CLI Reference Guide qos aggregate-policer The qos aggregate-policer Global Configuration mode command defines the policer parameters that can be applied to multiple traffic classes within the same policy map. To remove an existing aggregate policer, use the no form of this command.
  • Page 230 QoS Commands Example The following example defines the parameters of a policer called policer1 that can be applied to multiple classes in the same policy map. When the average traffic rate exceeds 124,000 bps or the normal burst size exceeds 96000 bps, the packet is dropped..
  • Page 231: Show Qos Aggregate-Policer

    D-Link CLI Reference Guide show qos aggregate-policer The show qos aggregate-policer User EXEC mode command displays the aggregate policer parameter. Syntax show qos aggregate-policer [aggregate-policer-name] Parameters • aggregate-policer-name — Specifies the name of the aggregate policer to be displayed. Default Configuration This command has no default configuration.
  • Page 232: Police Aggregate

    police aggregate The police aggregate Policy-map Class Configuration mode command applies an aggregate policer to multiple classes within the same policy map. To remove an existing aggregate policer from a policy map, use the no form of this command. Syntax police aggregate aggregate-policer-name no police aggregate aggregate-policer-name Parameters...
  • Page 233: Wrr-Queue Cos-Map

    D-Link CLI Reference Guide wrr-queue cos-map The wrr-queue cos-map Global Configuration mode command maps Class of Service (CoS) values to a specific egress queue. To return to the default configuration, use the no form of this command. Syntax wrr-queue cos-map queue-id cos1...cos8...
  • Page 234: Wrr-Queue Bandwidth

    QoS Commands wrr-queue bandwidth The wrr-queue bandwidth Interface Configuration (Ethernet, port-channel) mode command assigns weights to each Weighted Round Robin (WRR) queue. The weight ratio determines the frequency by which the packet scheduler dequeues packets from each queue. To return to the default configuration, use the no form of this command.
  • Page 235: Priority-Queue Out Num-Of-Queues

    D-Link CLI Reference Guide priority-queue out num-of-queues The priority-queue out num-of-queues Global Configuration mode command configures the number of expedite queues. To return to the default configuration, use the no form of this command. Syntax priority-queue out num-of-queues number-of-queues no priority-queue out num-of-queues Parameters •...
  • Page 236: Traffic-Shape

    traffic-shape The traffic-shape Interface Configuration (Ethernet, port-channel) mode command configures the shaper of the egress port/queue. To disable the shaper, use the no form of this command. Syntax traffic-shape { committed-rate committed-burst } [queue-id] no traffic-shape [queue-id] Parameters • committed-rate — Specifies the average traffic rate (CIR) in bits per second (bps). (Range: 6510-1073741800) •...
  • Page 237: Show Qos Interface

    D-Link CLI Reference Guide show qos interface The show qos interface User EXEC mode command displays Quality of Service (QoS) information on the interface. Syntax show qos interface [ethernet interface-number | port-channel number | port-channel number] [buffers | queueing | policers | shapers] Parameters •...
  • Page 238: Qos Commands

    Prob Prob Page 237 QoS Commands Threshold Prob Weight...
  • Page 239: Qos Wrr-Queue Threshold

    D-Link CLI Reference Guide qos wrr-queue threshold The wrr-queue threshold Global Configuration mode command assigns queue thresholds globally. To return to the default configuration, use the no form of this command. Syntax qos wrr-queue threshold queue-id threshold-percentage0 threshold-percentage1, threshold-percentage2 no qos wrr-queue threshold queue-id...
  • Page 240: Qos Map Policed-Dscp

    qos map policed-dscp The qos map policed-dscp Global Configuration mode command modifies the policed-DSCP map for remarking purposes. To return to the default map, use the no form of this command. Syntax qos map policed-dscp dscp-list to dscp-mark-down no qos map policed-dscp Parameters •...
  • Page 241: Qos Map Dscp-Queue

    D-Link CLI Reference Guide qos map dscp-queue The qos map dscp-queue Global Configuration mode command modifies the DSCP to CoS map. To return to the default map, use the no form of this command. Syntax qos map dscp-queue dscp-list to queue-id...
  • Page 242: Qos Trust (Global)

    Packets entering a quality of service (QoS) domain are classified at the edge of the QoS domain. When packets are classified at the edge, the switch port within the QoS domain can be configured to one of the trusted states because there is no need to classify the packets at every device in the domain.
  • Page 243: Qos Trust (Interface)

    D-Link CLI Reference Guide qos trust (Interface) The qos trust Interface Configuration (Ethernet, port-channel) mode command enables each port trust state while the system is in the basic QoS mode. To disable the trust state on each port, use the no form of this command.
  • Page 244: Qos Cos

    qos cos The qos cos Interface Configuration (Ethernet, port-channel) mode command defines the default CoS value of a port. To return to the default configuration, use the no form of this command. Syntax qos cos default-cos no qos cos Parameters •...
  • Page 245: Qos Dscp-Mutation

    D-Link CLI Reference Guide qos dscp-mutation The qos dscp-mutation Global Configuration mode command applies the DSCP Mutation map to a system DSCP trusted port. To return to the trust state with no DSCP mutation, use the no form of this command.
  • Page 246: Qos Map Dscp-Mutation

    qos map dscp-mutation The qos map dscp-mutation Global Configuration mode command modifies the DSCP to DSCP mutation map. To return to the default DSCP to DSCP mutation map, use the no form of this command. Syntax qos map dscp-mutation in-dscp to out-dscp no qos map dscp-mutation Parameters •...
  • Page 247: Section 20.Radius Commands

    D-Link CLI Reference Guide Section 20. Radius Commands radius-server host The radius-server host Global Configuration mode command specifies a RADIUS server host. To delete the specified RADIUS host, use the no form of this command. Syntax radius-server host {ip-address | hostname} [auth-port auth-port-number] [timeout timeout] [retransmit retries]...
  • Page 248 Radius Commands Example The following example specifies a RADIUS server host with IP address 192.168.10.1, authentication request port number 20 and a 20-second timeout period. Console(config)# radius-server host 192.168.10.1 auth-port 20 timeout 20 Page 247...
  • Page 249: Radius-Server Key

    D-Link CLI Reference Guide radius-server key The radius-server key Global Configuration mode command sets the authentication and encryption key for all RADIUS communications between the device and the RADIUS daemon. To return to the default configuration, use the no form of this command.
  • Page 250: Radius-Server Retransmit

    Radius Commands radius-server retransmit The radius-server retransmit Global Configuration mode command specifies the number of times the software searches the list of RADIUS server hosts. To reset the default configuration, use the no form of this command. Syntax radius-server retransmit retries no radius-server retransmit Parameters •...
  • Page 251: Radius-Server Source-Ip

    D-Link CLI Reference Guide radius-server source-ip The radius-server source-ip Global Configuration mode command specifies the source IP address used for communication with RADIUS servers. To return to the default configuration, use the no form of this command. Syntax radius-server source-ip source...
  • Page 252: Radius-Server Timeout

    Radius Commands radius-server timeout The radius-server timeout Global Configuration mode command sets the interval during which the device waits for a server host to reply. To return to the default configuration, use the no form of this command. Syntax radius-server timeout timeout no radius-server timeout Parameters •...
  • Page 253: Radius-Server Deadtime

    D-Link CLI Reference Guide radius-server deadtime The radius-server deadtime Global Configuration mode command improves RADIUS response time when servers are unavailable. The command is used to cause the unavailable servers to be skipped. To return to the default configuration, use the no form of this command.
  • Page 254: Show Radius-Servers

    show radius-servers The show radius-servers Privileged EXEC mode command displays the RADIUS server settings. Syntax show radius-servers Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Examples The following example displays RADIUS server settings.
  • Page 255: Section 21.Rmon Commands

    D-Link CLI Reference Guide Section 21. RMON Commands show rmon statistics The show rmon statistics User EXEC mode command displays RMON Ethernet statistics. Syntax show rmon statistics {ethernet interface number | port-channel port-channel-number} Parameters • interface number — Valid Ethernet port.
  • Page 256 The following table describes significant fields shown above: Field De scrip tio n Octets The total number of octets of data (including those in bad packets) received on the net- work (excluding framing bits but including FCS octets). Packets The total number of packets (including bad packets, broadcast packets, and multicast packets) received.
  • Page 257: Rmon Collection History

    D-Link CLI Reference Guide rmon collection history The rmon collection history Interface Configuration (Ethernet, port-channel) mode command enables a Remote Monitoring (RMON) MIB history statistics group on an interface. To remove a specified RMON history statistics group, use the no form of this command.
  • Page 258: Show Rmon Collection History

    show rmon collection history The show rmon collection history User EXEC mode command displays the requested RMON history group statistics. Syntax show rmon collection history [ethernet interface | port-channel port-channel-number] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) •...
  • Page 259: Show Rmon History

    D-Link CLI Reference Guide show rmon history The show rmon history User EXEC mode command displays RMON Ethernet history statistics. Syntax show rmon history index {throughput | errors | other} [period seconds] Parameters • index — Specifies the requested set of samples. (Range: 1 - 65535) •...
  • Page 260 Maximum table size: 500 (800 after reset) Time CRC Align ---------- --------- Jan 18 2002 21:57:00 Jan 18 2002 21:57:30 Console> show rmon history 1 other Sample Set: 1 Interface: 1/3 Requested samples: 50 Maximum table size: 500 Time -------------------- Jan 18 2002 21:57:00 Jan 18 2002 21:57:30 The following table describes significant fields shown above:...
  • Page 261 D-Link CLI Reference Guide Fragments The total number of packets received during this sampling interval that were less than 64 octets in length (excluding framing bits but including FCS octets) had either a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error), or a bad FCS with a non-inte- gral number of octets (AlignmentError).
  • Page 262: Rmon Alarm

    rmon alarm The rmon alarm Global Configuration mode command configures alarm conditions. To remove an alarm, use the no form of this command. Syntax rmon alarm index variable interval rthreshold fthreshold revent fevent [type type] [startup direction] [owner name] no rmon alarm index Parameters •...
  • Page 263 Sample interval — 360000 seconds • Rising threshold — 1000000 • Falling threshold — 1000000 • Rising threshold event index — 10 • Falling threshold event index — 20 Console(config)# rmon alarm 1000 D-Link 360000 1000000 1000000 10 20 Page 262...
  • Page 264: Show Rmon Alarm-Table

    show rmon alarm-table The show rmon alarm-table User EXEC mode command displays the alarms table. Syntax show rmon alarm-table Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command. Example The following example displays the alarms table.
  • Page 265: Show Rmon Alarm

    D-Link CLI Reference Guide show rmon alarm The show rmon alarm User EXEC mode command displays alarm configuration. Syntax show rmon alarm number Parameters • number — Specifies the alarm index. (Range: 1 - 65535) Default Configuration This command has no default configuration.
  • Page 266 Interval The interval in seconds over which the data is sampled and compared with the rising and falling thresholds. Sample Type The method of sampling the variable and calculating the value compared against the thresholds. If the value is absolute, the value of the variable is compared directly with the thresholds at the end of the sampling interval.
  • Page 267: Rmon Event

    D-Link CLI Reference Guide rmon event The rmon event Global Configuration mode command configures an event. To remove an event, use the no form of this command. Syntax rmon event index type [community text] [description text] [owner name] no rmon event index Parameters •...
  • Page 268: Show Rmon Events

    show rmon events The show rmon events User EXEC mode command displays the RMON event table. Syntax show rmon events Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command. Example The following example displays the RMON event table.
  • Page 269: Show Rmon Log

    D-Link CLI Reference Guide show rmon log The show rmon log User EXEC mode command displays the RMON log table. Syntax show rmon log [event] Parameters • event — Specifies the event index. (Range: 0 - 65535) Default Configuration This command has no default configuration.
  • Page 270 The following table describes the significant fields shown in the display: Field D escr ip tio n Event An index that uniquely identifies the event. Description A comment describing this event. Time The time this entry was created. Page 269 RMON Commands...
  • Page 271: Rmon Table-Size

    D-Link CLI Reference Guide rmon table-size The rmon table-size Global Configuration mode command configures the maximum size of RMON tables. To return to the default configuration, use the no form of this command. Syntax rmon table-size {history entries | log entries}...
  • Page 272 RMON Commands Page 271...
  • Page 273: Section 22.Snmp Commands

    D-Link CLI Reference Guide Section 22. SNMP Commands snmp-server community The snmp-server community Global Configuration mode command configures the community access string to permit access to the SNMP protocol. To remove the specified community string, use the no form of this command.
  • Page 274 SNMP Commands The internal security name for SNMPv1 and SNMPv2 security models is mapped to the group name. Examples The following example defines community access string public to permit administrative access to SNMP protocol at an administrative station with IP address 192.168.1.20. Console(config)# snmp-server community public su 192.168.1.20 Page 273...
  • Page 275: Snmp-Server View

    D-Link CLI Reference Guide snmp-server view The snmp-server view Global Configuration mode command creates or updates a Simple Network Management Protocol (SNMP) server view entry. To remove a specified SNMP server view entry, use the no form of this command.
  • Page 276: Snmp-Server Group

    snmp-server group The snmp-server group Global Configuration mode command configures a new Simple Management Protocol (SNMP) group or a table that maps SNMP users to SNMP views. To remove a specified SNMP group, use the no form of this command. Syntax snmp-server group groupname {v1 | v2 | v3 {noauth | auth | priv} [notify notifyview ] } [context name] [read readview] [write writeview]...
  • Page 277: Snmp-Server User

    D-Link CLI Reference Guide snmp-server user The snmp-server user Global Configuration mode command configures a new SNMP Version 3 user. To remove a user, use the no form of this command. Syntax snmp-server user username groupname [remote engineid-string] [ auth-md5 password | auth-sha password |...
  • Page 278 SNMP Commands Examples The following example configures an SNMPv3 user John in group user-group. Console(config)# snmp-server user John user-group Page 277...
  • Page 279: Snmp-Server Engineid Local

    D-Link CLI Reference Guide snmp-server engineID local The snmp-server engineID local Global Configuration mode command specifies the Simple Network Management Protocol (SNMP) engineID on the local device. To remove the configured engine ID, use the no form of this command.
  • Page 280 SNMP Commands The show running-config Privileged EXEC mode command does not display the SNMP engine ID configuration. To see the SNMP engine ID configuration, enter the snmp-server engineID local GlobalConfiguration mode command. Examples The following example enables SNMPv3 on the device and sets the local engine ID of the device to the default value.
  • Page 281: Snmp-Server Enable Traps

    D-Link CLI Reference Guide snmp-server enable traps The snmp-server enable traps Global Configuration mode command enables the device to send SNMP traps. To disable SNMP traps, use the no form of the command. Syntax snmp-server enable traps no snmp-server enable traps Default Configuration SNMP traps are enabled.
  • Page 282: Snmp-Server Filter

    snmp-server filter The snmp-server filter Global Configuration mode command creates or updates a Simple Network Management Protocol (SNMP) server filter entry. To remove the specified SNMP server filter entry, use the no form of this command. Syntax snmp-server filter filter-name oid-tree {included | excluded} no snmp-server filter filter-name [oid-tree] Parameters •...
  • Page 283: Snmp-Server Host

    D-Link CLI Reference Guide snmp-server host The snmp-server host Global Configuration mode command specifies the recipient of Simple Network Management Protocol Version 1 or Version 2 notifications. To remove the specified host, use the no form of this command. Syntax...
  • Page 284: Snmp-Server V3-Host

    snmp-server v3-host The snmp-server v3-host Global Configuration mode command specifies the recipient of Simple Network Management Protocol Version 3 notifications. To remove the specified host, use the no form of this command. Syntax snmp-server v3-host {ip-address | hostname} username [traps | informs] {noauth | auth | priv} [udp-port port] [filter filtername] [timeout seconds] [retries retries] no snmp-server host {ip-address | hostname} username [traps | informs] Parameters...
  • Page 285: Snmp-Server Trap Authentication

    D-Link CLI Reference Guide snmp-server trap authentication The snmp-server trap authentication Global Configuration mode command enables the device to send SNMP traps when authentication fails. To disable SNMP failed authentication traps, use the no form of this command. Syntax snmp-server trap authentication...
  • Page 286: Snmp-Server Contact

    SNMP Commands snmp-server contact The snmp-server contact Global Configuration mode command configures the system contact (sysContact) string. To remove system contact information, use the no form of the command. Syntax snmp-server contact text no snmp-server contact Parameters • text — Specifies the string that describes system contact information. (Range: 0-160 characters) Default Configuration This command has no default configuration.
  • Page 287: Snmp-Server Location

    D-Link CLI Reference Guide snmp-server location The snmp-server location Global Configuration mode command configures the system location string. To remove the location string, use the no form of this command. Syntax snmp-server location text no snmp-server location Parameters • text — Specifies a string that describes system location information. (Range: 0-160 characters) Default Configuration This command has no default configuration.
  • Page 288: Snmp-Server Set

    In order to generate configuration files that support those situations, the snmp-server set command is used. This command is case-sensitive. Examples The following example configures the scalar MIB sysName with the value D-Link. Console(config)# snmp-server set sysName sysname D-Link Page 287 SNMP Commands...
  • Page 289: Show Snmp

    D-Link CLI Reference Guide show snmp The show snmp Privileged EXEC mode command displays the SNMP status. Syntax show snmp Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 290 Version 3 notifications Target Address Type -------------- ----- 192.122.173.42 Inform System Contact: Robert System Location: Marketing The following table describes significant fields shown above. Field Description Community-string Community access string to permit access to the SNMP protocol. Community-access Type of access - read-only, read-write, super access IP Address Management station IP Address.
  • Page 291: Show Snmp Engineid

    D-Link CLI Reference Guide show snmp engineid The show snmp engineID Privileged EXEC mode command displays the ID of the local Simple Network Management Protocol (SNMP) engine. Syntax show snmp engineID Default Configuration This command has no default configuration. Command Mode...
  • Page 292: Show Snmp Views

    show snmp views The show snmp views Privileged EXEC mode command displays the configuration of views. Syntax show snmp views [viewname] Parameters • viewname — Specifies the name of the view. (Range: 1-30) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 293: Show Snmp Groups

    D-Link CLI Reference Guide show snmp groups The show snmp groups Privileged EXEC mode command displays the configuration of groups. Syntax show snmp groups [groupname] Parameters • groupname—Specifies the name of the group. (Range: 1-30) Default Configuration This command has no default configuration.
  • Page 294 Write Name of the view that enables entering data and managing the contents of the agent. Notify Name of the view that enables specifying an inform or a trap. Page 293 SNMP Commands...
  • Page 295: Show Snmp Filters

    D-Link CLI Reference Guide show snmp filters The show snmp filters Privileged EXEC mode command displays the configuration of filters. Syntax show snmp filters [filtername] Parameters • filtername—Specifies the name of the filter. (Range: 1-30) Default Configuration This command has no default configuration.
  • Page 296: Show Snmp Users

    show snmp users The show snmp users Privileged EXEC mode command displays the configuration of users. Syntax show snmp users [username] Parameters • username—Specifies the name of the user. (Range: 1-30) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 297: Section 23.Spanning-Tree Commands

    D-Link CLI Reference Guide Section 23. Spanning-Tree Commands spanning-tree The spanning-tree Global Configuration mode command enables spanning-tree functionality. To disable spanning-tree functionality, use the no form of this command. Syntax spanning-tree no spanning-tree Default Configuration Spanning-tree is enabled. Command Modes...
  • Page 298: Spanning-Tree Mode

    spanning-tree mode The spanning-tree mode Global Configuration mode command configures the spanning-tree protocol. To return to the default configuration, use the no form of this command. Syntax spanning-tree mode {stp | rstp| mstp} no spanning-tree mode Parameters • stp — Indicates that the Spanning Tree Protocol (STP) is enabled. •...
  • Page 299: Spanning-Tree Forward-Time

    D-Link CLI Reference Guide spanning-tree forward-time The spanning-tree forward-time Global Configuration mode command configures the spanning-tree bridge forward time, which is the amount of time a port remains in the listening and learning states before entering the forwarding state. To return to the default configuration, use the no form of this command.
  • Page 300: Spanning-Tree Hello-Time

    Spanning-Tree Commands spanning-tree hello-time The spanning-tree hello-time Global Configuration mode command configures the spanning tree bridge hello time, which is how often the device broadcasts hello messages to other devices.To return to the default configuration, use the no form of this command. Syntax spanning-tree hello-time seconds no spanning-tree hello-time...
  • Page 301: Spanning-Tree Max-Age

    D-Link CLI Reference Guide spanning-tree max-age The spanning-tree max-age Global Configuration mode command configures the spanning tree bridge maximum age. To return to the default configuration, use the no form of this command. Syntax spanning-tree max-age seconds no spanning-tree max-age Parameters •...
  • Page 302: Spanning-Tree Priority

    Spanning-Tree Commands spanning-tree priority The spanning-tree priority Global Configuration mode command configures the spanning tree priority of the device. The priority value is used to determine which bridge is elected as the root bridge. To return to the default configuration, use the no form of this command. Syntax spanning-tree priority priority no spanning-tree priority...
  • Page 303: Spanning-Tree Disable

    D-Link CLI Reference Guide spanning-tree disable The spanning-tree disable Interface Configuration mode command disables spanning tree on a specific port. To enable spanning tree on a port, use the no form of this command. Syntax spanning-tree disable no spanning-tree disable Default Configuration Spanning tree is enabled on all ports.
  • Page 304: Spanning-Tree Cost

    spanning-tree cost The spanning-tree cost Interface Configuration mode command configures the spanning tree path cost for a port. To return to the default configuration, use the no form of this command. Syntax spanning-tree cost cost no spanning-tree cost Parameters • cost —...
  • Page 305: Spanning-Tree Port-Priority

    D-Link CLI Reference Guide spanning-tree port-priority The spanning-tree port-priority Interface Configuration mode command configures port priority. To return to the default configuration, use the no form of this command. Syntax spanning-tree port-priority priority no spanning-tree port-priority Parameters • priority — The priority of the port. (Range: 0 - 240 in multiples of 16) Default Configuration The default port priority for IEEE Spanning TreeProtocol (STP) is 128.
  • Page 306: Spanning-Tree Portfast

    spanning-tree portfast The spanning-tree portfast Interface Configuration mode command enables PortFast mode. In PortFast mode, the interface is immediately put into the forwarding state upon linkup without waiting for the standard forward time delay. To disable PortFast mode, use the no form of this command. Syntax spanning-tree portfast no spanning-tree portfast...
  • Page 307: Spanning-Tree Link-Type

    D-Link CLI Reference Guide spanning-tree link-type The spanning-tree link-type Interface Configuration mode command overrides the default link-type setting determined by the duplex mode of the port and enables Rapid Spanning Tree Protocol (RSTP) transitions to the forwarding state. To return to the default configuration, use the no form of this command.
  • Page 308: Spanning-Tree Pathcost Method

    spanning-tree pathcost method The spanning-tree pathcost method Global Configuration mode command sets the default path cost method. To return to the default configuration, use the no form of this command. Syntax spanning-tree pathcost method {long | short} no spanning-tree pathcost method Parameters •...
  • Page 309: Spanning-Tree Bpdu

    D-Link CLI Reference Guide spanning-tree bpdu The spanning-tree bpdu Global Configuration mode command defines BPDU handling when the spanning tree is disabled globally or on a single interface. To return to the default configuration, use the no form of this command.
  • Page 310: Clear Spanning-Tree Detected-Protocols

    clear spanning-tree detected-protocols The clear spanning-tree detected-protocols Privileged EXEC mode command restarts the protocol migration process (forces renegotiation with neighboring devices) on all interfaces or on a specified interface. Syntax clear spanning-tree detected-protocols [ethernet interface | port-channel port-channel-number] Parameters • interface —...
  • Page 311: Spanning-Tree Mst Priority

    D-Link CLI Reference Guide spanning-tree mst priority The spanning-tree mst priority Global Configuration mode command configures the device priority for the specified spanning-tree instance. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst instance-id priority priority...
  • Page 312: Spanning-Tree Mst Max-Hops

    Spanning-Tree Commands spanning-tree mst max-hops The spanning-tree mst priority Global Configuration mode command configures the number of hops in an MST region before the BDPU is discarded and the port information is aged out. To return to the default configuration, use the no form of this command.
  • Page 313: Spanning-Tree Mst Port-Priority

    D-Link CLI Reference Guide spanning-tree mst port-priority The spanning-tree mst port-priority Interface Configuration mode command configures port priority for the specified MST instance. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst instance-id port-priority priority...
  • Page 314: Spanning-Tree Mst Cost

    spanning-tree mst cost The spanning-tree mst cost Interface Configuration mode command configures the path cost for multiple spanning tree (MST) calculations. If a loop occurs, the spanning tree considers path cost when selecting an interface to put in the forwarding state. To return to the default configuration, use the no form of this command. Syntax spanning-tree mst instance-id cost cost no spanning-tree mst instance-id cost...
  • Page 315: Spanning-Tree Mst Configuration

    D-Link CLI Reference Guide spanning-tree mst configuration The spanning-tree mst configuration Global Configuration mode command enables configuring an MST region by entering the Multiple Spanning Tree (MST) mode. Syntax spanning-tree mst configuration Default Configuration This command has no default configuration.
  • Page 316: Instance (Mst)

    instance (mst) The instance MST Configuration mode command maps VLANS to an MST instance. Syntax instance instance-id {add | remove} vlan vlan-range Parameters • instance-ID — ID of the MST instance (Range: 1-16). • vlan-range — VLANs to be added to or removed from the specified MST instance. To specify a range of VLANs, use a hyphen.
  • Page 317: Name (Mst)

    D-Link CLI Reference Guide name (mst) The name MST Configuration mode command defines the configuration name. To return to the default setting, use the no form of this command. Syntax name string Parameters • string — MST configuration name. Case-sensitive (Range: 1-32 characters).
  • Page 318: Revision (Mst)

    revision (mst) The revision MST configuration command defines the configuration revision number. To return to the default configuration, use the no form of this command. Syntax revision value no revision Parameters • value — Configuration revision number (Range: 0-65535). Default Configuration The default configuration revision number is 0.
  • Page 319: Show (Mst)

    D-Link CLI Reference Guide show (mst) The show MST Configuration mode command displays the current or pending MST region configuration. Syntax show {current | pending} Parameters • current — Indicates the current region configuration. • pending — Indicates the pending region configuration.
  • Page 320: Exit (Mst)

    exit (mst) The exit MST Configuration mode command exits the MST configuration mode and applies all configuration changes. Syntax exit Default Configuration This command has no default configuration. Command Mode MST Configuration mode User Guidelines There are no user guidelines for this command. Example The following example exits the MST configuration mode and saves changes.
  • Page 321: Abort (Mst)

    D-Link CLI Reference Guide abort (mst) The abort MST Configuration mode command exits the MST configuration mode without applying the configuration changes. Syntax abort Default Configuration This command has no default configuration. Command Mode MST Configuration mode User Guidelines There are no user guidelines for this command.
  • Page 322: Spanning-Tree Guard Root

    spanning-tree guard root The spanning-tree guard root Interface Configuration (Ethernet, port-channel) mode command enables root guard on all spanning tree instances on the interface. Root guard prevents the interface from becoming the root port of the device. To disable root guard on the interface, use the no form of this command. Syntax spanning-tree guard root no spanning-tree guard root...
  • Page 323: Show Spanning-Tree

    D-Link CLI Reference Guide show spanning-tree The show spanning-tree Privileged EXEC mode command displays spanning-tree configuration. Syntax show spanning-tree [ethernet interface -number| port-channel port-channel-number] [instance instance-id] show spanning-tree [detail] [active | blockedports] [instance instance-id] show spanning-tree mst-configuration Parameters • interface -number — A valid Ethernet port.
  • Page 324 128.3 Enabled 128.4 Enabled 128.5 Console# show spanning-tree Spanning tree enabled mode RSTP Default port cost method: long Root ID Priority Address This switch is the root. Hello Time 2 sec Interfaces Name State Prio.Nbr ---- ------- -------- Enabled 128.1 Enabled 128.2...
  • Page 325 D-Link CLI Reference Guide Console# show spanning-tree Spanning tree disabled (BPDU filtering) mode RSTP Default port cost method: long Root ID Priority Address Path Cost Root Port Hello Time N/A Bridge ID Priority Address Hello Time 2 sec Interfaces Name State Prio.Nbr...
  • Page 326 Interfaces Name State Prio.Nbr ---- ------- -------- Enabled 128.1 Enabled 128.2 Enabled 128.4 Console# show spanning-tree blockedports Spanning tree enabled mode RSTP Default port cost method: long Root ID Priority Address Path Cost Root Port Hello Time 2 sec Bridge ID Priority Address Hello Time 2 sec...
  • Page 327 D-Link CLI Reference Guide Bridge ID Priority 36864 Address Hello Time 2 sec Number of topology changes 2 last change occurred 2d18h ago Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Port 1 (1/1) enabled State: Forwarding Port id: 128.1...
  • Page 328 Port id: 128.4 Type: Shared (configured:auto) STP Designated bridge Priority: 28672 Designated port id: 128.25 Number of transitions to forwarding state: 1 BPDU: sent 2, received 120638 Port 5 (1/5) enabled State: Disabled Port id: 128.5 Type: N/A (configured: auto) Designated bridge Priority: N/A Designated port id: N/A Number of transitions to forwarding state: N/A...
  • Page 329 D-Link CLI Reference Guide Console# show spanning-tree Spanning tree enabled mode MSTP Default port cost method: long ###### MST 0 Vlans Mapped: 1-9, 21-4094 CST Root ID Priority Address Path Cost Root Port Hello Time 2 sec IST Master ID...
  • Page 330 Root Port Hello Time 2 sec IST Master ID Priority Address This switch is the IST master. Hello Time 2 sec Max hops Number of topology changes 2 last change occurred 2d18h ago Times: hello 2, max age 20, forward delay 15...
  • Page 331 D-Link CLI Reference Guide Port 2 (1/2) enabled State: Forwarding Port id: 128.2 Type: Shared (configured: auto) Boundary STP Designated bridge Priority: 32768 Designated port id: 128.2 Number of transitions to forwarding state: 1 BPDU: sent 2, received 170638 Port 3 (1/3) enabled State: Forwarding Port id: 128.3...
  • Page 332 Times: hello 2, max age 20, forward delay 15 Port 1 (1/1) enabled State: Forwarding Port id: 128.1 Type: P2p (configured: auto) Boundary RSTP Designated bridge Priority: 32768 Designated port id: 128.1 Number of transitions to forwarding state: 1 BPDU: sent 2, received 120638 Port 2 (1/2) enabled State: Forwarding Port id: 128.2...
  • Page 333 D-Link CLI Reference Guide Console# show spanning-tree Spanning tree enabled mode MSTP Default port cost method: long ###### MST 0 Vlans Mapped: 1-9, 21-4094 CST Root ID Priority Address Path Cost Root Port Hello Time 2 sec IST Master ID...
  • Page 334 Spanning-Tree Commands Page 333...
  • Page 335: Section 24.Ssh Commands

    D-Link CLI Reference Guide Section 24. SSH Commands ip ssh port The ip ssh port Global Configuration mode command specifies the port to be used by the SSH server. To return to the default configuration, use the no form of this command.
  • Page 336: Ip Ssh Server

    SSH Commands ip ssh server The ip ssh server Global Configuration mode command enables the device to be configured from a SSH server. To disable this function, use the no form of this command. Syntax ip ssh server no ip ssh server Default Configuration Device configuration from a SSH server is enabled.
  • Page 337: Crypto Key Generate Dsa

    D-Link CLI Reference Guide crypto key generate dsa The crypto key generate dsa Global Configuration mode command generates DSA key pairs. Syntax crypto key generate dsa Default Configuration DSA key pairs do not exist. Command Mode Global Configuration mode User Guidelines DSA keys are generated in pairs: one public DSA key and one private DSA key.
  • Page 338: Crypto Key Generate Rsa

    SSH Commands crypto key generate rsa The crypto key generate rsa Global Configuration mode command generates RSA key pairs. Syntax crypto key generate rsa Default Configuration RSA key pairs do not exist. Command Mode Global Configuration mode User Guidelines RSA keys are generated in pairs: one public RSA key and one private RSA key. If the device already has RSA keys, a warning and prompt to replace the existing keys with new keys are displayed.
  • Page 339: Ip Ssh Pubkey-Auth

    D-Link CLI Reference Guide ip ssh pubkey-auth The ip ssh pubkey-auth Global Configuration mode command enables public key authentication for incoming SSH sessions. To disable this function, use the no form of this command. Syntax ip ssh pubkey-auth no ip ssh pubkey-auth Default Configuration Public Key authentication fo incoming SSH sessions is disabled.
  • Page 340: Crypto Key Pubkey-Chain Ssh

    crypto key pubkey-chain ssh The crypto key pubkey-chain ssh Global Configuration mode command enters the SSH Public Key-chain Configuration mode. The mode is used to manually specify other device public keys such as SSH client public keys. Syntax crypto key pubkey-chain ssh Default Configuration No keys are specified.
  • Page 341: User-Key

    D-Link CLI Reference Guide user-key The user-key SSH Public Key-string Configuration mode command specifies which SSH public key is manually configured. To remove an SSH public key, use the no form of this command. Syntax user-key username {rsa | dsa}...
  • Page 342: Key-String

    key-string The key-string SSH Public Key-string Configuration mode command manually specifies an SSH public key. Syntax key-string key-string row key-string Parameters • row — Indicates the SSH public key row by row. • key-string—Specifies the key in UU-encoded DER format; UU-encoded DER format is the same format in the authorized_keys file used by OpenSSH.
  • Page 343 D-Link CLI Reference Guide Example The following example enters public key strings for SSH public key client bob. Console(config)# crypto key pubkey-chain ssh Console(config-pubkey-chain)# user-key bob rsa Console(config-pubkey-key)# key-string AAAAB3NzaC1yc2EAAAADAQABAAABAQCvTnRwPWl Al4kpqIw9GBRonZQZxjHKcqKL6rMlQ+ ZNXfZSkvHG+QusIZ/76ILmFT34v7u7ChFAE+ Vu4GRfpSwoQUvV35LqJJk67IOU/zfwOl1g kTwml75QR9gHujS6KwGN2QWXgh3ub8gDjTSq muSn/Wd05iDX2IExQWu08licglk02LYciz +Z4TrEU/9FJxwPiVQOjc+KBXuR0juN5nFYsY 0ZCk0N/W9a/tnkm1shRE7Di71+w3fNiOA 6w9o44t6+AINEICBCCA4YcF6zMzaT1wefWwX6f+ Rmt5nhhqdAtN/4oJfce166DqVX1gWmN zNR4DYDvSzg0lDnwCAC8Qh...
  • Page 344: Show Ip Ssh

    show ip ssh The show ip ssh Privileged EXEC mode command displays the SSH server configuration. Syntax show ip ssh Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example displays the SSH server configuration.
  • Page 345: Show Crypto Key Mypubkey

    D-Link CLI Reference Guide show crypto key mypubkey The show crypto key mypubkey Privileged EXEC mode command displays the SSH public keys on the device. Syntax show crypto key mypubkey [rsa | dsa] Parameters • rsa — Indicates the RSA key.
  • Page 346: Show Crypto Key Pubkey-Chain Ssh

    show crypto key pubkey-chain ssh The show crypto key pubkey-chain ssh Privileged EXEC mode command displays SSH public keys stored on the device. Syntax show crypto key pubkey-chain ssh [username username] [fingerprint {bubble-babble | hex}] Parameters • username — Specifies the remote SSH client username. •...
  • Page 347: Section 25.Syslog Commands

    D-Link CLI Reference Guide Section 25. Syslog Commands logging on The logging on Global Configuration mode command controls error message logging. This command sends debug or error messages to a logging process, which logs messages to designated locations asynchronously to the process that generated the messages.
  • Page 348: Logging

    logging The logging Global Configuration mode command logs messages to a syslog server. To delete the syslog server with the specified address from the list of syslogs, use the no form of this command. Syntax logging {ip-address | hostname} [port port] [severity level] [facility facility] [description text] no logging {ip-address | hostname} Parameters •...
  • Page 349: Logging Console

    D-Link CLI Reference Guide logging console The logging console Global Configuration mode command limits messages logged to the console based on severity. To disable logging to the console, use the no form of this command. Syntax logging console level no logging console Parameters •...
  • Page 350: Logging Buffered

    Syslog Commands logging buffered The logging buffered Global Configuration mode command limits syslog messages displayed from an internal buffer based on severity. To cancel using the buffer, use the no form of this command. Syntax logging buffered level no logging buffered Parameters •...
  • Page 351: Logging Buffered Size

    D-Link CLI Reference Guide logging buffered size The logging buffered size Global Configuration mode command changes the number of syslog messages stored in the internal buffer. To return to the default configuration, use the no form of this command. Syntax...
  • Page 352: Clear Logging

    clear logging The clear logging Privileged EXEC mode command clears messages from the internal logging buffer. Syntax clear logging Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example clears messages from the internal logging buffer.
  • Page 353: Logging File

    D-Link CLI Reference Guide logging file The logging file Global Configuration mode command limits syslog messages sent to the logging file based on severity. To cancel using the buffer, use the no form of this command. Syntax logging file level...
  • Page 354: Clear Logging File

    clear logging file The clear logging file Privileged EXEC mode command clears messages from the logging file. Syntax clear logging file Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example clears messages from the logging file.
  • Page 355: Aaa Logging Login

    D-Link CLI Reference Guide aaa logging login The aaa logging Global Configuration mode command enables logging AAA login events. To disable logging AAA login events, use the no form of this command. Syntax aaa logging login no aaa logging login Parameters •...
  • Page 356: File-System Logging

    file-system logging The file-system logging Global Configuration mode command enables logging file system events. To disable logging file system events, use the no form of this command. Syntax file-system logging copy no file-system logging copy file-system logging delete-rename no file-system logging delete-rename Parameters •...
  • Page 357: Management Logging

    D-Link CLI Reference Guide management logging The management logging global configuration command enables logging management access list (ACL) events. To disable logging management access list events, use the no form of this command. Syntax management logging deny no management logging deny Parameters •...
  • Page 358: Show Logging

    show logging The show logging Privileged EXEC mode command displays the state of logging and the syslog messages stored in the internal buffer. Syntax show logging Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 359 D-Link CLI Reference Guide 11-Aug-2004 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/2, changed state to up 11-Aug-2004 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/3, changed state to up 11-Aug-2004 15:41:43: %SYS-5-CONFIG_I: Configured from memory by console 11-Aug-2004 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up...
  • Page 360: Show Logging File

    show logging file The show logging file Privileged EXEC mode command displays the state of logging and the syslog messages stored in the logging file. Syntax show logging file Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 361 D-Link CLI Reference Guide 11-Aug-2004 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/2, changed state to up 11-Aug-2004 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/3, changed state to up 11-Aug-2004 15:41:43: %SYS-5-CONFIG_I: Configured from memory by console 11-Aug-2004 15:41:39: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up...
  • Page 362: Show Syslog-Servers

    show syslog-servers The show syslog-servers Privileged EXEC mode command displays the settings of the syslog servers. Syntax show syslog-servers Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example displays the settings of the syslog servers.
  • Page 363: Section 26.System Management Commands

    D-Link CLI Reference Guide Section 26. System Management Commands ping The ping User EXEC mode command sends ICMP echo request packets to another node on the network. Syntax ping {ip-address | hostname }[size packet_size] [count packet_count] [timeout time_out] Parameters •...
  • Page 364: System Management Commands

    Examples The following example displays pinging results: Console> ping 10.1.1.1 Pinging 10.1.1.1 with 64 bytes of data: 64 bytes from 10.1.1.1: icmp_seq=0. time=11 ms 64 bytes from 10.1.1.1: icmp_seq=1. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=2. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=3. time=7 ms ----10.1.1.1 PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 7/8/11...
  • Page 365: Traceroute

    D-Link CLI Reference Guide traceroute The traceroute User EXEC mode command discovers routes that packets actually take when traveling to their destination. Syntax traceroute {ip-address |hostname }[size packet_size] [ttl max-ttl] [count packet_count] [timeout time_out] [source ip-address] [tos tos] Parameters •...
  • Page 366 Examples The following example discovers the routes that packets will actually take when traveling to their destination. Console> traceroute umaxp1.physics.lsa.umich.edu Type Esc to abort. Tracing the route to umaxp1.physics.lsa.umich.edu (141.211.101.64) 1 i2-gateway.stanford.edu (192.68.191.83) 2 STAN.POS.calren2.NET (171.64.1.213) 0 msec 0 msec 0 msec 3 SUNV--STAN.POS.calren2.net (198.32.249.73) 1 msec 1 msec 1 msec 4 Abilene--QSV.POS.calren2.net (198.32.249.162) 5 kscyng-snvang.abilene.ucaid.edu (198.32.8.103)
  • Page 367: Telnet

    D-Link CLI Reference Guide telnet The telnet User EXEC mode command enables logging on to a host that supports Telnet. Syntax telnet {ip-address | hostname} [port] [keyword1...] Parameters • ip-address — IP address of the destination host. • hostname — Host name of the destination host. (Range: 1-158 characters) •...
  • Page 368 A sample of this list follows. Note that the Ctrl-shift-6 sequence appears as ^^ on the screen. Console> ‘Ctrl-shift-6’ ? [Special telnet escape help] ^^ B sends telnet BREAK ^^ C sends telnet IP ^^ H sends telnet EC ^^ O sends telnet AO ^^ T sends telnet AYT ^^ U sends telnet EL Ctrl-shift-6 x suspends the session (return to system command prompt)
  • Page 369 D-Link CLI Reference Guide hostname NIC hostname server ident Ident Protocol Internet Relay Chat klogin Kerberos login kshell Kerberos shell login Login Printer service nntp Network News Transport Protocol pim-auto-rp PIM Auto-RP pop2 Post Office Protocol v2 pop3 Post Office Protocol v3...
  • Page 370: Resume

    System Management Commands resume The resume User EXEC mode command enables switching to another open Telnet session. Syntax resume [connection] Parameters • connection — The connection number. (Range: 1 - 4 connections) Default Configuration The default connection number is that of the most recent connection. Command Mode User EXEC mode User Guidelines...
  • Page 371: Reload

    D-Link CLI Reference Guide reload The reload Privileged EXEC mode command reloads the operating system. Syntax reload Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines Caution should be exercised when resetting the device, to ensure that no other activity is being performed. In particular, the user should verify that no configuration files are being downloaded at the time of reset.
  • Page 372: Hostname

    Default Configuration This command has no default configuration. Command Mode Global Configuration mode User Guidelines There are no user guidelines for this command. Example The following example specifies the device host name. Console(config)# hostname D-Link D-Link(config)# System Management Commands Page 371...
  • Page 373: Stack Master

    D-Link CLI Reference Guide stack master The stack master Global Configuration mode command enables forcing the selection of a stack master. To return to the default configuration, use the no form of this command. Syntax stack master unit unit no stack master Parameters •...
  • Page 374: Stack Reload

    stack reload The stack reload Privileged EXEC mode command reloads stack members. Syntax stack reload [unit unit] Parameters • unit— Number of the unit to be reloaded (Range: 1-6) Default Configuration All units are reloaded. Command Modes Privileged EXEC mode User Guidelines •...
  • Page 375: Stack Display-Order

    D-Link CLI Reference Guide stack display-order The stack display-order Global Configuration mode command configures the order of the units in the display. To return to the default configuration, use the no form of this command . Syntax stack display-order top unit bottom unit...
  • Page 376: Stack Light Unit

    stack light unit The stack light unit EXEC command lights LEDs on a specific unit. Syntax stack light unit unit-number [duration seconds] stack light unit stop Parameters • unit-number — Specify Unit number or all. (range : 1 – product specific). •...
  • Page 377: Show Stack

    D-Link CLI Reference Guide show stack The show stack User EXEC mode command displays information about the status of a stack. Syntax show stack [unit unit] Parameters • unit — Specifies the number of the unit. (Range: 1 - 6) Default Configuration This command has no default configuration.
  • Page 378 System Management Commands Configured order: Unit 1 at Top, Unit 6 at bottom Can’t display order as requested. Console> show stack 1 Unit 1: MAC address: 00:00:b0:87:12:11 Master: Forced. Product: xxxxxx. Software: 1.0.0.0 Status: Master Active image: image-1. Selected for next boot: image-2. Page 377...
  • Page 379: Set System Mode

    {active | inactive} no system mode features control Parameters • features control routing — Configures the device to function as a switch or a router. • qos — Configures the QoS activity status in the device. • policy-based-vlans — Configures the policy based VLAN activity status in the device.
  • Page 380: Show System Mode

    User Guidelines There are no user guidelines for this command. Example The following example shows the mode and QoS features:. Console show system mode Feature State -------- ----------- mode: Switch Router QoS: Inactive (After reboot: active) System Management Commands Page 379...
  • Page 381: Show Users

    D-Link CLI Reference Guide show users The show users User EXEC mode command displays information about the active users. Syntax show users Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 382: Show Sessions

    show sessions The show sessions User EXEC mode command lists open Telnet sessions. Syntax show sessions Default Configuration There is no default configuration for this command. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command. Examples The following example lists open Telnet sessions.
  • Page 383: Show System

    D-Link CLI Reference Guide show system The show system User EXEC mode command displays system information. Syntax show system [unit unit] Parameters • unit— Specifies the number of the unit. (Range: 1-6) Default Configuration This command has no default configuration.
  • Page 384: Show Version

    show version The show version User EXEC mode command displays system version information. Syntax show version [unit unit] Parameters • unit — Specifies the number of the unit. (Range: 1-6) Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 385: Service Cpu-Utilization

    D-Link CLI Reference Guide service cpu-utilization The service cpu-utilization Global Configuration mode command enables measuring CPU utilization. To return to the default configuration, use the no form of this command. Syntax service cpu-utilization no service cpu-utilization Default Configuration Disabled. Command Mode...
  • Page 386: Show Cpu Utilization

    show cpu utilization The show cpu utilization Privileged EXEC mode command displays information about CPU utilization. Syntax show cpu utilization Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines Use the service cpu-utilization Global Configuration mode command to enable measuring CPU utilization. Example Console# show cpu utilization CPU utilization service is on.
  • Page 387: Section 27.Tacacs+ Commands

    D-Link CLI Reference Guide Section 27. TACACS+ Commands tacacs-server host The tacacs-server host Global Configuration mode command specifies a TACACS+ host. To delete the specified name or address, use the no form of this command. Syntax tacacs-server host {ip-address | hostname} [single-connection] [port port-number] [timeout timeout] [key key-...
  • Page 388 TACACS+ Commands Example The following example specifies a TACACS+ host. Console(config)# tacacs-server host 172.16.1.1 Page 387...
  • Page 389: Tacacs-Server Key

    D-Link CLI Reference Guide tacacs-server key The tacacs-server key Global Configuration mode command sets the authentication encryption key used for all TACACS+ communications between the device and the TACACS+ daemon. To disable the key, use the no form of this command.
  • Page 390: Tacacs-Server Timeout

    TACACS+ Commands tacacs-server timeout The tacacs-server timeout Global Configuration mode command sets the interval during which the device waits for a TACACS+ server to reply. To return to the default configuration, use the no form of this command. Syntax tacacs-server timeout timeout no tacacs-server timeout Parameters •...
  • Page 391: Tacacs-Server Source-Ip

    D-Link CLI Reference Guide tacacs-server source-ip The tacacs-server source-ip Global Configuration mode command configures the source IP address to be used for communication with TACACS+ servers. To return to the default configuration, use the no form of this command. Syntax...
  • Page 392: Show Tacacs

    show tacacs The show tacacs Privileged EXEC mode command displays configuration and statistical information about a TACACS+ server. Syntax show tacacs [ip-address] Parameters • ip-address — Name or IP address of the TACACS+ server. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 393: Section 28.User Interface Commands

    D-Link CLI Reference Guide Section 28. User Interface Commands command executes an EXEC-level command from the Global Configuration mode or any configuration submode. Syntax Parameters • The EXEC command to be executed. Default Setting This command has no default configuration.
  • Page 394 Syntax enable [privilege-level] Parameters • privilege-level — Privilege level to enter the system. (Range: 1 - 15) Default Configuration The default privilege level is 15. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command. Example The following example enters Privileged EXEC mode: Console>...
  • Page 395: Disable

    D-Link CLI Reference Guide disable The disable Privileged EXEC mode command returns to the User EXEC mode. Syntax disable [privilege-level] Parameters • privilege-level — Privilege level to enter the system. (Range: 1 - 15) Default Configuration The default privilege level is 1.
  • Page 396: Login

    login The login User EXEC mode command changes a login username. Syntax login Default Configuration This command has no default configuration. Command Mode User EXEC mode User Guidelines There are no user guidelines for this command. Example The following example enters Privileged EXEC mode and logs in with username admin. Console>...
  • Page 397: Configure

    D-Link CLI Reference Guide configure The configure Privileged EXEC mode command enters the Global Configuration mode. Syntax configure Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 398: Exit (Configuration)

    exit (Configuration) The exit command exits any configuration mode to the next highest mode in the CLI mode hierarchy. Syntax exit Default Configuration This command has no default configuration. Command Mode All configuration modes User Guidelines There are no user guidelines for this command. Example The following example changes the configuration mode from Interface Configuration mode to Privileged EXEC mode.
  • Page 399: Exit

    D-Link CLI Reference Guide exit The exit Privileged/User EXEC mode command closes an active terminal session by logging off the device. Syntax exit Default Configuration This command has no default configuration. Command Mode Privileged and User EXEC modes User Guidelines There are no user guidelines for this command.
  • Page 400: End

    The end command ends the current configuration session and returns to the Privileged EXEC mode. Syntax Default Configuration This command has no default configuration. Command Mode All configuration modes. User Guidelines There are no user guidelines for this command. Example The following example changes from Global Configuration mode to Privileged EXEC mode Console(config)# end Console#...
  • Page 401: Help

    D-Link CLI Reference Guide help The help command displays a brief description of the help system. Syntax help Default Configuration This command has no default configuration. Command Mode All command modes User Guidelines There are no user guidelines for this command.
  • Page 402: Terminal Data-Dump

    User Interface Commands terminal data-dump The terminal data-dump User EXEC mode command enables dumping all the output of a show command without prompting. To disable dumping, use the no form of this command. Syntax terminal data-dump no terminal data-dump Default Configuration Dumping is disabled.
  • Page 403: Show History

    D-Link CLI Reference Guide show history The show history User EXEC mode command lists the commands entered in the current session. Syntax show history Default Configuration This command has no default configuration. Command Mode User EXEC mode The buffer includes executed and unexecuted commands.
  • Page 404: Show Privilege

    show privilege The show privilege Privileged/User EXEC mode command displays the current privilege level. Syntax show privilege Default Configuration This command has no default configuration. Command Mode Privileged and User EXEC modes User Guidelines There are no user guidelines for this command. Example The following example displays the current privilege level for the Privileged EXEC mode.
  • Page 405: Section 29.Vlan Commands

    D-Link CLI Reference Guide Section 29. VLAN Commands vlan database The vlan database Global Configuration mode command enters the VLAN Configuration mode. Syntax vlan database Default Configuration This command has no default configuration. Command Mode Global Configuration mode User Guidelines There are no user guidelines for this command.
  • Page 406: Vlan

    vlan The vlan VLAN Configuration mode command creates a VLAN. To delete a VLAN, use the no form of this command. Syntax vlan vlan-range no vlan vlan-range Parameters • vlan-range — Specifies a list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces;...
  • Page 407: Interface Vlan

    D-Link CLI Reference Guide interface vlan The interface vlan Global Configuration mode command enters the Interface Configuration (VLAN) mode. Syntax interface vlan vlan-id Parameters • vlan-id — Specifies an existing VLAN ID. Default Configuration This command has no default configuration.
  • Page 408: Interface Range Vlan

    interface range vlan The interface range vlan Global Configuration mode command enables simultaneously configuring multiple VLANs. Syntax interface range vlan {vlan-range | all} Parameters • vlan-range — Specifies a list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces;...
  • Page 409: Name

    D-Link CLI Reference Guide name The name Interface Configuration mode command adds a name to a VLAN. To remove the VLAN name, use the no form of this command. Syntax name string no name Parameters • string — Unique name to be associated with this VLAN. (Range: 1-32 characters) Default Configuration No name is defined.
  • Page 410: Switchport Protected

    switchport protected The switchport protected Interface Configuration mode command overrides the FDB decision, and sends all Unicast, Multicast and Broadcast traffic to an uplink port. To disable overriding the FDB decision, use the no form of this command.. Syntax switchport protected {ethernet port | port-channel port-channel-number } no switchport protected Parameters •...
  • Page 411: Switchport Mode

    D-Link CLI Reference Guide switchport mode The switchport mode Interface Configuration mode command configures the VLAN membership mode of a port. To return to the default configuration, use the no form of this command. Syntax switchport mode {access | trunk | general}...
  • Page 412: Switchport Access Vlan

    switchport access vlan The switchport access vlan Interface Configuration mode command configures the VLAN ID when the interface is in access mode. To return to the default configuration, use the no form of this command. Syntax switchport access vlan {vlan-id | dynamic} no switchport access vlan Parameters •...
  • Page 413: Map Protocol Protocols-Group

    D-Link CLI Reference Guide map protocol protocols-group The map protocol protocols-group VLAN Configuration mode command maps a protocol to a group of protocols. Use the no form of this command to delete the map. Syntax map protocol protocol [encapsulation] protocols-group group...
  • Page 414: Switchport Trunk Allowed Vlan

    switchport trunk allowed vlan The switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs to or from a trunk port. Syntax switchport trunk allowed vlan {add vlan-list | remove vlan-list } Parameters • add vlan-list — List of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces.
  • Page 415: Switchport Trunk Native Vlan

    D-Link CLI Reference Guide switchport trunk native vlan The switchport trunk native vlan Interface Configuration mode command defines the native VLAN when the interface is in trunk mode. To return to the default configuration, use the no form of this command.
  • Page 416: Switchport General Allowed Vlan

    switchport general allowed vlan The switchport general allowed vlan Interface Configuration mode command adds or removes VLANs from a general port. Syntax switchport general allowed vlan add vlan-list [tagged | untagged] switchport general allowed vlan remove vlan-list Parameters • add vlan-list — Specifies the list of VLAN IDs to be added. Separate nonconsecutive VLAN IDs with a comma and no spaces.
  • Page 417: Switchport General Map Protocols-Group Vlan

    D-Link CLI Reference Guide switchport general map protocols-group vlan The switchport general map protocols-group vlan interface Configuration mode command sets a protocol- based classification rule. To delete a classification, use the no form of the command. Syntax switchport general map protocols-group group vlan vlan-id...
  • Page 418: Switchport General Pvid

    switchport general pvid The switchport general pvid Interface Configuration mode command configures the PVID when the interface is in general mode. To return to the default configuration, use the no form of this command. Syntax switchport general pvid vlan-id no switchport general pvid Parameters •...
  • Page 419: Switchport General Ingress-Filtering Disable

    D-Link CLI Reference Guide switchport general ingress-filtering disable The switchport general ingress-filtering disable Interface Configuration mode command disables port ingress filtering. To return to the default configuration, use the no form of this command. Syntax switchport general ingress-filtering disable no switchport general ingress-filtering disable Default Configuration Ingress filtering is enabled.
  • Page 420: Switchport General Acceptable-Frame-Type Tagged-Only

    switchport general acceptable-frame-type tagged-only The switchport general acceptable-frame-type tagged-only Interface Configuration mode command discards untagged frames at ingress. To return to the default configuration, use the no form of this command. Syntax switchport general acceptable-frame-type tagged-only no switchport general acceptable-frame-type tagged-only Default Configuration All frame types are accepted at ingress.
  • Page 421: Switchport Forbidden Vlan

    D-Link CLI Reference Guide switchport forbidden vlan The switchport forbidden vlan Interface Configuration mode command forbids adding specific VLANs to a port. To return to the default configuration, use the remove parameter for this command. Syntax switchport forbidden vlan {add vlan-list | remove vlan-list} Parameters •...
  • Page 422: Ip Internal-Usage-Vlan

    ip internal-usage-vlan The ip internal-usage-vlan Interface Configuration mode command reserves a VLAN as the internal usage VLAN of an interface. To return to the default configuration, use the no form of this command. Syntax ip internal-usage-vlan vlan-id no ip internal-usage-vlan Parameters •...
  • Page 423: Show Vlan

    D-Link CLI Reference Guide show vlan The show vlan Privileged EXEC mode command displays VLAN information. Syntax show vlan [id vlan-id | name vlan-name ] Parameters • vlan-id — specifies a VLAN ID • vlan-name — Specifies a VLAN name string. (Range: 1 - 32 characters) Default Configuration This command has no default configuration.
  • Page 424: Show Vlan Internal Usage

    show vlan internal usage The show vlan internal usage Privileged EXEC mode command displays a list of VLANs used internally by the device. Syntax show vlan internal usage Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 425: Show Interfaces Switchport

    D-Link CLI Reference Guide show interfaces switchport The show interfaces switchport Privileged EXEC mode command displays the switchport configuration. Syntax show interfaces switchport {ethernet interface | port-channel port-channel-number} Parameters • interface — A valid Ethernet port number. • port-channel-number — A valid port-channel number.
  • Page 426: Vlan Commands

    Static configuration: PVID: 1 (default) Ingress Filtering: Enabled Acceptable Frame Type: All Port 1/1 is statically configured to: Vlan Name ---- ------- default VLAN011 IPv6 VLAN VLAN0072 Forbidden VLANS: VLAN Name ---- ---- Console# show interface switchport ethernet 1/1 Port 1/1: VLAN Membership mode: General Operating parameters: PVID: 4095 (discard vlan)
  • Page 427 D-Link CLI Reference Guide Port 1/1 is statically confgiured to: Vlan Name ---- ------------ VLAN0072 IP Telephony Forbidden VLANS: VLAN Name ---- ---- Port 2/19 Static configuration: PVID: 2922 Ingress Filtering: Enabled Acceptable Frame Type: Untagged GVRP status: Disabled Egress rule...
  • Page 428 VLAN Commands Page 427...
  • Page 429: Section 30.Web Server Commands

    D-Link CLI Reference Guide Section 30. Web Server Commands ip http server The ip http server Global Configuration mode command enables configuring the device from a browser. To disable this function, use the no form of this command. Syntax ip http server...
  • Page 430: Ip Http Port

    Web Server Commands ip http port The ip http port Global Configuration mode command specifies the TCP port to be used by the Web browser interface. To return to the default configuration, use the no form of this command. Syntax ip http port port-number no ip http port Parameters...
  • Page 431: Ip Https Server

    D-Link CLI Reference Guide ip https server The ip https server Global Configuration mode command enables configuring the device from a secured browser. To return to the default configuration, use the no form of this command. Syntax ip https server...
  • Page 432: Ip Https Port

    Web Server Commands ip https port The ip https port Global Configuration mode command specifies the TCP port used by the server to configure the device through the Web browser. To return to the default configuration, use the no form of this command. Syntax ip https port port-number no ip https port...
  • Page 433: Crypto Certificate Generate

    D-Link CLI Reference Guide crypto certificate generate The crypto certificate generate Global Configuration mode command generates a self-signed HTTPS certificate. Syntax crypto certificate [number] generate [key-generate length][cn common- name][ou organization-unit][or organization] [loc location] [st state] [cu country] [duration days] Parameters •...
  • Page 434: Crypto Certificate Request

    crypto certificate request The crypto certificate request Privileged EXEC mode command generates and displays certificate requests for HTTPS. Syntax crypto certificate number request [cn common- name ][ou organization-unit][or organization] [loc location] [st state] [cu country] Parameters • number — Specifies the certificate number. (Range: 1 - 2) •...
  • Page 435 D-Link CLI Reference Guide Examples The following example generates and displays a certificate request for HTTPS. Console# crypto certificate 1 request -----BEGIN CERTIFICATE REQUEST----- MIwTCCASoCAQAwYjELMAkGA1UEBhMCUFAxCzAJBgNVBAgTAkNDMQswCQYDVQQH EwRDEMMAoGA1UEChMDZGxkMQwwCgYDVQQLEwNkbGQxCzAJBgNVBAMTAmxkMRAw DgKoZIhvcNAQkBFgFsMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC8ecwQ HdML0831i0fh/F0MV/Kib6Sz5p+3nUUenbfHp/igVPmFM+1nbqTDekb2ymCu6K aKvEbVLF9F2LmM7VPjDBb9bb4jnxkvwW/wzDLvW2rsy5NPmH1QVl+8Ubx3GyCm /oW93BSOFwxwEsP58kf+sPYPy+/8wwmoNtDwIDAQABoB8wHQYJKoZIhvcNAQkH MRDjEyMwgICCAgICAICAgIMA0GCSqGSIb3DQEBBAUAA4GBAGb8UgIx7rB05m+2 m5ZZPhIwl8ARSPXwhVdJexFjbnmvcacqjP8pIiRV6LkxryGF2bVU3jKEipcZa g+uNpyTkDt3ZVU72pjz/fa8TF0n3 -----END CERTIFICATE REQUEST----- CN= router.gm.com 0= General Motors...
  • Page 436: Crypto Certificate Import

    crypto certificate import The crypto certificate import Global Configuration mode command imports a certificate signed by the Certification Authority for HTTPS. Syntax crypto certificate number import Parameters • number — Specifies the certificate number. (Range: 1 - 2) Default Configuration This command has no default configuration.
  • Page 437: Ip Https Certificate

    D-Link CLI Reference Guide ip https certificate The ip https certificate Global Configuration mode command configures the active certificate for HTTPS. To return to the default configuration, use the no form of this command. Syntax ip https certificate number no ip https certificate Parameters •...
  • Page 438: Show Crypto Certificate Mycertificate

    show crypto certificate mycertificate The show crypto certificate mycertificate Privileged EXEC mode command displays the SSH certificates of the device. Syntax show crypto certificate mycertificate [number] Parameters • number — Specifies the certificate number. (Range: 1- 2) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 439: Show Ip Http

    D-Link CLI Reference Guide show ip http The show ip http Privileged EXEC mode command displays the HTTP server configuration. Syntax show ip http Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command.
  • Page 440: Show Ip Https

    show ip https The show ip https Privileged EXEC mode command displays the HTTPS server configuration. Syntax show ip https Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines There are no user guidelines for this command. Example The following example displays the HTTP server configuration.
  • Page 441: Section 31.802.1X Commands

    D-Link CLI Reference Guide Section 31. 802.1x Commands aaa authentication dot1x default The aaa authentication dot1x Global Configuration mode command specifies one or more authentication, authorization, and accounting (AAA) methods for use on interfaces running IEEE 802.1X. To return to the default configuration, use the no form of this command.
  • Page 442: Dot1X System-Auth-Control

    802.1x Commands dot1x system-auth-control The dot1x system-auth-control Global Configuration mode command enables 802.1x globally. To return to the default configuration, use the no form of this command. Syntax dot1x system-auth-control no dot1x system-auth-control Default Configuration 802.1x is disabled globally. Command Modes Global Configuration mode User Guidelines There are no user guidelines for this command.
  • Page 443: Dot1X Port-Control

    D-Link CLI Reference Guide dot1x port-control The dot1x port-control Interface Configuration mode command enables manually controlling the authorization state of the port. To return to the default configuration, use the no form of this command. Syntax dot1x port-control {auto | force-authorized | force-unauthorized}...
  • Page 444: Dot1X Re-Authentication

    dot1x re-authentication The dot1x re-authentication Interface Configuration mode command enables periodic re-authentication of the client. To return to the default configuration, use the no form of this command. Syntax dot1x re-authentication no dot1x re-authentication Default Configuration Periodic re-authentication is disabled. Command Mode Interface Configuration (Ethernet) User Guidelines...
  • Page 445: Dot1X Timeout Re-Authperiod

    D-Link CLI Reference Guide dot1x timeout re-authperiod The dot1x timeout re-authperiod Interface Configuration mode command sets the number of seconds between re-authentication attempts. To return to the default configuration, use the no form of this command. Syntax dot1x timeout re-authperiod seconds...
  • Page 446: Dot1X Re-Authenticate

    802.1x Commands dot1x re-authenticate The dot1x re-authenticate Privileged EXEC mode command manually initiates a re-authentication of all 802.1X- enabled ports or the specified 802.1X-enabled port. Syntax dot1x re-authenticate [ethernet interface] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 447: Dot1X Timeout Quiet-Period

    D-Link CLI Reference Guide dot1x timeout quiet-period The dot1x timeout quiet-period Interface Configuration mode command sets the number of seconds that the device remains in the quiet state following a failed authentication exchange (for example, the client provided an invalid password). To return to the default configuration, use the no form of this command.
  • Page 448: Dot1X Timeout Tx-Period

    dot1x timeout tx-period The dot1x timeout tx-period Interface Configuration mode command sets the number of seconds that the device waits for a response to an Extensible Authentication Protocol (EAP)-request/identity frame from the client before resending the request. To return to the default configuration, use the no form of this command. Syntax dot1x timeout tx-period seconds no dot1x timeout tx-period...
  • Page 449: Dot1X Max-Req

    D-Link CLI Reference Guide dot1x max-req The dot1x max-req Interface Configuration mode command sets the maximum number of times that the device sends an Extensible Authentication Protocol (EAP)-request/identity frame (assuming that no response is received) to the client, before restarting the authentication process. To return to the default configuration, use the no form of this command.
  • Page 450: Dot1X Timeout Supp-Timeout

    802.1x Commands dot1x timeout supp-timeout The dot1x timeout supp-timeout Interface Configuration mode command sets the time for the retransmission of an Extensible Authentication Protocol (EAP)-request frame to the client. To return to the default configuration, use the no form of this command. Syntax dot1x timeout supp-timeout seconds no dot1x timeout supp-timeout...
  • Page 451: Dot1X Timeout Server-Timeout

    D-Link CLI Reference Guide dot1x timeout server-timeout The dot1x timeout server-timeout Interface Configuration mode command sets the time that the device waits for a response from the authentication server. To return to the default configuration, use the no form of this command.
  • Page 452: Show Dot1X

    show dot1x The show dot1x Privileged EXEC mode command displays the 802.1X status of the device or specified interface. Syntax show dot1x [ethernet interface] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 453 D-Link CLI Reference Guide Port Admin Mode Oper Mode ---- ---------- --------- Auto Unauthorized Quiet period: 60 Seconds Tx period:30 Seconds Max req: 2 Supplicant timeout: 30 Seconds Server timeout: 30 Seconds Session Time (HH:MM:SS): 08:19:17 MAC Address: 00:08:78:32:98:78 Authentication Method: Remote...
  • Page 454 Protocol (EAP)-request frame (assuming that no response is received) to the client before restarting the authentication process. Supplicant timeout Time in seconds the switch waits for a response to an EAP-request frame from the client before resending the request. Server timeout Time in seconds the switch waits for a response from the authentication server before resending the request.
  • Page 455: Show Dot1X Users

    D-Link CLI Reference Guide show dot1x users The show dot1x users Privileged EXEC mode command displays active 802.1X authenticated users for the device. Syntax show dot1x users [username username] Parameters • username — Supplicant username (Range: 1-160 characters) Default Configuration This command has no default configuration.
  • Page 456 The following table describes significant fields shown above: Field Description Port The port number. Username The username representing the identity of the Supplicant. Session Time The period of time the Supplicant is connected to the system. Authentication Method Authentication method used by the Supplicant to open the session. MAC Address MAC address of the Supplicant.
  • Page 457: Show Dot1X Statistics

    D-Link CLI Reference Guide show dot1x statistics The show dot1x statistics Privileged EXEC mode command displays 802.1X statistics for the specified interface. Syntax show dot1x statistics ethernet interface Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
  • Page 458 The following table describes the significant fields shown in the display: Field EapolFramesRx EapolFramesTx EapolStartFramesRx EapolLogoffFramesRx EapolRespIdFramesRx EapolRespFramesRx EapolReqIdFramesTx EapolReqFramesTx InvalidEapolFramesRx EapLengthErrorFramesRx LastEapolFrameVersion LastEapolFrameSource Description The number of valid EAPOL frames of any type that have been received by this Authenticator. The number of EAPOL frames of any type that have been transmitted by this Authenticator.
  • Page 459: Advanced Features

    D-Link CLI Reference Guide ADVANCED FEATURES dot1x auth-not-req The dot1x auth-not-req Interface Configuration mode command enables unauthorized devices access to the VLAN. To disable access to the VLAN, use the no form of this command. Syntax dot1x auth-not-req no dot1x auth-not-req Default Configuration Access is enabled.
  • Page 460: Dot1X Multiple-Hosts

    802.1x Commands dot1x multiple-hosts The dot1x multiple-hosts Interface Configuration mode command enables multiple hosts (clients) on an 802.1X- authorized port, where the authorization state of the port is set to auto. To return to the default configuration, use the no form of this command. Syntax dot1x multiple-hosts no dot1x multiple-hosts...
  • Page 461: Dot1X Single-Host-Violation

    D-Link CLI Reference Guide dot1x single-host-violation The dot1x single-host-violation Interface Configuration mode command configures the action to be taken, when a station whose MAC address is not the supplicant MAC address, attempts to access the interface. Use the no form of this command to return to default.
  • Page 462: Dot1X Guest-Vlan

    dot1x guest-vlan The dot1x guest-vlan Interface Configuration mode command defines a guest VLAN. To return to the default configuration, use the no form of this command. Syntax dot1x guest-vlan no dot1x guest-vlan Default Configuration No VLAN is defined as a guest VLAN. Command Mode Interface Configuration (VLAN) mode User Guidelines...
  • Page 463: Dot1X Guest-Vlan Enable

    D-Link CLI Reference Guide dot1x guest-vlan enable The dot1x vlans guest-vlan enable Interface Configuration mode command enables unauthorized users on the interface access to the Guest VLAN. To disable access, use the no form of this command Syntax dot1x guest-vlan enable...
  • Page 464: Show Dot1X Advanced

    show dot1x advanced The show dot1x advanced Privileged EXEC mode command displays 802.1X advanced features for the device or specified interface. Syntax show dot1x advanced [ethernet interface] Parameters • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode User Guidelines...
  • Page 465 D-Link CLI Reference Guide Trap frequency: 100 Status: Single-host locked Violations since last trap: 9 Page 464...
  • Page 466 802.1x Commands Page 465...

This manual is also suitable for:

Xstack dxs-3200 seriesXstack dxs-3227pXstack dxs-3227

Table of Contents