This product includes software licensed under the BSD License. As such, the following language applies for those
portions of the software licensed under the BSD License:
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Allied Telesis, Inc. nor the names of the respective companies above may be used to endorse or
promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright 1989, 1991, 1992 by Carnegie Mellon University. Derivative Work - 1996, 1998-2000. Copyright 1996, 19982000 by The Regents of the University of California - All rights reserved. Copyright (c) 2001-2003 by Networks
Associates Technology, Inc. - All rights reserved. Copyright (c) 2001-2003 by Cambridge Broadband Ltd. - All rights
reserved. Copyright (c) 2003 by Sun Microsystems, Inc. - All rights reserved. Copyright (c) 2003-2005 by Sparta, Inc. All rights reserved. Copyright (c) 2004 by Cisco, Inc. and Information Network Center of Beijing University of Posts and
Telecommunications. - All rights reserved. Copyright (c) 2003 by Fabasoft R&D Software GmbH & Co KG - All rights
reserved. Copyright (c) 2004-2006 by Internet Systems Consortium, Inc. ("ISC") - All rights reserved. Copyright (c)
1995-2003 by Internet Software Consortium - All rights reserved. Copyright (c) 1992-2003 by David Mills - All rights
reserved. Copyright (c) 1995 by Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland - All rights reserved. Copyright (c) 1998
by CORE SDI S.A., Buenos Aires, Argentina - All rights reserved. Copyright 1995, 1996 by David Mazieres - All rights
reserved. Copyright 1983, 1990, 1992, 1993, 1995 by The Regents of the University of California - All rights reserved.
Copyright (c) 1995 Patrick Powell - All rights reserved. Copyright (c) 1998-2005 The OpenSSL Project - All rights
reserved. Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) - All rights reserved. Copyright (c) 2008, Henry
Kwok - All rights reserved. Copyright (c) 1995, 1998, 1999, 2000, 2001 by Jef Poskanzer <jef@mail.acme.com>. - All
rights reserved.
Some components of the SSH software are provided under a standard 2-term BSD license with the following names as
copyright holders: Markus Friedl, Theo de Raadt, Niels Provos, Dug Song, Aaron Campbell, Damien Miller, Kevin
Steves, Daniel Kouril, Wesley Griffin, Per Allansson, Nils Nordman, and Simon Wilkinson,
Portable OpenSSH includes code from the following copyright holders, also under the 2-term BSD license: Ben
Lindstrom, Tim Rice, Andre Lucas, Chris Adams, Corinna Vinschen, Cray Inc., Denis Parker, Gert Doering, Jakob
Schlyter, Jason Downs, Juha Yrjola, Michael Stone, Network Associates, Solar Designer, Todd C. Miller, Wayne
Schroeder, William Jones, Darren Tucker, Sun Microsystems, The SCO Group.
Some Portable OpenSSH code is licensed under a 3-term BSD style license to the following copyright holders: Todd C.
Miller, Theo de Raadt, Damien Miller, Eric P. Allman, The Regents of the University of California, and Constantin S.
Svintsoff. Some Portable OpenSSH code is licensed under an ISC-style license to the following copyright holders:
Internet Software Consortium, Todd C. Miller, Reyk Floeter, and Chad Mynhier. Some Portable OpenSSH code is
licensed under a MIT-style license to the following copyright holder: Free Software Foundation, Inc.
This product also includes software licensed under the GNU General Public License available from:
http://www.gnu.org/licenses/gpl2.html
Allied Telesis is committed to meeting the requirements of the open source licenses including the GNU General Public
License (GPL) and will make all required source code available.
If you would like a copy of the GPL source code contained in this product, please send us a request by registered mail
including a check for US$15 to cover production and shipping costs, and a CD with the GPL code will be mailed to you.
GPL Code Request
Allied Telesis, Inc.
3041 Orchard Parkway
San Jose, California 95134
No part of this publication may be reproduced without prior written permission from Allied Telesis, Inc.
Allied Telesis, AlliedWare Plus, and the Allied Telesis logo are trademarks of Allied Telesis, Incorporated. Microsoft and
Internet Explorer are registered trademarks of Microsoft Corporation. All other product names, company names, logos or
other designations mentioned herein are trademarks or registered trademarks of their respective owners.
Allied Telesis, Inc. reserves the right to make changes in specifications and other information contained in this document
without prior written notice. The information provided herein is subject to change without notice. In no event shall Allied
Telesis, Inc. be liable for any incidental, special, indirect, or consequential damages whatsoever, including but not limited
to lost profits, arising out of or related to this manual or the information contained herein, even if Allied Telesis, Inc. has
been advised of, known, or should have known, the possibility of such damages.
Local Management..................................................................................................................................... 22
Moving Down the Hierarchy ............................................................................................................................. 26
LINE CONSOLE 0 Command .................................................................................................................... 27
Moving Up the Hierarchy .................................................................................................................................. 28
EXIT and QUIT Commands ....................................................................................................................... 28
END Command .......................................................................................................................................... 28
LINE CONSOLE 0 ............................................................................................................................................ 46
LINE VTY.......................................................................................................................................................... 47
NO EXEC-TIMEOUT ........................................................................................................................................ 48
NO LENGTH..................................................................................................................................................... 49
NO SERVICE SSH ........................................................................................................................................... 50
NO SERVICE PASSWORD-ENCRYPTION..................................................................................................... 51
NO SERVICE TELNET..............................................................................................................
NO SERVICE TERMINAL-LENGTH ................................................................................................................ 53
NO USERNAME............................................................................................................................................... 54
....................... 52
5
Contents
SERVICE MAXMANAGER ............................................................................................................................... 55
SERVICE PASSWORD-ENCRYPTION............................................................................................................56
SERVICE SSH..................................................................................................................................................57
SERVICE TELNET ........................................................................................................................................... 58
SERVICE TERMINAL-LENGTH ....................................................................................................................... 59
SHOW BAUD-RATE .........................................................................................................................................60
SHOW CRYPTO KEY HOSTKEY .................................................................................................................... 62
SHOW SSH SERVER....................................................................................................................................... 63
SHOW TELNET ................................................................................................................................................64
SHOW USERS ................................................................................................................................................. 65
TERMINAL NO LENGTH .................................................................................................................................. 68
END ..................................................................................................................................................................81
BOOT SYSTEM ................................................................................................................................................92
NO BANNER EXEC ..........................................................................................................................................97
NO BANNER LOGIN ........................................................................................................................................ 98
NO BANNER MOTD .................................................................................................................
........................ 99
NO HOSTNAME ............................................................................................................................................. 100
SHOW BOOT.................................................................................................................................................. 103
SHOW CLOCK ............................................................................................................................................... 105
SHOW CPU ....................................................................................................................................................106
SHOW CPU HISTORY ................................................................................................................................... 109
SHOW MEMORY............................................................................................................................................110
SHOW MEMORY HISTORY...........................................................................................................................112
SHOW PROCESS .......................................................................................................................................... 113
SHOW RUNNING-CONFIG ............................................................................................................................116
SHOW SWITCH.............................................................................................................................................. 117
SHOW SYSTEM .............................................................................................................................................119
SHOW SYSTEM ENVIRONMENT.................................................................................................................. 122
SHOW SYSTEM PLUGGABLE ...................................................................................................................... 124
SHOW SYSTEM PLUGGABLE DETAIL.........................................................................................................126
SHOW SYSTEM SERIALNUMBER................................................................................................................ 128
6
DC2552xs Switch Command Line User’s Guide
SHOW TECH-SUPPORT ............................................................................................................................... 129
SHOW VERSION ........................................................................................................................................... 130
DIR ................................................................................................................................................................. 140
SHOW FILE.................................................................................................................................................... 142
SHOW FILE SYSTEMS.................................................................................................................................. 143
NO BOOT CONFIG-FILE ............................................................................................................................... 152
SHOW BOOT ................................................................................................................................................. 153
SHOW STARTUP-CONFIG ........................................................................................................................... 155
LOG HOST TIME ........................................................................................................................................... 165
NO LOG.......................................................................................................................................................... 168
SHOW LOG.................................................................................................................................................... 170
SHOW LOG CONFIG..................................................................................................................................... 172
SHOW LOG PERMANENT ............................................................................................................................ 175
NO SNMP-SERVER....................................................................................................................................... 181
NO SNMP-SERVER COMMUNITY................................................................................................................ 182
NO SNMP-SERVER CONTACT .................................................................................................................... 183
NO SNMP-SERVER ENABLE TRAP ............................................................................................................. 184
NO SNMP-SERVER ENGINEID LOCAL........................................................................................................ 185
NO SNMP-SERVER GROUP......................................................................................................................... 186
NO SNMP-SERVER HOST............................................................................................................................ 187
NO SNMP-SERVER LOCATION ................................................................................................................... 189
NO SNMP-SERVER USER............................................................................................................................ 190
NO SNMP-SERVER VIEW............................................................................................................................. 191
NO SNMP TRAP LINK-STATUS.................................................................................................................... 192
SHOW SNMP-SERVER ................................................................................................................................. 193
SHOW SNMP-SERVER COMMUNITY .......................................................................................................... 195
SHOW SNMP-SERVER GROUP ................................................................................................................... 196
SHOW SNMP-SERVER USER ...................................................................................................................... 198
SHOW SNMP-SERVER VIEW ....................................................................................................................... 199
NO RMON ALARM ......................................................................................................................................... 216
NO RMON COLLECTION STATS .................................................................................................................. 217
NO RMON EVENT..........................................................................................................................................218
SHOW RMON EVENT.................................................................................................................................... 225
SHOW RMON STATISTICS ...........................................................................................................................227
NO NTP PEER................................................................................................................................................ 231
SHOW NTP ASSOCIATIONS......................................................................................................................... 234
SHOW NTP STATUS ..................................................................................................................................... 236
NO DESCRIPTION .........................................................................................................................................251
NO EGRESS-RATE-LIMIT ............................................................................................................................. 252
NO FLOWCONTROL...................................................................................................................................... 253
NO SHUTDOWN ............................................................................................................................................ 254
NO STORM-CONTROL ..................................................................................................................................255
SHOW FLOWCONTROL INTERFACE...........................................................................................................258
SHOW INTERFACE ....................................................................................................................................... 260
SHOW INTERFACE BRIEF ............................................................................................................................ 263
SHOW INTERFACE STATUS ........................................................................................................................ 265
SHOW MIRROR ............................................................................................................................................. 267
SHOW PLATFORM PORT COUNTERS ........................................................................................................ 269
SHOW PLATFORM PORT COUNTERS SUMMARY.....................................................................................274
SHOW STORM-CONTROL ............................................................................................................................ 275
SHOW ETHERCHANNEL .............................................................................................................................. 288
SHOW ETHERCHANNEL DETAIL ................................................................................................................ 290
SHOW ETHERCHANNEL SUMMARY........................................................................................................... 293
SHOW LACP SYS-ID ..................................................................................................................................... 295
SHOW PORT ETHERCHANNEL ................................................................................................................... 296
SHOW STATIC-CHANNEL-GROUP .............................................................................................................. 300
NO SWITCHPORT ACCESS VLAN............................................................................................................... 308
NO SWITCHPORT TRUNK............................................................................................................................ 309
NO SWITCHPORT TRUNK NATIVE VLAN ................................................................................................... 310
NO VLAN........................................................................................................................................................ 311
NO VLAN MACADDRESS (Global Configuration Mode) ............................................................................... 312
NO VLAN MACADDRESS (Port Interface Mode) .......................................................................................... 313
SHOW VLAN .................................................................................................................................................. 314
SHOW VLAN MACADDRESS........................................................................................................................ 316
REGION ......................................................................................................................................................... 342
IP RRP SNOOPING........................................................................................................................................ 398
SHOW IP RRP SNOOPING ........................................................................................................................... 399
IP ADDRESS ..................................................................................................................................................404
IP ADDRESS DHCP ....................................................................................................................................... 406
IP ROUTE .......................................................................................................................................................408
NO IP ADDRESS ............................................................................................................................................409
NO IP ROUTE................................................................................................................................................. 410
SHOW IP INTERFACE ...................................................................................................................................412
SHOW IP ROUTE ...........................................................................................................................................413
NO ARP ..........................................................................................................................................................419
SHOW ARP .................................................................................................................................................... 420
CLEAR IP IGMP ............................................................................................................................................. 426
IP IGMP LIMIT ................................................................................................................................................ 427
IP IGMP QUERIER-TIMEOUT........................................................................................................................428
IP IGMP SNOOPING ...................................................................................................................................... 429
IP IGMP SNOOPING MROUTER INTERFACE..............................................................................................430
IP IGMP STATUS ........................................................................................................................................... 431
NO IP IGMP SNOOPING................................................................................................................................432
NO IP IGMP SNOOPING MROUTER INTERFACE ....................................................................................... 433
SHOW IP IGMP .............................................................................................................................................. 434
SHOW IP IGMP HOSTLIST............................................................................................................................435
10
DC2552xs Switch Command Line User’s Guide
SHOW IP IGMP MROUTER........................................................................................................................... 436
SHOW IP IGMP SNOOPING ......................................................................................................................... 437
Section V: Security and Traffic Control ................................................................................................ 441
NO ACCESS-GROUP .................................................................................................................................... 458
NO ACCESS-LIST HARDWARE.................................................................................................................... 459
NO COPY-TO-MIRROR ................................................................................................................................. 460
NO DENY ....................................................................................................................................................... 463
NO PERMIT.................................................................................................................................................... 466
SHOW ACCESS-LIST.................................................................................................................................... 474
SHOW INTERFACE ACCESS-GROUP ......................................................................................................... 475
SHOW PLATFORM CLASSIFIER STATISTICS UTILIZATION ..................................................................... 476
Chapter 21: Quality of Service (QoS) Commands .................................................................................... 479
MATCH ACCESS-GROUP ............................................................................................................................ 489
MATCH COS .................................................................................................................................................. 491
MATCH DSCP................................................................................................................................................ 492
MATCH ETH-FORMAT PROTOCOL ............................................................................................................. 493
MATCH IP-PRECEDENCE ............................................................................................................................ 496
MATCH MAC-TYPE ....................................................................................................................................... 497
MATCH TCP-FLAGS...................................................................................................................................... 499
MATCH VLAN ................................................................................................................................................ 501
MLS QOS COS .............................................................................................................................................. 502
NO MATCH ACCESS-GROUP ..........................................................................................................
NO MLS QOS ENABLE.................................................................................................................................. 507
SHOW CLASS-MAP....................................................................................................................................... 513
SHOW POLICY-MAP ..................................................................................................................................... 515
SHOW MLS QOS ........................................................................................................................................... 518
SHOW MLS QOS INTERFACE...................................................................................................................... 519
SHOW MLS QOS MAPS COS-QUEUE ......................................................................................................... 521
Chapter 22: DoS Defense Commands ....................................................................................................... 525
DOS IPOPTIONS ........................................................................................................................................... 526
DOS LAND ..................................................................................................................................................... 528
DOS PING-OF-DEATH .................................................................................................................................. 530
DOS SMURF .................................................................................................................................................. 532
DOS SYNFLOOD ........................................................................................................................................... 534
11
Contents
DOS TEARDROP ........................................................................................................................................... 536
NO DOS IPOPTIONS ..................................................................................................................................... 538
NO DOS LAND ............................................................................................................................................... 539
NO DOS PING-OF-DEATH ............................................................................................................................ 540
NO DOS SMURF ............................................................................................................................................541
NO DOS SYNFLOOD ..................................................................................................................................... 542
NO DOS TEARDROP .....................................................................................................................................543
SHOW DOS INTERFACE...............................................................................................................................544
Command Index ........................................................................................................................................... 547
Table 8. SHOW BOOT Command ....................................................................................................................................103
Table 9. SHOW CLOCK Command ..................................................................................................................................105
Table 10. SHOW CPU Command .................................................................................................................................... 107
Table 11. SHOW MEMORY Command ............................................................................................................................111
Table 12. SHOW PROCESS Command ..........................................................................................................................114
Table 13. SHOW SWITCH Command ..............................................................................................................................117
Table 14. SHOW SYSTEM Command .............................................................................................................................120
Table 15. SHOW SYSTEM ENVIRONMENT Command .................................................................................................. 123
Table 16. SHOW SYSTEM PLUGGABLE Command ......................................................................................................124
Table 17. SHOW SYSTEM PLUGGABLE DETAIL Command .........................................................................................127
Table 18. SHOW VERSION Command ............................................................................................................................130
Table 20. SHOW FILE SYSTEMS Command ..................................................................................................................143
Table 66. SHOW IP RRP SNOOPING Command ............................................................................................................399
Table 67. Management IP Address Commands ...............................................................................................................403
Table 68. SHOW IP INTERFACE Command ...................................................................................................................412
Table 69. SHOW IP ROUTE Command ...........................................................................................................................413
Table 71. SHOW ARP Command .....................................................................................................................................420
Table 72. Internet Group Management Protocol Snooping Commands ...........................................................................425
Table 73. SHOW IP IGMP SNOOPING Command ..........................................................................................................438
Table 74. Access Control List Commands ........................................................................................
Table 75. SHOW PLATFORM CLASSIFIER STATISTICS UTILIZATION Command Description ...................................476
Table 76. Quality of Service Commands ..........................................................................................................................479
Table 77. MATCH ETH-FORMAT PROTOCOL Command FORMAT KEYWORDS ........................................................493
Table 78. MATCH ETH-FORMAT PROTOCOL Command TYPE KEYWORDS .............................................................494
Table 79. CoS Queue MAP: Default Setting .....................................................................................................................504
Table 80. SHOW CLASS-MAP Command .......................................................................................................................513
Table 81. SHOW POLICY-MAP Command Description ..................................................................................................516
Table 82. SHOW MLS QOS INTERFACE Command ......................................................................................................520
Table 83. DoS Commands ................................................................................................................................................525
Table 84. SHOW DOS INTERFACE Command ...............................................................................................................544
................................443
14
Preface
Caution
AT-DC2552XS switch is a Layer 2 device that provides 10 and 40 Gigabit
Ethernet connectivity for virtualized data center and cloud environments.
This preface contains the following sections:
“Document Conventions” on page 16
“Where to Find Web-based Guides” on page 17
“Contacting Allied Telesis” on page 18
The software described in this document may contain certain
encryption/security or cryptographic functionality and for exporting
those products/software, USA export restrictions apply as per 15
C.F.R. Part 730-772 (particularly Part 740.17). At present, as per
United States of America’s export regulations our products/software
cannot be exported to Cuba, Iran, North Korea, North Sudan, or
Syria. If you wish to transfer this software outside the United States
or Canada, please refer to export regulations of USA.
15
Document Conventions
Note
Caution
Warning
This document uses the following conventions:
Notes provide additional information.
Cautions inform you that performing or omitting a specific action
may result in equipment damage or loss of data.
Warnings inform you that performing or omitting a specific action
may result in bodily injury.
16
Where to Find Web-based Guides
The installation and user guides for all of the Allied Telesis products are
available for viewing in portable document format (PDF) from our web site
at www.alliedtelesis.com/support/documentation.
AT-DC2552SX Switch Command Line Interface User’s Guide
17
Contacting Allied Telesis
If you need assistance with this product, you may contact Allied Telesis
technical support by going to the Support & Services section of the Allied
Telesis web site at www.alliedtelesis.com/support. You can find links
for the following services on this page:
24/7 Online Support— Enter our interactive support center to
search for answers to your product questions in our knowledge
database, to check support tickets, to learn about RMAs, and to
contact Allied Telesis experts.
USA and EMEA phone support— Select the phone number that
best fits your location and customer type.
Hardware warranty information— Learn about Allied Telesis
warranties and register your product online.
Replacement Services— Submit a Return Materials Authorization
(RMA) request via our interactive support center.
Documentation— View the most recent installation and user
guides, software release notes, white papers, and data sheets for
your products.
Software Downloads— Download the latest software releases for
your managed products.
For sales or corporate information, go to www.alliedtelesis.com/purchase and select your region.
18
Section I
Switch Management
This section contains the following chapters:
Chapter 1, “AlliedWare Plus™ Command Line Interface” on page 21
Chapter 2, “Management Session Commands” on page 33
Chapter 3, “Basic Command Line Management Commands” on page
73
Chapter 4, “Basic Switch Operations Commands” on page 87
Chapter 5, “File Management Commands” on page 133
Chapter 6, “Boot Configuration File Commands” on page 145
Chapter 7, “Event Log Commands” on page 157
Chapter 8, “SNMP Commands” on page 179
Chapter 9, “RMON Commands” on page 215
Chapter 10, “NTP Client Commands” on page 229
19
20Section I: Switch Management
Chapter 1
AlliedWare Plus™ Command Line
Interface
This chapter has the following sections:
“Management Sessions” on page 22
“Manager Account” on page 24
“AlliedWare Plus™ Command Modes” on page 25
“Moving Down the Hierarchy” on page 26
“Moving Up the Hierarchy” on page 28
“Port ID Numbers in Commands” on page 30
“Command Format” on page 31
21
Chapter 1: AlliedWare Plus™ Command Line Interface
Note
Note
Management Sessions
You can manage the switch locally or remotely. Local management is
conducted through the Console port on the switch. Remote management
is possible with management tools from PCs on your network.
Local
Management
Remote
Management
To access AlliedWare Plus™ command line interface (CLI) locally, the
switch has a Console port. This port is located on the rear panel of the
DC2552XS switch.
The requirements for local management sessions are a terminal or a PC
with a terminal emulator program, and the management cable that comes
with the switch.
The initial management session of the switch must be from a local
management session.
You can remotely manage the switch with these software tools:
Telnet client
Secure Shell (SSH) client
To support remote management, you must assign a management IP
address to the switch. See “IP ADDRESS” on page 404.
Remote Telnet Management
The switch has a Telnet server that you can use to access AlliedWare
Plus™ command line interface (CLI) remotely from Telnet clients on your
management workstations. Remote Telnet sessions give you access to
the same commands and the same management functions as local
management sessions.
Telnet remote management sessions are conducted in clear text,
leaving them vulnerable to snooping. When an intruder captures the
packet with your login name and password, the security of the
switch is compromised. For secure remote management, Allied
Telesis recommends Secure Shell (SSH).
22Section I: Switch Management
AT-DC2552SX Switch Command Line Interface User’s Guide
Remote Secure Shell Management
The switch has an SSH server that you can use to access AlliedWare
Plus™ command line interface (CLI) remotely with an SSH client on a
management workstation or PCs. This SSH management method is
similar to Telnet management sessions. However, SSH management
sessions are secure against snooping because the packets are encrypted,
rendering them unintelligible to intruders who might capture them.
Section I: Switch Management23
Chapter 1: AlliedWare Plus™ Command Line Interface
Manager Account
You must log on to manage the switch. This requires a valid user name
and password. The switch comes with one manager account. The user
name of the account is “manager” and the default password is “friend.”
The user name and password are case-sensitive. This account gives you
access to all management modes and commands.
24Section I: Switch Management
AlliedWare Plus™ Command Modes
The AlliedWare Plus™ command line interface consists of a series of
modes that are arranged in the hierarchy shown in Figure 1.
AT-DC2552SX Switch Command Line Interface User’s Guide
Figure 1. Command Modes
The modes have different commands and support different management
functions. To perform a management function, you first have to move to
the mode that has the appropriate commands. For instance, to add new
VLANs, you must move to the VLAN Configuration mode because the
VLAN command is effective only in that mode.
Section I: Switch Management25
Chapter 1: AlliedWare Plus™ Command Line Interface
To move down the mode hierarchy, you must step through each mode in
sequence.
Each mode has a different command. For instance, to move from the User
Exec mode to the Privileged Exec mode, you use the ENABLE command.
Here are some examples.
ENABLE
Command
CONFIGURE
TERMINAL
Command
You use this command to move from the User Exec mode to the
Privileged Exec mode. The format of the command is:
enable
Figure 2. ENABLE Command
You use this command to move from the Privileged Exec mode to the
Global Configuration mode. The format of the command is:
configure terminal
Figure 3. CONFIGURE TERMINAL Command
CLASS-MAP
Command
26Section I: Switch Management
You use this command to move from the Global Configuration mode to the
Class-Map mode in which you create classifiers and flow groups for
Quality of Service policies. The format of the command is:
class-map
class_name
Figure 4. CLASS-MAP Command
AT-DC2552SX Switch Command Line Interface User’s Guide
awplus(config)# line console 0
awplus(config-line)#
LINE CONSOLE
0 Command
You use this command to move from the Global Configuration mode to the
Console Line mode to set the management session timer and to activate
or deactivate remote authentication for local management sessions. The
mode is also used to set the baud rate of the terminal port. The format of
the command is:
line console 0
Figure 5. LINE CONSOLE Command
Section I: Switch Management27
Chapter 1: AlliedWare Plus™ Command Line Interface
Moving Up the Hierarchy
Four commands are available for moving up the mode hierarchy. They are
the EXIT, QUIT, END and DISABLE commands.
EXIT and QUIT
Commands
These commands, which are functionally identical, are found in nearly all
of the modes. They move you up one level in the hierarchy, as illustrated
in Figure 6.
Figure 6. Moving Up One Mode with the EXIT and QUIT Command
END CommandYou may want to return to the User Exec mode or the Privileged Exec
mode after you have configured a feature. While you can step back
through the modes one at a time with the EXIT or QUIT command, the
END command moves you directly to the Privileged Exec mode from any
mode below the Global Configuration mode.
28Section I: Switch Management
AT-DC2552SX Switch Command Line Interface User’s Guide
DISABLE
Command
Figure 7. Returning to the Privileged Exec Mode with the END Command
To return to the User Exec mode from the Privileged Exec mode, use the
DISABLE command.
Figure 8. Returning to the User Exec Mode with the DISABLE Command
Section I: Switch Management29
Chapter 1: AlliedWare Plus™ Command Line Interface
Port ID Numbers in Commands
Here is the format for port ID numbers in commands:
port1.0.
n
The n variable is the number of the port you want to configure on the
switch. The two digits in the prefix “port1.0.” are used with modular
products and with products that support stacking. To specify a port
number on the DC2552XS switch, which is not a modular product and
does not support stacking, you must always use the prefix “port1.0.”
This example uses the INTERFACE PORT command to enter the Port
Interface mode for ports 1.0.12 and 1.0.18: