Layer 2 Switch 24 Port 10/100 Managed Switch Plus 2 Combo Gigabit Copper/SFP Ports



Similar documents
Using the Command-Line Interface

Management Software. User s Guide AT-S84. For the AT-9000/24 Layer 2 Gigabit Ethernet Switch. Version Rev. B

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

Using the Command Line Interface (CLI)

Monitoring and Analyzing Switch Operation

JUNOS Command Line Interface. Copyright 2003 Juniper Networks, Inc. 1

P330-ML Version 4.5 Release Notes

Command Line Interface

How To Install An At-S100 (Geo) On A Network Card (Geoswitch)

AT-S41 Version Management Software for the AT-8326 and AT-8350 Series Fast Ethernet Switches. Software Release Notes

Enabling Remote Access to the ACE

Ethernet Switch. CLI Reference Guide. Default Login Details. Firmware Version 3.79, 3.80, 3.90 and

AT-GS950/8. AT-GS950/8 Web Users Guide AT-S107 [ ] Gigabit Ethernet Smart Switch Rev A

8-Port Gigabit managed POE Switch. User s Manual. Version: 2.3

Chapter 2 Using the Command Line Interface

Web Browser Interface User s Guide

ProSafe Managed Switch

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Configuring Port Security

Configuring System Message Logging

AT-S60 Version Management Software for the AT-8400 Series Switch. Software Release Notes

Configuring the Firewall Management Interface

ENTERASYS WEBVIEW WEB-BASED MANAGEMENT FOR THE VH-2402S/VH-2402S2 WEB MANAGEMENT GUIDE

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

Command Line Interface User s Guide

Command Line Interface User s Guide

8-PORT POWER OVER ETHERNET MANAGED WORKGROUP SWITCH (DN-95301) User s Guide

Command Line User s Guide

L2/L3 Switches. System. Configuration Guide

Unified Access Point Administrator's Guide

ProCurve Switch ProCurve Switch

Advanced Traffic Management Guide. ProCurve Switches Q.10.XX.

Switch Quick Configuration CLI Guide for

Easy Smart Configuration Utility

Lab Use Network Inspector to Observe STP Behavior

Command Line User s Guide

ProCurve Networking. Hardening ProCurve Switches. Technical White Paper

GLBP - Gateway Load Balancing Protocol

Ruckus Wireless ZoneDirector Command Line Interface

AlliedWare Plus Version AT-9000 Layer 2-4 Gigabit Ethernet EcoSwitches Software Release Notes

Brocade to Cisco Comparisons

GS510TP and GS110T Gigabit Smart Switches

AT-S45 Version Management Software for the AT-9410GB Gigabit Ethernet Switches. Software Release Notes

ProSAFE M4100 Managed Switches

Chapter 2 Quality of Service (QoS)

TP-LINK. 24-Port 10/100Mbps + 4-Port Gigabit L2 Managed Switch. Overview. Datasheet TL-SL5428E.

Read Me First for the HP ProCurve Routing Switch 9304M and Routing Switch 9308M

Starting a Management Session

LAB THREE STATIC ROUTING

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

SUPERSTACK 3 SWITCH 4200 SERIES MANAGEMENT QUICK REFERENCE GUIDE

Remote Management. Vyatta System. REFERENCE GUIDE SSH Telnet Web GUI Access SNMP VYATTA, INC.

ProSAFE 8-Port and 16-Port Gigabit Click Switch

7750 SR OS System Management Guide

Using the Cisco IOS Command Line Interface

GS752TP, GS728TP, and GS728TPP Gigabit Smart Switches

Catalyst 2960-X Switch QoS Configuration Guide, Cisco IOS Release 15.0(2)EX

Unified Access Point Administrator s Guide

Terminal Server Configuration and Reference Errata

GS716Tv3, GS724Tv4, and GS748Tv5 Smart Switches

Configuring the Switch with the CLI Setup Program

OLT LTP-8X_v Appendix to Operation Manual OLT LTP-8X Quick Configuration Guide Central Office Node Terminal

Management Software. User s Guide AT-S88. For the AT-FS750/24POE Fast Ethernet Smart Switch. Version Rev. B

Alteon Basic Firewall Load Balancing. Sample Configuration

Applicazioni Telematiche

Basic Command-Line Interface Commands

AT-S63 and AT-S63 NE Version Management Software for the AT-9400 Series Layer 2+ Gigabit Ethernet Switches Software Release Notes

TP-LINK L2 Managed Switch

PT Activity: Configure Cisco Routers for Syslog, NTP, and SSH Operations

Command Line Reference. for the FriendlyNET Dual 56K

Cisco Nexus 5548UP. Switch Configuration Guide for Dell PS Series SANs. A Dell Deployment and Configuration Guide

Exploring the Remote Access Configuration Utility

LVA Syllabus Part 1

ISE TACACS+ Configuration Guide for Cisco NX-OS Based Network Devices. Secure Access How-to User Series

DES-1228/ME Metro Ethernet Managed Switch CLI Reference Guide

TP-LINK. 24-Port 10/100Mbps + 4-Port Gigabit L2 Managed Switch. Overview. Datasheet TL-SL

FSM73xx GSM73xx GMS72xxR Shared access to the Internet across Multiple routing VLANs using a Prosafe Firewall

Configuring System Message Logging

AT-S62 and AT-S62 NE Version Management Software for AT-8500 Series Switches Software Release Notes

AT-S95 Version AT-8000GS Layer 2 Stackable Gigabit Ethernet Switch Software Release Notes

Configuring the Transparent or Routed Firewall

AT-S105 Version Management Software Release Notes AT-FS750/24POE and AT-FS750/48 Fast Ethernet WebSmart Switches

Gigabit Ethernet Web Smart 8-Port Switch 2 Combo SFP Open Slot

Configuring the Switch IP Address and Default Gateway

WSG24POE Switch. User Manual

AT-S63 Version Management Software for the AT-9400 Basic Layer 3 Gigabit Ethernet Switches Software Release Notes

Chapter 7 Configuring Trunk Groups and Dynamic Link Aggregation

management and configuration guide hp procurve series 2500 switches

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

ClearPass Policy manager Cisco Switch Setup with CPPM. Technical Note

Port Trunking. Contents

Cisco ISE Command-Line Interface

Switch Configuration Required to Support Cisco ISE Functions

How To Manage Das-3324 On A Pc Or Mac Or Mac (For A Pc) With A Das3324 Device On A Ds-3325 (For Mac) Or Ds3324 (For An Ipad)

Lab - Using IOS CLI with Switch MAC Address Tables

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

4 Ports + 3 SFP Gigabit Smart Switch Use Manual. Ver.A0

AlliedWare Plus OS How To Configure Switches for Maximum Security and Network Stability

Configuring and Monitoring Citrix Branch Repeater

Transcription:

DES-3226L Release 2 Layer 2 Switch 24 Port 10/100 Managed Switch Plus 2 Combo Gigabit Copper/SFP Ports CLI Command Reference Business Class Networking

Table of Contents 3 Table of Contents List of Figures.......................................... 11 List of Tables.......................................... 13 About This Book....................................... 15 Audience................................................... 15 Document Organization....................................... 15 Trademarks................................................. 15 Copyright Statement.......................................... 15 D-Link DES-3226L Overview............................. 17 Scope...................................................... 17 Product Concept............................................. 17 Command Structure.................................... 19 Command Syntax............................................ 19 Command Conventions........................................ 19 Parameter Values.............................................. 20 Slot-Port Naming Convention..................................... 21 CLI Line-Editing Conventions..................................... 22 Using the No Form of a Command............................ 22 Using CLI Help.............................................. 23 Accessing the CLI............................................ 23 Command-Line Interface s.......................... 25 -based Topology......................................... 26 -based Command Hierarchy............................... 26 Command Description................................... 27 Flow of Operation............................................ 28 Setup and Management Commands....................... 29 System Management Commands................................ 29 network parms................................................. 29 network protocol............................................... 29 network mgmt_vlan............................................. 30 no network mgmt_vlan........................................ 30 transport input telnet............................................ 30 no transport input telnet........................................ 30 telnetcon maxsessions........................................... 30 no telnetcon maxsessions....................................... 30 telnetcon timeout............................................... 31 no telnetcon timeout........................................... 31

4 D-Link DES-3226L Command Line Reference bridge aging-time............................................... 31 no bridge aging-time.......................................... 31 network javamode.............................................. 31 no network javamode.......................................... 32 network mac-address............................................ 32 network mac-type............................................... 32 no network mac-type.......................................... 32 serial baudrate................................................. 32 no serial baudrate............................................. 33 serial timeout.................................................. 33 no serial timeout.............................................. 33 set prompt..................................................... 33 show forwardingdb agetime....................................... 33 show network.................................................. 34 show telnetcon................................................. 34 show serial.................................................... 35 System Configuration Commands................................ 35 addport....................................................... 35 cablestatus.................................................... 36 auto-negotiate................................................. 36 no auto-negotiate............................................. 36 auto-negotiate all............................................... 36 no auto-negotiate all........................................... 36 deleteport (Interface Config)........................................... 36 deleteport ()............................................. 36 monitor session................................................ 37 no monitor session............................................ 37 no monitor.................................................... 37 no monitor session 1............................................ 37 show monitor session 1.......................................... 38 shutdown..................................................... 38 no shutdown................................................. 38 shutdown all................................................... 38 no shutdown all.............................................. 38 speed........................................................ 39 speed all...................................................... 39 storm-control broadcast.......................................... 39 no storm-control broadcast...................................... 40 storm-control flowcontrol........................................ 40 no storm-control flowcontrol.................................... 40 show mac-address-table multicast.................................. 40 show mac-address-table stats..................................... 41 show monitor session............................................ 41 show port..................................................... 41 show storm-control............................................. 42 SNMP Community Commands.................................. 42 snmp-server................................................... 42

Table of Contents 5 snmp-server community.......................................... 43 no snmp-server community..................................... 43 snmp-server community ipaddr.................................... 43 no snmp-server community ipaddr............................... 43 snmp-server community ipmask................................... 43 no snmp-server community ipmask............................... 44 snmp-server community mode..................................... 44 no snmp-server community mode................................ 44 snmp-server community ro....................................... 44 snmp-server community rw....................................... 44 snmp-server enable traps........................................ 45 no snmp-server enable traps.................................... 45 snmp-server enable traps linkmode................................. 45 no snmp-server enable traps linkmode............................ 45 snmp-server enable traps multiusers................................ 45 no snmp-server enable traps multiusers............................ 45 snmp-server enable traps stpmode................................. 46 no snmp-server enable traps stpmode............................. 46 snmptrap..................................................... 46 no snmptrap................................................. 46 snmptrap snmpversion........................................... 46 snmptrap ipaddr............................................... 47 snmptrap mode................................................ 47 no snmptrap mode............................................ 47 snmp trap link-status............................................ 47 no snmp trap link-status........................................ 47 snmp trap link-status all......................................... 47 no snmp trap link-status all..................................... 48 show snmpcommunity........................................... 48 show trapflags................................................. 48 show snmptrap................................................. 49 Switching Commands................................... 51 Virtual LAN (VLAN) Commands................................. 51 vlan......................................................... 51 no vlan..................................................... 51 vlan acceptframe............................................... 51 no vlan acceptframe........................................... 52 vlan name.................................................... 52 no vlan name................................................ 52 vlan participation.............................................. 52 vlan participation all............................................ 52 vlan port acceptframe all........................................ 53 no vlan port acceptframe all..................................... 53 vlan port pvid all............................................... 53 no vlan port pvid all........................................... 53 vlan port tagging all............................................ 54

6 D-Link DES-3226L Command Line Reference no vlan port tagging all......................................... 54 vlan pvid...................................................... 54 no vlan pvid................................................. 54 vlan tagging................................................... 54 no vlan tagging............................................... 54 show vlan..................................................... 55 show vlan brief................................................. 55 show vlan port................................................. 56 Protected Ports Commands.................................... 56 switchport protected............................................. 56 no switchport protected........................................ 57 show switchport protected........................................ 57 Link Aggregation/Port-Channel (802.3AD) Commands.............. 57 port-channel................................................... 58 no port-channel............................................... 58 clear port-channel.............................................. 58 port-channel staticcapability...................................... 58 no port-channel staticcapability.................................. 58 port lacpmode................................................. 58 no port lacpmode............................................. 59 port lacpmode all............................................... 59 no port lacpmode all........................................... 59 port-channel adminmode......................................... 59 no port-channel adminmode..................................... 59 port-channel linktrap............................................ 59 no port-channel linktrap........................................ 60 port-channel name.............................................. 60 show port-channel brief.......................................... 60 show port-channel.............................................. 60 IGMP Snooping Commands.................................... 61 set igmp...................................................... 61 no set igmp.................................................. 62 set igmp interfacemode.......................................... 62 no set igmp interfacemode...................................... 62 set igmp fast-leave.............................................. 62 no set igmp fast-leave.......................................... 62 set igmp groupmembership-interval................................ 63 no set igmp groupmembership-interval............................ 63 set igmp maxresponse........................................... 63 no set igmp maxresponse....................................... 63 set igmp mcrtexpiretime.......................................... 63 no set igmp mcrtexpiretime..................................... 64 set igmp mrouter............................................... 64 no set igmp mrouter........................................... 64 set igmp mrouter interface........................................ 64 no set igmp mrouter interface.................................... 64 show igmpsnooping............................................. 65

Table of Contents 7 show igmpsnooping mrouter interface.............................. 65 show igmpsnooping mrouter vlan.................................. 66 show mac-address-table igmpsnooping............................. 66 Spanning Tree Protocol (STP) Commands......................... 66 spanning-tree.................................................. 66 no spanning-tree.............................................. 67 spanning-tree bpdumigrationcheck................................. 67 spanning-tree configuration name................................. 67 no spanning-tree configuration name............................. 67 spanning-tree configuration revision............................... 67 no spanning-tree configuration revision........................... 68 spanning-tree edgeport.......................................... 68 no spanning-tree edgeport...................................... 68 spanning-tree forceversion....................................... 68 no spanning-tree forceversion................................... 68 spanning-tree forward-time....................................... 68 no spanning-tree forward-time................................... 69 spanning-tree hello-time......................................... 69 no spanning-tree hello-time..................................... 69 spanning-tree max-age.......................................... 69 no spanning-tree max-age...................................... 69 spanning-tree max-hops......................................... 69 no spanning-tree max-hops..................................... 70 spanning-tree mst.............................................. 70 no spanning-tree mst.......................................... 70 spanning-tree mst instance....................................... 71 no spanning-tree mst instance................................... 71 spanning-tree mst priority........................................ 71 no spanning-tree mst priority.................................... 71 spanning-tree mst vlan.......................................... 71 no spanning-tree mst vlan...................................... 72 spanning-tree port mode......................................... 72 no spanning-tree port mode..................................... 72 spanning-tree port mode all...................................... 72 no spanning-tree port mode all.................................. 72 show spanning-tree............................................. 73 show spanning-tree summary..................................... 74 show spanning-tree interface..................................... 74 show spanning-tree mst port detailed............................... 75 show spanning-tree mst port summary.............................. 76 show spanning-tree mst summary.................................. 77 show spanning-tree vlan......................................... 77 GVRP Commands............................................ 77 set gvrp adminmode............................................. 77 no set gvrp adminmode........................................ 78 set gvrp interfacemode.......................................... 78 no set gvrp interfacemode...................................... 78

8 D-Link DES-3226L Command Line Reference show gvrp configuration......................................... 78 Class of Service (CoS) Commands............................... 79 classofservice dot1p-mapping..................................... 79 classofservice trust dot1p......................................... 79 no classofservice trust......................................... 79 traffic-shape................................................... 79 no traffic-shape............................................... 80 rate-limit..................................................... 80 no rate-limit................................................. 80 show classofservice dot1p-mapping................................ 80 show classofservice trust......................................... 81 show interfaces cos-queue........................................ 81 Access and Security Commands.......................... 83 User Account Commands...................................... 83 users name.................................................... 83 no users name................................................ 83 users passwd.................................................. 83 no users passwd.............................................. 84 users snmpv3 accessmode........................................ 84 no users snmpv3 accessmode.................................... 84 users snmpv3 authentication...................................... 84 no users snmpv3 authentication.................................. 85 users snmpv3 encryption......................................... 85 no users snmpv3 encryption..................................... 85 show loginsession............................................... 85 show users.................................................... 86 disconnect.................................................... 86 Port-Based Network Access Control Commands.................... 86 authentication login............................................. 86 no authentication login......................................... 87 clear dot1x statistics............................................ 87 clear radius statistics............................................ 87 dot1x default-login.............................................. 87 dot1x initialize................................................. 88 dot1x login.................................................... 88 dot1x max-req................................................. 88 no dot1x max-req............................................. 88 dot1x port-control.............................................. 88 no dot1x port-control.......................................... 89 dot1x port-control all............................................ 89 no dot1x port-control All....................................... 89 dot1x re-authenticate............................................ 89 dot1x re-authentication.......................................... 89 no dot1x re-authentication...................................... 89 dot1x system-auth-control........................................ 90 no dot1x system-auth-control.................................... 90

Table of Contents 9 dot1x timeout.................................................. 90 no dot1x timeout............................................. 91 dot1x user.................................................... 91 no dot1x user................................................ 91 users defaultlogin.............................................. 91 users login.................................................... 91 show authentication............................................. 92 show authentication users........................................ 92 show dot1x.................................................... 92 show dot1x users............................................... 94 show users authentication........................................ 94 RADIUS Commands.......................................... 95 radius accounting mode......................................... 95 no radius accounting mode..................................... 95 radius server host.............................................. 95 no radius server host.......................................... 96 radius server key............................................... 96 radius server msgauth........................................... 96 no radius server msgauth....................................... 96 radius server primary........................................... 96 radius server retransmit......................................... 97 no radius server retransmit...................................... 97 radius server timeout............................................ 97 no radius server timeout........................................ 97 show radius................................................... 97 show radius accounting.......................................... 98 show radius statistics............................................ 99 Secure Shell (SSH) Commands................................. 100 ip ssh....................................................... 100 no ip ssh................................................... 100 ip ssh protocol................................................ 100 sshcon maxsessions............................................ 101 no sshcon maxsessions........................................ 101 sshcon timeout................................................ 101 no sshcon timeout........................................... 101 show ip ssh................................................... 101 Hypertext Transfer Protocol (HTTP) Commands................... 102 ip http secure-port............................................. 102 no ip http secure-port......................................... 102 ip http secure-protocol.......................................... 102 ip http secure-server........................................... 102 no ip http secure-server....................................... 102 ip http server................................................. 102 no ip http server............................................. 103 show ip http.................................................. 103

10 D-Link DES-3226L Command Line Reference System Maintenance Commands........................ 105 System Information and Statistics Commands..................... 105 show arp switch............................................... 105 show eventlog................................................. 105 show hardware................................................ 106 show interface................................................ 106 show interface ethernet......................................... 107 show logging................................................. 112 show mac-addr-table........................................... 113 show running-config........................................... 114 show sysinfo.................................................. 114 Logging Commands......................................... 114 logging persistent.............................................. 114 no logging persistent......................................... 115 logging host.................................................. 115 logging host remove............................................ 115 logging syslog................................................ 115 no logging syslog............................................ 115 show logging................................................. 115 show logging persistent......................................... 116 show logging hosts............................................. 116 show logging traplogs.......................................... 116 System Utility Commands..................................... 117 traceroute.................................................... 117 clear config.................................................. 117 clear counters................................................. 117 clear igmpsnooping............................................ 117 clear pass.................................................... 118 enable passwd................................................ 118 clear port-channel............................................. 118 clear traplog.................................................. 118 clear vlan.................................................... 118 logout....................................................... 118 ping........................................................ 118 reload....................................................... 119 copy........................................................ 119 Configuration Scripting Commands............................. 120 script apply................................................... 120 script delete.................................................. 121 script list..................................................... 121 script show................................................... 121 script validate................................................. 121 Glossary............................................. 123

List of Figures 11 List of Figures Figure 1. -based CLI.......................................... 26 Figure 2. Syntax Error Message...................................... 28

12 D-Link DES-3226L Command Line Reference

List of Tables 13 List of Tables Table 1. Parameter Conventions..................................... 20 Table 2. Parameter Descriptions..................................... 20 Table 3. Type of Slots............................................. 21 Table 4. Type of Ports............................................. 21 Table 5. CLI Editing Conventions.................................... 22 Table 6. CLI Command s...................................... 25 Table 7. Broadcast Storm Recovery Thresholds......................... 39

14 D-Link DES-3226L Command Line Reference

About This Book 15 About This Book Audience This document describes the command-line interface (CLI) commands that you use to view and configure settings for the D-Link DES-3226L switch. This document is intended for system administrators who configure and operate systems using D-Link DES-3226L software. It provides an understanding of the configuration options of the D-Link DES- 3226L software. This document assumes that the reader has a basic knowledge of Ethernet and networking concepts. Document Organization This document is organized into the following sections: D-Link DES-3226L Overview on page 17 introduces the D-Link DES-3226L software at a very high level. Command Structure on page 19 describes the command format and syntax. Command-Line Interface s on page 25 explains the CLI command modes. Setup and Management Commands on page 29 describes the commands you use to configure management access and basic port settings. Switching Commands on page 51 describes the commands you use to configure and view switch properties, such as VLANs and protected ports. Access and Security Commands on page 83 describes how to configure the device for secure access. System Maintenance Commands on page 105 describes the commands you use to view system information, view and configure system logs, troubleshoot connectivity, and restore various settings to their factory defaults. Trademarks Contents subject to change without prior notice. D-Link is a registered trademark of D-Link Corporation/D-Link Systems, Inc. All other trademarks belong to their respective proprietors. Copyright Statement Copyright 2006 D-Link Corporation. No part of this publication may be reproduced in any form or by any means or used to make any derivative such as translation, transformation, or adaptation without permission from D-Link Corporation/D-Link Systems Inc., as stipulated by the United States Copyright Act of 1976.

16 D-Link DES-3226L Command Line Reference

D-Link DES-3226L Overview 17 D-Link DES-3226L Overview The D-Link DES-3226L software has two purposes: Assist attached hardware in switching frames. Provide a complete device management portfolio to the network administrator. Scope The D-Link DES-3226L encompasses both hardware and software support. The software is partitioned to run in the following processors: CPU This code runs the networking device management portfolio and controls the overall networking device hardware. It also assists in frame forwarding, as needed and specified. Networking device processor This code does the majority of the packet switching, usually at wire speed. Product Concept Fast Ethernet and Gigabit Ethernet switching continues to evolve from high-end backbone applications to desktop switching applications. The price of the technology continues to decline, while performance and feature sets continue to improve. The D-Link DES-3226L provides a flexible solution to these everincreasing needs. The D-Link DES-3226L provides the network administrator with a set of comprehensive management functions for managing both the switch and the network. The network administrator has a choice of three management methods: Web-based VT100 interface Simple Network Management Protocol (SNMP) Each of the D-Link DES-3226L management methods enables the network administrator to configure, manage, and control the D-Link DES-3226L locally or remotely by using in-band or out-of-band mechanisms. Management is standards-based, with configuration parameters and a private MIB providing control for functions not completely specified in the MIBs.

18 D-Link DES-3226L Command Line Reference

Command Structure 19 Command Structure The command-line interface (CLI) is a text-based way to manage and monitor the system. You can access the CLI by using a direct serial connection or by using a remote logical connection with telnet or SSH. This chapter describes the CLI syntax, conventions, and help. It contains the following sections: Command Syntax on page 19 Command Conventions on page 19 Using the No Form of a Command on page 22 Using CLI Help on page 23 Accessing the CLI on page 23 Command Syntax A command is one or more words that might be followed by one or more parameters. Parameters can be required or optional values. Some commands, such as show network or clear vlan, do not require parameters. Other commands, such as network parms, require that you supply a value after the command. You must type the parameter values in a specific order, and optional parameters follow required parameters. The following example describes the network parms command syntax: network parms <ipaddr> <netmask> [<gateway>] network parms is the command name. <ipaddr> and <netmask> are parameters and represent required values that you must enter after you type the command keywords. [<gateway>] is an optional parameter, so you are not required to enter a value in place of the parameter. The CLI Command Reference lists each command by the command name and provides a brief description of the command. Each command reference also contains the following information: shows the command keywords and the required and optional parameters. identifies the command mode you must be in to access the command. Default shows the default value, if any, of a configurable setting on the device. The show commands also contain a description of the information that the command shows. Command Conventions In this document, the command name is in bold font. Parameters are in italic font. You must replace the parameter name with an appropriate value, which might be a name or number. Parameters are order dependent.

20 D-Link DES-3226L Command Line Reference Parameter Values The parameters for a command might include mandatory values, optional values, or keyword choices. Table 1 describes the conventions this document uses to distinguish between value types. Table 1. Parameter Conventions Symbol Example Description <> angle brackets <value> Indicates that you must enter a value in place of the brackets and text inside them. [] square brackets [<value>] Indicates an optional parameter that you can enter in place of the brackets and text inside them. {} curly braces {choice1 choice2} Indicates that you must select a parameter from the list of choices. Vertical bars choice1 choice2 Separates the mutually exclusive choices. [{}] Braces within square brackets [{choice1 choice2}] Indicate a choice within an optional element. To use spaces as part of a name parameter, enclose the name value in double quotes. For example, the expression System Name with Spaces forces the system to accept the spaces. Empty strings ( ) are not valid user defined strings. The value 'Err' designates that the requested value was not internally accessible. This should never happen and indicates that there is a case in the software that is not handled correctly. The value of '-----' designates that the value is unknown. The following table describes common parameter values and value formatting. Table 2. Parameter Descriptions Parameter ipaddr macaddr interface Description This parameter is a valid IP address. You can enter the IP address in the following formats: a (32 bits) a.b (8.24 bits) a.b.c (8.8.16 bits) a.b.c.d (8.8.8.8) In addition to these formats, decimal, hexidecimal and octal formats are supported through the following input formats (where n is any valid hexidecimal, octal or decimal number): 0xn (CLI assumes hexidecimal format) 0n (CLI assumes octal format with leading zeros) n (CLI assumes decimal format) The MAC address format is six hexadecimal numbers separated by colons, for example 00:06:29:32:81:40. Valid slot and port number separated by forward slashes. For example, 0/1 represents slot number 0 and port number 1.

Command Structure 21 Table 2. Parameter Descriptions Parameter Logical Interface Character strings Description Logical slot and port number. This is applicable in the case of a port-channel (LAG). The operator can use the logical slot/port to configure the port-channel. Use double quotation marks to identify character strings, for example, System Name with Spaces. An empty string ( ) is not valid. Slot-Port Naming Convention D-Link DES-3226L software references physical entities such as cards and ports by using a Slot-Port (SP) naming convention. The D-Link DES-3226L software also uses this convention to identify certain logical entities such as Link Aggregation (LAG) or Port-Channel interfaces. The slot number has two uses. In the case of physical ports, it identifies the card containing the ports. In the case of logical and CPU ports it also identifies the type of interface or port. Table 3. Type of Slots Slot Type Physical slot numbers Logical slot numbers CPU slot numbers Description Physical slot numbers begin with zero, and are allocated up to the maximum number of physical slots Logical slots immediately follow physical slots and identify portchannel (LAG) interfaces. The CPU slots immediately follow the logical slots. The port identifies the specific physical port or logical interface being managed on a given slot. Table 4. Type of Ports Port Type Physical Ports Logical Interfaces CPU ports Description The physical ports for each slot are numbered sequentially starting from zero. There is one type of logical interface: port-channel (LAG). Portchannel (LAG) interfaces are only used for bridging functions. Each port-channel interface consists of a set of up to eight physical ports identified by their own slot/port. CPU ports are handled by the driver as one or more physical entities located on physical slots.

22 D-Link DES-3226L Command Line Reference CLI Line-Editing Conventions Table 5 describes the key combinations you can use to edit commands or increase the speed of command entry. You can access this list from the CLI by entering help from the User or Privileged EXEC modes. Table 5. CLI Editing Conventions Key Sequence Description DEL or Backspace Delete previous character Ctrl-A Go to beginning of line Ctrl-E Go to end of line Ctrl-F Go forward one character Ctrl-B Go backward one character Ctrl-D Delete current character Ctrl-U, X Delete to beginning of line Ctrl-K Delete to end of line Ctrl-W Delete previous word Ctrl-T Transpose previous character Ctrl-P Go to previous line in history buffer Ctrl-R Rewrites or pastes the line Ctrl-N Go to next line in history buffer Ctrl-Y Prints last deleted character Ctrl-Q Enables serial flow Ctrl-S Disables serial flow Ctrl-Z Return to root command prompt Tab, <SPACE> Command-line completion Exit Go to next lower command prompt? List available commands, keywords, or parameters Using the No Form of a Command The no keyword is a specific form of an existing command and does not represent a new or distinct command. Almost every configuration command has a no form. In general, use the no form to reverse the action of a command or reset a value back to the default. For example, the no shutdown configuration command reverses the shutdown of an interface. Use the command without the keyword no to re-enable a disabled feature or to enable a feature that is disabled by default. Only the configuration commands are available in the no form.

Command Structure 23 Using CLI Help Enter a question mark (?) at the command prompt to display the commands available in the current mode. (switch) >? enable help logout ping show Enter into user privilege mode. Display help for various special keys. Exit this session. Any unsaved changes are lost. Send ICMP echo packets to a specified IP address. Display switch options and settings. Enter a question mark (?) after each word you enter to display available command keywords or parameters. (switch) #network? javamode parms protocol mgmt_vlan Enable/Disable. Configure Network Parameters of the router. Select DHCP, BootP, or None as the network config protocol. Configure the Management VLAN ID of the switch. If the help output shows a parameter in angle brackets, you must replace the parameter with a value. (switch) #network parms? <ipaddr> Enter the IP Address. If there are no additional command keywords or parameters, or if additional parameters are optional, the following message appears in the output: <cr> Press Enter to execute the command You can also enter a question mark (?) after typing one or more characters of a word to list the available command or parameters that begin with the letters, as shown in the following example: (switch)# show m? mac-addr-table mac-address-table monitor Accessing the CLI You can access the CLI by using a direct console connection or by using a telnet or SSH connection from a remote management host. For the initial connection, you must use a direct connection to the console port. You cannot access the system remotely until the system has an IP address, subnet mask, and default gateway. You can set the network configuration information manually, or you can configure the system to accept these settings from a BOOTP or DHCP server on your network. For more information, see System Management Commands on page 29.

24 D-Link DES-3226L Command Line Reference

Command-Line Interface s 25 Command-Line Interface s The CLI groups all the commands into modes according to the nature of the commands. This section describes the CLI command modes for the D-Link DES-3226L switch. Each of the command modes supports specific D-Link DES-3226L software commands. Table 6 lists the command modes and the prompts visible in that mode. It also explains how to enter or exit each mode. Table 6. CLI Command s Command Access Method Prompt Exit or Access Previous User EXEC This is the first level of access. Perform basic tasks and list system information. Switch> Enter Logout command Privileged EXEC From the User EXEC mode, enter enable Switch# To exit to the User EXEC mode, enter exit or press Ctrl-Z. VLAN From the Privileged EXEC mode, enter vlan database Switch (Vlan)# To exit to the Privileged EXEC mode, enter the exit command, or press Ctrl-Z to switch to the User EXEC mode. Global Config From the Privileged EXEC mode, enter configure Switch (Config)# To exit to the Privileged EXEC mode, enter the exit command, or press Ctrl-Z to switch to the User EXEC mode. Interface Config From the mode, enter interface <slot/port> Switch (Interface <slot/port>)# To exit to the Global Config mode, enter the exit command. To return to the User EXEC mode, enter Ctrl-Z. Line Config From the mode, enter lineconfig Switch (line)# To exit to the Global Config mode, enter the exit command. To return to the User EXEC mode, enter Ctrl-Z.

26 D-Link DES-3226L Command Line Reference -based Topology The CLI tree is built on a mode concept where the commands are available according to the interface. Some of the modes are depicted in Figure 1. Figure 1. -based CLI ROOT The User EXEC commands are also accessible in the mode. User EXEC Enable Passwd Correc Correct t? Yes No Return to the EXEC prompt VLAN Interface Config Line Config Access to all commands in the mode and below are restricted through a password. -based Command Hierarchy The commands in one mode are not available until you switch to that particular mode, with the exception of the User EXEC mode commands. You can execute the User EXEC mode commands in the mode. The commands available to you depend upon the mode. To display a list of the available commands and descriptions of the commands, enter a question mark (?) at the CLI prompt.

Command-Line Interface s 27 Command Description This section describes the CLI command modes. User EXEC When you log into the CLI, the User EXEC mode is the initial mode. The User EXEC mode contains a limited set of commands. The command prompt shown at this level is: Command Prompt: Switch> To have access to the full suite of commands, you must enter the mode. The mode requires password authentication. From mode, you can issue any EXEC command, enter the VLAN mode, or enter the uration mode. The command prompt shown at this level is: Command Prompt: Switch# VLAN This mode groups all the VLAN commands. The command prompt shown at this level is: Command Prompt: Switch(Vlan)# This mode groups general setup commands and permits you to make modifications to the running configuration. From the uration mode, you can enter the System Configuration mode, the Physical Port Configuration mode, the Interface Configuration mode, or the Protocol Specific modes specified below. The command prompt at this level is: Command Prompt: Switch(Config)# From the mode, you can enter the following configuration modes: Interface Config Use the Interface commands to enable or modify the operation of an interface. In this mode, a physical port is set up for a specific logical connection operation. The command prompt at this level is: Command Prompt: Switch(Interface <slot/port>)# The resulting prompt for the interface configuration command entered in the uration mode is shown below: Switch(Config)# interface 2/1 Switch(Interface 2/1)# Line Config Use the Line Config mode to configure the console interface. You can configure the interface from the console connection or the virtual terminal used with Telnet. The command prompt at this level is: Command Prompt: Switch(line)#

28 D-Link DES-3226L Command Line Reference Flow of Operation This section describes the flow of operation for the CLI. 1. Log into the CLI session and enter the User EXEC mode. In the User EXEC mode the $(exec)> prompt displays on the screen. You initiate the parsing process when you type a command and press <ENTER>. If you enter an incorrect or unavailable command, the output message indicates where the offending entry begins. For instance, if you enter show arpp brief (notice the extra p) instead of show arp brief, the output message is $(exec)> show arpp^ brief. $%Invalid input detected at '^' marker. The message shows you where the invalid input is detected. Figure 2 shows the layout of the output. Figure 2. Syntax Error Message (exec) #show arpp brief ^ %Invalid input detected at ^ marker. After you enter the required parameters, any additional parameters you enter are treated as optional parameters. If any of the parameters are not recognized, a syntax error message is displayed. 2. After the command is successfully parsed and validated, the control of execution goes to the corresponding CLI callback function. 3. For required parameters, the command tree extends until the required parameters make the leaf of the branch. The callback function is only invoked when all the required parameters are provided. For optional parameters, the command tree extends until the required parameters and the optional parameters make the leaf of the branch. However, the callback function is associated with the node where the required parameters are fetched. The call back function then takes care of the optional parameters. 4. Once the control has reached the callback function, the callback function has complete information about the parameters you enter.

Setup and Management Commands 29 Setup and Management Commands This section describes the commands you use to configure management access and basic port settings on the D-Link DES-3226L switch. This section contains the following subsections: System Management Commands on page 29 System Configuration Commands on page 35 SNMP Community Commands on page 42 The commands in this section are in one of three functional groups: Show commands display switch settings, statistics, and other information. Configuration commands configure features and options of the switch. For every configuration command, there is a show command that displays the configuration setting. Copy commands transfer or save configuration and informational files to and from the switch. System Management Commands network parms You can use telnet to manage the D-Link DES-3226L switch from a remote management system. To manage the device locally, you can use a direct serial-cable connection. This section describes commands you use to manage remote and direct connections to the device. To manage the device by using SNMP, see SNMP Community Commands on page 42. To manage the device by using SSH, see Secure Shell (SSH) Commands on page 100. To manage the device by using telnet, the switch must have an IP address, subnet mask, and default gateway. You can use network parms to configure the IP address, subnet mask, and default gateway, or you can use network protocol to configure the switch to request the information from a BOOTP or DHCP server on your network. This command sets the IP Address, subnet mask and gateway of the device. The IP address and the gateway must be on the same subnet. network protocol network parms <ipaddr> <netmask> [<gateway>] This command specifies the network configuration protocol to be used. If you modify this value, the change is effective immediately. The bootp parameter indicates that the switch periodically sends requests to a Bootstrap Protocol (BootP) server until a response is received. The dhcp parameter configures the switch to send periodic requests to a DHCP server until a response is received. The parameter none indicates that the switch should be manually configured with IP information. Default none network protocol {none bootp dhcp}

30 D-Link DES-3226L Command Line Reference network mgmt_vlan This command configures the Management VLAN ID. Default 1 network mgmt_vlan <1-4069> no network mgmt_vlan This command sets the Management VLAN ID to the default. no network mgmt_vlan <1-4069> transport input telnet This command regulates new telnet sessions. If sessions are enabled, new telnet sessions can be established until there are no more sessions available. If sessions are disabled, no new telnet sessions are established. An established session remains active until the session is ended or an abnormal network error ends the session. Default no transport input telnet enabled transport input telnet Line Config This command disables telnet sessions. If sessions are disabled, no new telnet sessions are established. telnetcon maxsessions no transport input telnet Line Config This command specifies the maximum number of telnet connection sessions that can be established. A value of 0 indicates that no telnet connection can be established. The range is 0 to 5. Default 5 telnetcon maxsessions <0-5> no telnetcon maxsessions This command sets the maximum number of telnet connection sessions that can be established to the default value. no telnetcon maxsessions

Setup and Management Commands 31 telnetcon timeout This command sets the telnet connection session timeout value, in minutes. A session is active as long as the session has not been idle for the value set. The time is a decimal value from 1 to 160. Note: Changing the timeout value for active sessions does not become effective until the session is reaccessed. Also, any keystroke activates the new timeout duration. Default 5 telnetcon timeout <1-160> no telnetcon timeout This command sets the telnet connection session timeout value to the default. Note: bridge aging-time Changing the timeout value for active sessions does not become effective until the session is reaccessed. Also, any keystroke activates the new timeout duration. no telnetcon timeout This command configures the forwarding database address aging timeout in seconds. In an IVL system, the [fdbid all] parameter is required. The <seconds> parameter must be within the range of 10 to 1,000,000 seconds. Fdbid (Forwarding database ID) indicates which forwarding database's aging timeout is being configured. The All option is used to configure all forwarding database's agetime. Default 300 no bridge aging-time bridge aging-time <10-1,000,000> [fdbid all] This command sets the forwarding database address aging timeout to 300 seconds. In an IVL system, the [fdbid all] parameter is required. Fdbid (Forwarding database ID) indicates which forwarding database's aging timeout is being configured. All is used to configure all forwarding database's agetime. network javamode no bridge aging-time [fdbid all] This command specifies whether or not the switch should allow access to the Java applet in the header frame of the Web interface. When access is enabled, the Java applet can be viewed from the Web interface. When access is disabled, the user cannot view the Java applet. Default enabled network javamode

32 D-Link DES-3226L Command Line Reference no network javamode This command disallows access to the Java applet in the header frame of the Web interface. When access is disabled, the user cannot view the Java applet. network mac-address no network javamode This command sets locally administered MAC addresses. The following rules apply: Bit 6 of byte 0 (called the U/L bit) indicates whether the address is universally administered (b'0') or locally administered (b'1'). Bit 7 of byte 0 (called the I/G bit) indicates whether the destination address is an individual address (b'0') or a group address (b'1'). The second character, of the twelve character macaddr, must be 2, 6, A or E. A locally administered address must have bit 6 On (b'1') and bit 7 Off (b'0')... network mac-type network mac-address <macaddr> This command specifies whether the burned in MAC address or the locally-administered MAC address is used. Default no network mac-type burnedin network mac-type {local burnedin} This command resets the value of MAC address to its default. serial baudrate no network mac-type This command specifies the communication rate of the terminal interface. The supported rates are 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200. Default 9600 serial baudrate {1200 2400 4800 9600 19200 38400 57600 115200} Line Config