D-Link DS-3550 Command Line Interface Reference Manual

DES-3550
Layer 2 Switch
Command Line Interface Reference Manual
First Edition (February 2004)
651ES3550015
Printed In Taiwan
RECYCLABLE
Wichtige Sicherheitshinweise
1. Bitte lesen Sie sich diese Hinweise sorgfältig durch.
2. Heben Sie diese Anleitung für den spätern Gebrauch auf.
3. Vor jedem Reinigen ist das Gerät vom Stromnetz zu trennen. Vervenden Sie keine Flüssig- oder Aerosolreiniger. Am besten dient ein angefeuchtetes Tuch zur Reinigung.
4. Um eine Beschädigung des Gerätes zu vermeiden sollten Sie nur Zubehörteile verwenden, die vom Hersteller zugelassen sind.
5. Das Gerät is vor Feuchtigkeit zu schützen.
6. Bei der Aufstellung des Gerätes ist auf sichern Stand zu achten. Ein Kippen oder Fallen könnte Verletzungen hervorrufen. Verwenden Sie nur sichere Standorte und beachten Sie die Aufstellhinweise des Herstellers.
7. Die Belüftungsöffnungen dienen zur Luftzirkulation die das Gerät vor Überhitzung schützt. Sorgen Sie dafür, daß diese Öffnungen nicht abgedeckt werden.
8. Beachten Sie beim Anschluß an das Stromnetz die Anschlußwerte.
9. Die Netzanschlußsteckdose muß aus Gründen der elektrischen Sicherheit einen Schutzleiterkontakt haben.
10. Verlegen Sie die Netzanschlußleitung so, daß niemand darüber fallen kann. Es sollete auch nichts auf der Leitung abgestellt werden.
11. Alle Hinweise und Warnungen die sich am Geräten befinden sind zu beachten.
12. Wird das Gerät über einen längeren Zeitraum nicht benutzt, sollten Sie es vom Stromnetz trennen. Somit wird im Falle einer Überspannung eine Beschädigung vermieden.
13. Durch die Lüftungsöffnungen dürfen niemals Gegenstände oder Flüssigkeiten in das Gerät gelangen. Dies könnte einen Brand bzw. Elektrischen Schlag auslösen.
14. Öffnen Sie niemals das Gerät. Das Gerät darf aus Gründen der elektrischen Sicherheit nur von authorisiertem Servicepersonal geöffnet werden.
15. Wenn folgende Situationen auftreten ist das Gerät vom Stromnetz zu trennen und von einer qualifizierten Servicestelle zu überprüfen: a – Netzkabel oder Netzstecker sint beschädigt. b – Flüssigkeit ist in das Gerät eingedrungen. c – Das Gerät war Feuchtigkeit ausgesetzt. d – Wenn das Gerät nicht der Bedienungsanleitung ensprechend funktioniert oder Sie mit Hilfe dieser Anleitung keine Verbesserung erzielen. e – Das Gerät ist gefallen und/oder das Gehäuse ist beschädigt. f – Wenn das Gerät deutliche Anzeichen eines Defektes aufweist.
16. Bei Reparaturen dürfen nur Orginalersatzteile bzw. den Orginalteilen entsprechende Teile verwendet werden. Der Einsatz von ungeeigneten Ersatzteilen kann eine weitere Beschädigung hervorrufen.
17. Wenden Sie sich mit allen Fragen die Service und Repartur betreffen an Ihren Servicepartner. Somit stellen Sie die Betriebssicherheit des Gerätes sicher.
18. Zum Netzanschluß dieses Gerätes ist eine geprüfte Leitung zu verwenden, Für einen Nennstrom bis 6A und einem Gerätegewicht grőßer 3kg ist eine Leitung nicht leichter als H05VV-F, 3G, 0.75mm2 einzusetzen.
WARRANTIES EXCLUSIVE
IF THE D-LINK PRODUCT DOES NOT OPERATE AS WARRANTED ABOVE, THE CUSTOMER'S SOLE REMEDY SHALL BE, AT D-LINK'S OPTION, REPAIR OR REPLACEMENT. THE FOREGOING WARRANTIES AND REMEDIES ARE EXCLUSIVE AND ARE IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, EITHER IN FACT OR BY OPERATION OF LAW, STATUTORY OR OTHERWISE, INCLUDING WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. D-LINK NEITHER ASSUMES NOR AUTHORIZES ANY OTHER PERSON TO ASSUME FOR IT ANY OTHER LIABILITY IN CONNECTION WITH THE SALE, INSTALLATION MAINTENANCE OR USE OF D-LINK'S PRODUCTS
D-LINK SHALL NOT BE LIABLE UNDER THIS WARRANTY IF ITS TESTING AND EXAMINATION DISCLOSE THAT THE ALLEGED DEFECT IN THE PRODUCT DOES NOT EXIST OR WAS CAUSED BY THE CUSTOMER'S OR ANY THIRD PERSON'S MISUSE, NEGLECT, IMPROPER INSTALLATION OR TESTING, UNAUTHORIZED ATTEMPTS TO REPAIR, OR ANY OTHER CAUSE BEYOND THE RANGE OF THE INTENDED USE, OR BY ACCIDENT, FIRE, LIGHTNING OR OTHER HAZARD.
LIMITATION OF LIABILITY
IN NO EVENT WILL D-LINK BE LIABLE FOR ANY DAMAGES, INCLUDING LOSS OF DATA, LOSS OF PROFITS, COST OF COVER OR OTHER INCIDENTAL, CONSEQUENTIAL OR INDIRECT DAMAGES ARISING OUT THE INSTALLATION, MAINTENANCE, USE, PERFORMANCE, FAILURE OR INTERRUPTION OF A D- LINK PRODUCT, HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY. THIS LIMITATION WILL APPLY EVEN IF D-LINK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
IF YOU PURCHASED A D-LINK PRODUCT IN THE UNITED STATES, SOME STATES DO NOT ALLOW THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU.
ii
Limited Warranty
Hardware:
D-Link warrants each of its hardware products to be free from defects in workmanship and materials under normal use and service for a period commencing on the date of purchase from D-Link or its Authorized Reseller and extending for the length of time stipulated by the Authorized Reseller or D-Link Branch Office nearest to the place of purchase.
This Warranty applies on the condition that the product Registration Card is filled out and returned to a D-Link office within ninety (90) days of purchase. A list of D-Link offices is provided at the back of this manual, together with a copy of the Registration Card.
If the product proves defective within the applicable warranty period, D-Link will provide repair or replacement of the product. D-Link shall have the sole discretion whether to repair or replace, and replacement product may be new or reconditioned. Replacement product shall be of equivalent or better specifications, relative to the defective product, but need not be identical. Any product or part repaired by D-Link pursuant to this warranty shall have a warranty period of not less than 90 days, from date of such repair, irrespective of any earlier expiration of original warranty period. When D-Link provides replacement, then the defective product becomes the property of D-Link.
Warranty service may be obtained by contacting a D-Link office within the applicable warranty period, and requesting a Return Material Authorization (RMA) number. If a Registration Card for the product in question has not been returned to D-Link, then a proof of purchase (such as a copy of the dated purchase invoice) must be provided. If Purchaser's circumstances require special handling of warranty correction, then at the time of requesting RMA number, Purchaser may also propose special procedure as may be suitable to the case.
After an RMA number is issued, the defective product must be packaged securely in the original or other suitable shipping package to ensure that it will not be damaged in transit, and the RMA number must be prominently marked on the outside of the package. The package must be mailed or otherwise shipped to D-Link with all costs of mailing/shipping/insurance prepaid. D-Link shall never be responsible for any software, firmware, information, or memory data of Purchaser contained in, stored on, or integrated with any product returned to D-Link pursuant to this warranty.
Any package returned to D-Link without an RMA number will be rejected and shipped back to Purchaser at Purchaser's expense, and D-Link reserves the right in such a case to levy a reasonable handling charge in addition mailing or shipping costs.
Software:
Warranty service for software products may be obtained by contacting a D-Link office within the applicable warranty period. A list of D-Link offices is provided at the back of this manual, together with a copy of the Registration Card. If a Registration Card for the product in question has not been returned to a D-Link office, then a proof of purchase (such as a copy of the dated purchase invoice) must be provided when requesting warranty service. The term "purchase" in this software warranty refers to the purchase transaction and resulting license to use such software.
D-Link warrants that its software products will perform in substantial conformance with the applicable product documentation provided by D-Link with such software product, for a period of ninety (90) days from the date of purchase from D-Link or its Authorized Reseller. D-Link warrants the magnetic media, on which D-Link provides its software product, against failure during the same warranty period. This warranty applies to purchased software, and to replacement software provided by D-Link pursuant to this warranty, but shall not apply to any update or replacement which may be provided for download via the Internet, or to any update which may otherwise be provided free of charge.
D-Link's sole obligation under this software warranty shall be to replace any defective software product with product which substantially conforms to D-Link's applicable product documentation. Purchaser assumes responsibility for the selection of appropriate application and system/platform software and associated reference materials. D-Link makes no warranty that its software products will work in combination with any hardware, or any application or system/platform software product provided by any third party, excepting only such products as are expressly represented, in D-Link's applicable product documentation as being compatible. D-Link's obligation under this warranty shall be a reasonable effort to provide compatibility, but D-Link shall have no obligation to provide compatibility when there is fault in the third-party hardware or software. D-Link makes no warranty that operation of its software products will be uninterrupted or absolutely error-free, and no warranty that all defects in the software product, within or without the scope of D-Link's applicable product documentation, will be corrected.
iii
Subject to the terms and conditions set forth herein, D-Link Systems, Inc. (“D-Link”) provides this Limited warranty for its product only to the person or entity that originally purchased the product from:
D-Link or its authorized reseller or distributor and
Products purchased and delivered within the fifty states of the United States, the District of Columbia, U.S. Possessions or Protectorates,
and U.S. Military Installations, addresses with an APO or FPO.
Limited Warranty:
workmanship and materials from the date of original retail purchase of the product, for the period set forth below applicable to the product type (“Warranty Period”), except as otherwise state d herein.
D-Link warrants that the hardware portion of the D-Link products described below will be free from material defects in
5-Year Limited Warranty for the Product(s) is defined as follows:
Hardware (excluding power supplies and fans) Five (5) Years
Power Supplies and Fans Three (3) Year
Spare parts and spare kits Ninety (90) days
D-Link’s sole obligation shall be to repair or replace the defective Hardware during the Warranty Period at no charge to the original owner or to refund at D-Link’s sole discretion. Such repair or replacement will be rendered by D-Link at an Authorized D-Link Service Office. The replacement Hardware need not be new or have an identical make, model or part. D-Link may in its sole discretion replace the defective Hardware (or any part thereof) with any reconditioned product that D-Link reasonably determines is substantially equivalent (or superior) in all material respects to the defective Hardware. Repaired or replacement Hardware will be warranted for the remainder of the original Warranty Period from the date of original retail purchase. If a material defect is incapable of correction, or if D-Link determines in its sole discretion that it is not practical to repair or replace the defective Hardware, the price paid by the original purchaser for the defective Hardware will be refunded by D-Link upon return to D-Link of the defective Hardware. All Hardware (or part thereof) that is replaced by D-Link, or for which the purchase price is refunded, shall become the property of D-Link upon replacement or refund.
Limited Software Warranty:
current functional specifications for the Software, as set forth in the applicable documentation, from the date of original retail purchase of the Software for a period of ninety (90) days (“Warranty Period”), provided that the Software is properly installed on approved hardware and operated as contemplated in its documentation. D-Link further warrants that, during the Warranty Period, the magnetic media on which D-Link delive rs the Software will be free of physical defects. D-Link’s sole obligation shall be to replace the non-conforming Software (or defective media) with software that substantially conforms to D-Link’s functional specifications for the Software or to refund at D-Link’s sole discretion. Except as otherwise agreed by D-Link in writing, the replacement Software is provided only to the original licensee, and is subject to the terms and conditions of the license granted by D-Link for the Software. Software will be warranted for the remainder of the original Warranty Period from the date or original retail purchase. If a material non-conformance is incapable of correction, or if D-Link determines in its sole discretion that it is not practical to replace the non-conforming Software, the price paid by the original licensee for the non-conforming Software will be refunded by D-Link; provided that the non­conforming Software (and all copies thereof) is first returned to D-Link. The license granted respecting any Software for which a refund is given automatically terminates.
Non-Applicability of Warranty: The Limited Warranty provided hereunder for hardware and software of D-Link's products, will not be applied to and does not cover any product purchased through the inventory clearance or liquidation sale or other sales in which D-Link, the sellers, or the liquidators expressly disclaim their warranty obligation pertaining to the product and in that case, the product is being sold "As-Is" without any warranty whatsoever including, without limitation, the Limited Warranty as described herein, notwithstanding anything stated herein to the contrary.
Submitting A Claim: Any claim under this limited warranty must be submitted in writing before the end of the Warranty Period to an Authorized D­Link Service Office.
The customer must submit as part of the claim a written description of the Hardware defect or Software nonconformance in sufficient
detail to allow D-Link to confirm the same.
The original product owner must obtain a Return Material Authorization (“RMA”) number from the Authorized D-Link Service Office and, if
requested, provide written proof of purchase of the product (such as a copy of the dated purchase invoice for the product) before the warranty service is provided.
After an RMA number is issued, the defective product must be packaged securely in the original or other suitable shipping package to
ensure that it will not be damaged in transit, and the RMA number must be prominently marked on the outside of the package. Do not include any manuals or accessories in the shipping package. D-Link will only replace the defective portion of the Product and will not ship back any accessories.
The customer is responsible for all shipping charges to D-Link. No Charge on Delivery (“COD”) is allowed. Products sent COD will either
be rejected by D-Link or become the property of D-Link. Products should be fully insured by the customer and shipped to D-Link Systems, Inc., 53 Discovery Drive, Irvine, CA 92618. D-Link will not be held responsible for any packages that are lost in transit to D-Link. The repaired or replaced packages will be shipped via UPS Ground or any common carrier selected by D-Link, with shipping charges prepaid. Expedited shipping is available if shipping charges are prepaid by the customer.
D-Link may reject or return any product that is not packaged and shipped in strict compliance with the foregoing requirements, or for which an RMA number is not visible from the outside of the package. The product owner agrees to pay D-Link’s reasonable handling and return shipping charges for any product that is not packaged and shipped in accordance with the foregoing requirements, or that is determine d by D-Link not to be defective or non-conforming.
What Is Not Covered: This limited warranty provided by D-Link does not cover: Products, if in D-Link’s judgment, have been subjected to abuse, accident, alteration, modification, tampering, negligence, misuse, faulty installation, lack of reasonable care, repair or service in any way that is not contemplated in the documentation for the product, or if the model or serial number has been altered, tampered with, defaced or removed; Initial installation, installation and removal of the product for repair, and shipping costs; Operational adjustments covered in the operating manual for the product, and normal maintenance; Damage that occurs in shipment, due to act of God, failures due to power surge, and cosmetic damage; Any hardware, software, firmware or other products or services provided by anyone other than D-Link; Products that have been purchased from
D-Link warrants that the software portion of the product (“Software”) will substantially conform to D-Link’s then
iv
inventory clearance or liquidation sales or other sales in which D-Link, the sellers, or the liquidators e xpressly disclaim their warranty obligation pertaining to the product. Repair by anyone other than D-Link or an Authorized D-Link Service Office will void this Warranty.
Disclaimer of Other Warranties: EXCEPT FOR THE LIMITED WARRANTY SPECIFIED HEREIN, THE PRODUCT IS PROVIDED “AS-IS” WITHOUT ANY WARRANTY OF ANY KIND WHATSOEVER INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IF ANY IMPLIED WARRANTY CANNOT BE DISCLAIMED IN ANY TERRITORY WHERE A PRODUCT IS SOLD, THE DURATION OF SUCH IMPLIED WARRANTY SHALL BE LIMITED TO NINETY (90) DAYS. EXCEPT AS EXPRESSLY COVERED UNDER THE LIMITED WARRANTY PROVIDED HEREIN, THE ENTIRE RISK AS TO THE QUALITY, SELECTION AND PERFORMANCE OF THE PRODUCT IS WITH THE PURCHASER OF THE PRODUCT.
Limitation of Liability: TO THE MAXIMUM EXTENT PERMITTED BY LAW, D-LINK IS NOT LIABLE UNDER ANY CONTRACT, NEGLIGENCE, STRICT LIABILITY OR OTHER LEGAL OR EQUITABLE THEORY FOR ANY LOSS OF USE OF THE PRODUCT, INCONVENIENCE OR DAMAGES OF ANY CHARACTER, WHETHER DIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL (INCLUDING, BUT NOT LIMITED TO, DAMAGES FOR LOSS OF GOODWILL, LOSS OF REVENUE OR PROFIT, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, FAILURE OF OTHER EQUIPMENT OR COMPUTER PROGRAMS TO WHICH D-LINK’S PRODUCT IS CONNECTED WITH, LOSS OF INFORMATION OR DATA CONTAINED IN, STORED ON, OR INTEGRATED WITH ANY PRODUCT RETURNED TO D-LINK FOR WARRANTY SERVICE) RESULTING FROM THE USE OF THE PRODUCT, RELATING TO WARRANTY SERVICE, OR ARISING OUT OF ANY BREACH OF THIS LIMITED WARRANTY, EVEN IF D-LINK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE SOLE REMEDY FOR A BREACH OF THE FOREGOING LIMITED WARRANTY IS REPAIR, REPLACEMENT OR REFUND OF THE DEFECTIVE OR NON-CONFORMING PRODUCT. THE MAXIMUM LIABILITY OF D-LINK UNDER THIS WARRANTY IS LIMITED TO THE PURCHASE PRICE OF THE PRODUCT COVERED BY THE WARRANTY. THE FOREGOING EXPRESS WRITTEN WARRANTIES AND REMEDIES ARE EXCLUSIVE AND ARE IN LIEU OF ANY OTHER WARRANTIES OR REMEDIES, EXPRESS, IMPLIED OR STATUTORY.
Governing Law: This Limited Warranty shall be governed by the laws of the state of California. Some states do not allow exclusion or limitation of incidental or consequential damages, or limitations on how long an implied warranty lasts, so the foregoing limitations and exclusions may not apply. This limited warranty provides specific legal rights and the product owner may also have other rights which vary from state to state
For detailed warranty outside the United States, please contact corresponding local D-Link office.
Register online your D-Link product at http://support.dlink.com/register/
D-Link Offices for Registration and Warranty Service
The product's Registration Card, provided at the back of this manual, must be sent to a D-Link office. To obtain an RMA number for warranty service as to a hardware product, or to obtain warranty service as to a software product, contact the D-Link office nearest you. An address/telephone/fax/e-mail/Web site list of D-Link offices is provided in the back of this manual.
Trademarks
Copyright 2003 D-Link Corporation. 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
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.
FCC Warning
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with this user’s guide, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.
CE Mark Warning
This is a Class A product. In a domestic environment, this product may cause radio interference in which case the user may be required to take adequate measures.
VCCI Warning
v
Table of Contents
Introduction...................................................................................................................................................................................... 1
Using the Console CLI..................................................................................................................................................................... 4
Command Syntax............................................................................................................................................................................. 8
Basic Switch Commands................................................................................................................................................................ 10
Switch Port Commands.................................................................................................................................................................. 21
Port Security Commands................................................................................................................................................................ 24
Network Management (SNMP) Commands .................................................................................................................................. 27
Switch Utility Commands .............................................................................................................................................................. 49
Network Monitoring Commands ................................................................................................................................................... 53
Spanning Tree Commands............................................................................................................................................................. 66
Forwarding Database Commands .................................................................................................................................................. 72
Broadcast Storm Control Commands............................................................................................................................................. 80
QoS Commands ............................................................................................................................................................................. 82
Port Mirroring Commands............................................................................................................................................................. 90
VLAN Commands.......................................................................................................................................................................... 94
Asymmetric VLAN Commands................................................................................................................................................... 100
Link Aggregation Commands ...................................................................................................................................................... 102
Basic IP Commands ..................................................................................................................................................................... 108
IGMP Snooping Commands ........................................................................................................................................................ 110
802.1X Commands....................................................................................................................................................................... 120
Access Control List (ACL) Commands ....................................................................................................................................... 132
Traffic Segmentation Commands................................................................................................................................................. 143
Time and SNTP Commands......................................................................................................................................................... 145
ARP Commands........................................................................................................................................................................... 152
Routing Table Commands............................................................................................................................................................156
MAC Notification Commands ..................................................................................................................................................... 158
Access Authentication Control Commands.................................................................................................................................. 162
Single IP Management Commands...............................................................................................................................................187
Command History List..................................................................................................................................................................198
Technical Specifications...............................................................................................................................................................201
1
INTRODUCTION
The Switch can be managed through the Switch’s serial port, Telnet, or the Web-based management agent. The Command Line Interface (CLI) can be used to configure and manage the Switch via the serial port or Telnet interfaces.
This manual provides a reference for all of the commands contained in the CLI. Configuration and management of the switch via the Web-based management agent is discussed in the User’s Guide.
Accessing the Switch via the Serial Port
The Switch’s serial port’s default settings are as follows:
9600 baud
no parity
8 data bits
1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a serial port configured as above is then connected to the Switch’s serial port via an RS-232 DB-9 cable.
With the serial port properly connected to a management computer, the following screen should be visible. If this screen does not appear, try pressing Ctrl+r to refresh the console screen.
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor DES-3550:4#. This is the command line where all commands are input.
Setting the Switch’s IP Address
Each Switch must be assigned its own IP Address, which is used for communication with an SNMP network manager or other TCP/IP application (for example BOOTP, TFTP). The Switch’s default IP address is 10.90.90.90. You can change the default Switch IP address to meet the specification of your networking address scheme.
The Switch is also assigned a unique MAC address by the factory. This MAC address cannot be changed, and can be found on the initial boot console screen – shown below.
Figure 1-1. Initial CLI screen
1
Figure 1-2. Boot Screen
The Switch’s MAC address can also be found in the Web management program on the Switch Information (Basic Settings) window on the Configuration menu.
The IP address for the switch must be set before it can be managed with the Web-based manager. The Switch IP address can be automatically set using BOOTP or DHCP protocols, in which case the actual address assigned to the switch must be known.
The IP address may be set using the Command Line Interface (CLI) over the console serial port as follows:
1. Starting at the command line prompt, enter the commands config ipif System ipaddress
xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy
. Where the x’s represent the IP address to be assigned to the IP interface named
System and the y’s represent the corresponding subnet mask.
2. Alternatively, you can enter config ipif System ipaddress xxx.xxx.xxx.xxx/z. Where the x’s represent the IP address to be assigned to the IP interface named System and the z represents the corresponding number of subnets in CIDR notation.
The IP interface named System on the switch can be assigned an IP address and subnet mask which can then be used to connect a management station to the switch’s Telnet or Web-based management agent.
Figure 1-3. Assigning an IP Address
2
In the above example, the Switch was assigned an IP address of 10.53.13.144/8 with a subnet mask of 255.0.0.0. The system message Success indicates that the command was executed successfully. The Switch can now be configured and managed via Telnet, SNMP MIB browser and the CLI or via the Web-based management agent using the above IP address to connect to the Switch.
3
2
USING THE CONSOLE CLI
The DES-3550 supports a console management interface that allows the user to connect to the switch’s management agent via a serial port and a terminal or a computer running a terminal emulation program. The console can also be used over the network using the TCP/IP Telnet protocol. The console program can be used to configure the Switch to use an SNMP-based network management software over the network.
This chapter describes how to use the console interface to access the switch, change its settings, and monitor its operation.
: Switch configuration settings are saved to non-volatile RAM using
Note
the save command. The current configuration will then be retained in the switch’s NV-RAM, and reloaded when the Switch is rebooted. If the Switch is rebooted without using the save command, the last configuration saved to NV-RAM will be loaded.
Connecting to the Switch
The console interface is used by connecting the Switch to a VT100-compatible terminal or a computer running an ordinary terminal emulator program (e.g., the HyperTerminal program included with the Windows operating system) using an RS-232C serial cable. Your terminal parameters will need to be set to:
VT-100 compatible
9600 baud
8 data bits
No parity
One stop bit
No flow control
You can also access the same functions over a Telnet interface. Once you have set an IP address for your Switch, you can use a Telnet program (in VT-100 compatible terminal mode) to access and control the Switch. All of the screens are identical, whether accessed from the console port or from a Telnet interface.
After the Switch reboots and you have logged in, the console looks like this:
Figure 2-1. Initial Console Screen
4
Commands are entered at the command prompt, DES-3550:4#.
There are a number of helpful features included in the CLI. Entering the ? command will display a list of all of the top-level commands.
Figure 2-2. The ? Command
When you enter a command without its required parameters, the CLI will prompt you with a
Next possible completions:
message.
Figure 2-3. Example Command Parameter Help
In this case, the command
config account
was entered with the parameter
<username>
. The CLI will then prompt you to enter the <username> with the message, Next possible completions:. Every command in the CLI has this feature, and complex commands have several layers of parameter prompting.
In addition, after typing any given command plus one space, you can see all of the next possible sub-commands, in sequential order, by repeatedly pressing the Tab key.
To re-enter the previous command at the command prompt, press the up arrow cursor key. The previous command will appear at the command prompt.
5
Figure 2-4. Using the Up Arrow to Re-enter a Command
In the above example, the command config account was entered without the required parameter <username>, the CLI returned the Next possible completions: <username> prompt. The up arrow cursor control key was pressed to re-enter the previous command (config account) at the command prompt. Now the appropriate username can be entered and the config account command re-executed.
All commands in the CLI function in this way. In addition, the syntax of the help prompts are the same as presented in this manual angle brackets < > indicate a numerical value or character string, braces { } indicate optional parameters or a choice of parameters, and brackets [ ] indicate required parameters.
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the
Available
commands: prompt.
Figure 2-5. The Next Available Commands Prompt
The top-level commands consist of commands such as show or config. Most of these commands require one or more parameters to narrow the top-level command. This is equivalent to show what? or config what? Where the what? is the next parameter.
For example, if you enter the show command with no additional parameters, the CLI will then display all of the possible next parameters.
6
Figure 2-6. Next possible completions: Show Command
In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt, the up arrow was used to re-enter the show command, followed by the account parameter. The CLI then displays the user accounts configured on the Switch.
7
3
COMMAND SYNTAX
The following symbols are used to describe how command entries are made and values and arguments are specified in this manual. The online help contained in the CLI and available through the console interface uses the same syntax.
Note: All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted function that changes text case.
<angle brackets>
Purpose Encloses a variable or value that must be specified.
Syntax
Description In the above syntax example, you must supply an IP interface name in
Example Command
create ipif <ipif_name> vlan <vlan_name 32> ipaddress <network_address>
the <ipif_name> space, a VLAN name in the <vlan_name 32> space, and the network address in the <network_address> space. Do not type the angle brackets.
create ipif Engineering vlan Design ipaddress 10.24.22.5/255.0.0.0
[square brackets]
Purpose Encloses a required value or set of required arguments. One value or
argument can be specified.
Syntax
Description
Example Command
create account [admin|user]
In the above syntax example, you must specify either an
level account to be created. Do not type the square brackets.
user
create account admin
admin
or a
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of which
must be entered.
Syntax
Description
Example Command
show snmp [community|detail]
In the above syntax example, you must specify either
detail
show snmp community
{braces}
Purpose Encloses an optional value or set of optional arguments.
Syntax
reset {[config|system]}
. Do not type the backslash.
8
community,
or
{braces}
Description
Example command
In the above syntax example, you have the option to specify
. It is not necessary to specify either optional value, however the
detail
effect of the system reset is dependent on which, if any, value is specified. Therefore, with this example there are three possible outcomes of performing a system reset. See the following chapter, Basic Commands for more details about the reset command.
reset config
config
or
Line Editing Key Usage
Delete Deletes the character under the cursor and then shifts the remaining
characters in the line to the left.
Backspace Deletes the character to the left of the cursor and shifts the remaining
characters in the line to the left.
Insert or Ctrl+R Toggle on and off. When toggled on, inserts text and shifts previous
text to right. Left Arrow Moves the cursor to the left. Right Arrow Moves the cursor to the right. Up Arrow Repeat the previously entered command. Each time the up arrow is
pressed, the command previous to that displayed appears. This way it
is possible to review the command history for the current session. Use
the down arrow to progress sequentially forward through the command
history list. Down Arrow The down arrow will display the next command in the command history
entered in the current session. This displays each command
sequentially as it was entered. Use the up arrow to review previous
commands. Tab Shifts the cursor to the next field to the left.
Multiple Page Display Control Keys
Space Displays the next page. CTRL+c Stops the display of remaining pages when multiple pages are to be
displayed.
ESC Stops the display of remaining pages when multiple pages are to be
displayed. n Displays the next page. p Displays the previous page. q Stops the display of remaining pages when multiple pages are to be
displayed. r Refreshes the pages currently displayed. a Displays the remaining pages without pausing between pages. Enter Displays the next line or table entry.
9
4
BASIC SWITCH COMMANDS
The basic switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
create account [admin|user]
<username 15>
config account <username 15>
show account
delete account <username 15>
show session
show switch
show serial_port
config serial_port {baud_rate [9600|19200|38400|115200]
auto_logout [never|2_minutes|5_minutes |10_minutes|15_minutes]}
enable clipaging
disable clipaging
enable telnet <tcp_port_number 1-65535>
disable telnet
enable web <tcp_port_number 1-65535>
disable web
save
reboot
reset {[config|system]}
login
logout
Each command is listed, in detail, in the following sections.
create account
Purpose
Syntax create [admin | user] <username 15>
Description
Parameters
Restrictions
Used to create user accounts
The create account command is used to create user accounts that consist of a username of 1 to 15 characters and a password of 0 to 15 characters. Up to 8 user accounts can be created.
Admin <username>
User <username>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
10
Example usage:
To create an administrator-level user account with the username “dlink”.
DES-3550:4#create account admin dlink Command: create account admin dlink
Enter a case-sensitive new password:**** Enter the new password again for confirmation:****
Success.
DES-3550:4#
config account
Example usage:
To configure the user password of “dlink” account:
Purpose
Syntax config account <username>
Description
Parameters
Restrictions
DES-3550:4#config account dlink
Command: config account dlink
Enter a old password:****
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DES-3550:4#
Used to configure user accounts
The config account command configures a user account that has been created using the
<username>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
create account
command.
show account
Purpose
Syntax show account
Used to display user accounts
11
show account
Example usage:
To display the accounts that have been created:
Description
Parameters
Restrictions
Displays all user accounts created on the switch. Up to 8 user accounts can exist on the switch at one time.
None.
Only Administrator-level users can issue this command.
DES-3550:4#show account
Command: show account
Current Accounts:
Username Access Level
--------------- ------------
dlink Admin
Total Entries: 1
DES-3550:4#
Example usage:
To delete the user account “System”:
delete account
Purpose
Syntax delete account <username>
Description
Parameters
Restrictions
Used to delete an existing user account
The delete account command deletes a user account that has been
created using the
<username>
Only Administrator-level users can issue this command.
DES-3550:4#delete account System
Command: delete account System
Success.
DES-3550:4#
create account
command.
show session
Purpose
Used to display a list of currently logged-in users.
12
show session
Syntax show session
Example usage:
To display the way that the users logged in:
Description
This command displays a list of all the users that are logged-in at the time the command is issued.
Parameters
Restrictions
None
None.
DES-3550:4#show session
Command: show session
ID Login Time Live Time From Level Name
-- ------------------------------- --------- ------------ ----- -----------
*8 00000 days 00:00:37 03:36:27 Serial Port 4 Anonymous
show switch
Purpose
Used to display information about the switch.
Example usage:
To display the switch information:
Syntax show switch
Description
Parameters
Restrictions
DES-3550:4#show switch Command: show switch
Device Type : DES-3550 Fast Ethernet Switch Combo Port : 1000Base-T + 1000Base-T MAC Address : 00-01-02-03-04-00 IP Address : 10.41.44.22 (Manual) VLAN Name : default Subnet Mask : 255.0.0.0 Default Gateway : 0.0.0.0 Boot PROM Version : Build 3.00.001 Firmware Version : Build 1.00-B02 Hardware Version : 2A1 Device S/N : Power Status : Main – Normal, Redundant – Not Present System Name : DES-3550
This command displays information about the switch.
None.
Only Administrator-level users can issue this command.
13
System Location : 7th_flr_east_cabinet System Contact : Julius_Erving_212-555-6666 Spanning Tree : Disabled GVRP : Disabled IGMP Snooping : Disabled TELNET : Enabled (TCP 23) WEB : Enabled (TCP 80) RMON : Enabled Asymmetric VLAN : Disabled
DES-3550:4#
show serial_port
Purpose
Syntax show serial_port
Description
Parameters
Restrictions
Example usage:
To display the serial port setting:
Used to display the current serial port settings.
This command displays the current serial port settings.
None.
None
DES-3550:4#show serial_port
Command: show serial_port
Baud Rate : 9600
Data Bits : 8
Parity Bits : None
Stop Bits : 1
Auto-Logout : 10 mins
DES-3550:4#
config serial_port
Purpose
Syntax config serial_port {baud_rate [9600|19200|38400|115200] |
Description
Parameters
Used to configure the serial port and the auto logout time for idle connections.
auto_logout [never | 2_minutes | 5_minutes | 10_minutes | 15_minutes]}
This command is used to configure the serial port’s baud rate and auto logout settings.
baud_rate[9600|19200|38400|115200] The serial bit rate that will be used to communicate with the management host. There are four options: 9600,
14
config serial_port
19200, 38400, 115200.
never No time limit on the length of time the console can be open with no user input.
2_minutes The console will log out the current user if there is no user input for 2 minutes.
5_minutes The console will log out the current user if there is no user input for 5 minutes.
10_minutes The console will log out the current user if there is no user input for 10 minutes.
15_minutes The console will log out the current user if there is no user input for 15 minutes.
Example usage:
To configure baud rate:
Restrictions
Only administrator-level users can issue this command.
DES-3550:4#config serial_port baud_rate 115200 Command: config serial_port baud_rate 115200
Success.
DES-3550:4#
enable clipaging
Purpose
Syntax enable clipaging
Description
Used to pause the scrolling of the console screen when the show command displays more than one page.
This command is used when issuing the show command which causes the console screen to rapidly scroll through several pages. This command will cause the console to pause at the end of each page. The default setting is enabled.
Parameters
Restrictions
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
None.
Only administrator-level users can issue this command.
15
DES-3550:4#enable clipaging
Command: enable clipaging
Success.
DES-3550:4#
disable clipaging
Purpose
Syntax disable clipaging
Description
Parameters
Restrictions
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
Used to disable the pausing of the console screen scrolling at the end of each page when the show command displays more than one screen of information.
This command is used to disable the pausing of the console screen at the end of each page when the show command would display more than one screen of information.
None.
Only administrator-level users can issue this command.
DES-3550:4#disable clipaging
Command: disable clipaging
Success.
DES-3550:4#
enable telnet
Purpose
Syntax enable telnet <tcp_port_number 1-65535>
Description
Parameters
Restrictions
Example usage:
To enable Telnet and configure port number:
Used to enable communication with and management of the switch using the Telnet protocol.
This command is used to enable the Telnet protocol on the switch. The user can specify the TCP or UDP port number the switch will use to listen for Telnet requests.
<tcp_port_number> The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” TCP port for the Telnet protocol is 23.
Only administrator-level users can issue this command.
16
DES-3550:4#enable telnet 23
Command: enable telnet 23
Success.
DES-3550:4#
disable telnet
Example usage:
To disable the Telnet protocol on the switch:
Purpose
Syntax disable telnet
Description
Parameters
Restrictions
Used to disable the Telnet protocol on the switch.
This command is used to disable the Telnet protocol on the switch.
None.
Only administrator-level users can issue this command.
DES-3550:4#disable telnet
Command: disable telnet
Success.
DES-3550:4#
enable web
Purpose
Used to enable the HTTP-based management software on the switch.
Syntax enable web <tcp_port_number 1-65535>
Description
Parameters
Restrictions
Example usage:
To enable HTTP and configure port number:
This command is used to enable the Web-based management software on the switch. The user can specify the TCP port number the switch will use to listen for Telnet requests.
<tcp_port_number> − The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” port for the Web­based management software is 80.
Only administrator-level users can issue this command.
17
DES-3550:4#enable web 80
Command: enable web 80
Success.
DES-3550:4#
disable web
Example usage:
To disable HTTP:
Purpose
Syntax disable web
Description
Parameters
Restrictions
Used to disable the HTTP-based management software on the
switch.
This command disables the Web-based management software on
the switch.
None.
Only administrator-level users can issue this command.
DES-3550:4#disable web
Command: disable web
Success.
DES-3550:4#
Example usage:
To save the switch’s current configuration to non-volatile RAM:
save
Purpose
Syntax save
Description
Parameters
Restrictions
Used to save changes in the switch’s configuration to non-volatile RAM.
This command is used to enter the current switch configuration into non-volatile RAM. The saved switch configuration will be loaded into the switch’s memory each time the switch is restarted.
None
Only administrator-level users can issue this command.
18
DES-3550:4#save
Command: save
Saving all configurations to NV-RAM... Done.
DES-3550:4#
reboot
Purpose
Syntax reboot
Description
Parameters
Restrictions
Example usage:
To restart the switch:
DES-3550:4#reboot
Command: reboot
Are you sure want to proceed with the system reboot? (y|n)
Please wait, the switch is rebooting...
reset
Purpose
Syntax reset {[config|system]}
Used to restart the switch.
This command is used to restart the switch.
None.
None.
Used to reset the switch to the factory default settings.
Description
Parameters
Restrictions
Example usage:
This command is used to restore the switch’s configuration to the default settings assigned from the factory.
config If the keyword ‘config’ is specified, all of the factory default settings are restored on the switch including the IP address, user accounts, and the switch history log. The switch will not save or reboot.
system If the keyword ‘system’ is specified all of the factory default settings are restored on the switch. The switch will save and reboot after the settings are changed to default. Rebooting will clear all entries in the Forwarding Data Base.
If no parameter is specified, the switch’s current IP address, user accounts, and the switch history log are not changed. All other parameters are restored to the factory default settings. The switch will not save or reboot.
Only administrator-level users can issue this command.
19
To restore all of the switch’s parameters to their default values:
DES-3550:4#reset config Command: reset config
Are you sure to proceed with system reset?(y/n)
Success.
DES-3550:4#
login
Example usage:
To initiate the login procedure:
Purpose
Syntax login
Description
Parameters
Restrictions
DES-3550:4#login
Command: login
UserName:
Used to log in a user to the switch’s console.
This command is used to initiate the login procedure. The user will
be prompted for his Username and Password.
None.
None.
logout
Purpose
Used to log out a user from the switch’s console.
Syntax logout
Description
Parameters
Restrictions
Example usage:
To terminate the current user’s console session:
DES-3550:4#logout
This command terminates the current user’s session on the switch’s console.
None.
None.
20
5
SWITCH PORT COMMANDS
The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
config ports [<portlist | all> {speed [auto | 10_half | 10_full |100_half | 100_full |
1000_full} | flow_control [enable | disable] | learning [enable | disable] state [enable | disable]} description <desc 32>
show ports <portlist> {description}
Each command is listed, in detail, in the following sections.
config ports
Purpose
Syntax config ports [<portlist | all>] {speed [auto | 10_half | 10_full |100_half
Description
Parameters
Used to configure the Switch’s Ethernet port settings.
| 100_full | 1000_half | 1000_full} | flow_control [enable | disable] | learning [enable | disable] state [enable | disable] description <desc 32>
This command allows for the configuration of the switch’s Ethernet ports. Only the ports listed in the <portlist> will be affected.
all Configure all ports on the switch.
<portlist> Specifies a port or range of ports to be configured. Tauto Enables auto-negotiation for the specified range of ports.
[10|100|1000] Configures the speed in Mbps for the specified range of ports. Gigabit ports are statically set to 1000 and cannot be set to slower speeds.
[half|full] Configures the specified range of ports as either full- or half­duplex.
[master | slave] This parameter denotes whether the ports selected will be of the master switch or the slave switch and is only used when the port speed is selected to be 1000_full.
flow_control [enabled | disabled] – Enable or disable flow control for the specified ports.
learning [enabled | disabled] Enables or disables the MAC address learning on the specified range of ports.
state [enabled | disabled] Enables or disables the specified range of ports.
description <desc 32> - Enter an alphanumeric string of no more than 32 characters to describe a selected port interface.
Restrictions
Example usage:
Only administrator-level users can issue this command.
21
To configure the speed of port 3 to be 10 Mbps, full duplex, with learning and state enabled:
DES-3550:4#config ports 1-3 speed 10_full learning enabled state enabled
Command: config ports 1-3 speed 10_full learning enabled state enabled
Success.
DES-3550:4#
show ports
Example usage:
To display the configuration of all ports on a switch:
Purpose
Used to display the current configuration of a range of ports.
Syntax show ports <portlist> {description}
Description
This command is used to display the current configuration of a range
of ports.
Parameters
<portlist> Specifies a port or range of ports to be displayed.
{description} – Adding this parameter to the
indicates that the port description will be included in the display.
Restrictions
None.
DES-3550:4#show ports Command show ports:
Port Port Settings Connection Address State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
------ -------- --------------------- --------------------- -------­1 Enabled Auto/Enabled Link Down Enabled 2 Enabled Auto/Enabled Link Down Enabled 3 Enabled Auto/Enabled Link Down Enabled 4 Enabled Auto/Enabled Link Down Enabled 5 Enabled Auto/Enabled Link Down Enabled 6 Enabled Auto/Enabled Link Down Enabled 7 Enabled Auto/Enabled Link Down Enabled 8 Enabled Auto/Enabled Link Down Enabled 9 Enabled Auto/Enabled Link Down Enabled 10 Enabled Auto/Enabled 100M/Full/None Enabled 11 Enabled Auto/Enabled Link Down Enabled 12 Enabled Auto/Enabled Link Down Enabled 13 Enabled Auto/Disabled Link Down Enabled 14 Enabled Auto/Disabled Link Down Enabled 15 Enabled Auto/Disabled Link Down Enabled 16 Enabled Auto/Disabled Link Down Enabled 17 Enabled Auto/Disabled Link Down Enabled 18 Enabled Auto/Disabled Link Down Enabled 19 Enabled Auto/Disabled Link Down Enabled 20 Enabled Auto/Disabled Link Down Enabled CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show ports
command
22
Loading...
+ 180 hidden pages