3Com Corporation reserves the right to revise this documentation and to make changes in content from time to time
without obligation on the part of 3Com Corporation to provide notification of such revision or change.
3Com Corporation provides this documentation without warranty, term, or condition of any kind, either implied or
expressed, including, but not limited to, the implied warranties, terms or conditions of merchantability, satisfactory quality,
and fitness for a particular purpose. 3Com may make improvements or changes in the product(s) and/or the program(s)
described in this documentation at any time.
If there is any software on removable media described in this documentation, it is furnished under a license agreement
included with the product as a separate document, in the hard copy documentation, or on the removable media in a
directory file named LICENSE.TXT or !LICENSE.TXT. If you are unable to locate a copy, please contact 3Com and a copy will
be provided to you.
UNITED STATES GOVERNMENT LEGEND
If you are a United States government agency, then this documentation and the software described herein are provided to
you subject to the following:
All technical data and computer software are commercial in nature and developed solely at private expense. Software is
delivered as “Commercial Computer Software” as defined in DFARS 252.227-7014 (June 1995) or as a “commercial item”
as defined in FAR
license for the Software. Technical data is provided with limited rights only as provided in DFAR 252.227-7015 (Nov
FAR 52.227-14 (June 1987), whichever is applicable. You agree not to remove or deface any portion of any legend provided
on any licensed program or documentation contained in, or delivered to you in conjunction with, this User Guide.
Unless otherwise indicated, 3Com registered trademarks are registered in the United States and may or may not be registered
in other countries.
3Com and the 3Com logo are registered trademarks of 3Com Corporation.
Cisco is a registered trademark of Cisco Systems, Inc.
Funk RADIUS is a registered trademark of Funk Software, Inc.
Aegis is a registered trademark of Aegis Group PLC.
Intel and Pentium are registered trademarks of Intel Corporation. Microsoft, MS-DOS, Windows, and Windows NT are
registered trademarks of Microsoft
registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd.
IEEE and 802 are registered trademarks of the Institute of Electrical and Electronics Engineers, Inc.
All other company and product names may be trademarks of the respective companies with which they are associated.
2.101(a) and as such is provided with only such rights as are provided in 3Com’s standard commercial
Corporation. Novell and NetWare are registered trademarks of Novell, Inc. UNIX is a
1995) or
ENVIRONMENTAL STATEMENT
It is the policy of 3Com Corporation to be environmentally-friendly in all operations. To uphold our policy, we are committed
to:
Establishing environmental performance standards that comply with national legislation and regulations.
Conserving energy, materials and natural resources in all operations.
Reducing the waste generated by all operations. Ensuring that all waste conforms to recognized environmental standards.
Maximizing the recyclable and reusable content of all products.
Ensuring that all products can be recycled, reused and disposed of safely.
Ensuring that all products are labelled according to recognized environmental standards.
Improving our environmental record on a continual basis.
End of Life Statement
3Com processes allow for the recovery, reclamation and safe disposal of all end-of-life electronic components.
Regulated Materials Statement
3Com products do not contain any hazardous or ozone-depleting material.
Environmental Statement about the Documentation
The documentation for this product is printed on paper that comes from sustainable, managed forests; it is fully
biodegradable and recyclable, and is completely chlorine-free. The varnish is environmentally-friendly, and the inks are
vegetable-based with a low heavy-metal content.
Page 3
CONTENTS
ABOUT THIS GUIDE
About This Software Version 13
How This Guide is Organized 13
Intended Readership 14
Conventions 14
Related Documentation 15
1USING SYSTEM ACCESS COMMANDS
Logging in Commands 18
2USING PORT COMMANDS
Ethernet Port Configuration Commands 43
Ethernet Port Link Aggregation Commands 64
This guide provides all the information you need to use the configuration
®
commands supported by version 3.0.x software on the 3Com
Switch 4500.
The software in the Switch 4500 is a subset of that used in some other 3Com
products. Depending on the capabilities of your hardware platform, some
commands described in this guide may not be available on your Switch, although
the unavailable commands may still display on the command line interface (CLI). If
you try to use an unavailable command, an error message displays.
CAUTION: Any command that displays on the CLI, but is not described in this
guide, is not supported in version 3.0.x software. 3Com only supports the
commands described in this guide. Other commands may result in the loss of data,
and are entered at the user’s risk.
The Switch 4500 Command Reference Guide consists of the following chapters:
■ Using System Access Commands — Introduces the commands used for
accessing the Switch 4500.
■ Using Port Commands — Introduces the commands used for configuring
Ethernet port and link aggregation.
■ Using VLAN Commands — Introduces the commands used for configuring
VLANs.
■ Using Power over Ethernet (PoE) Commands — Introduces the commands
used for configuring PoE.
■ Using Network Protocol Commands — Introduces the commands used for
configuring network protocols.
■ Using Routing Protocol Commands — Introduces the commands used for
configuring routing protocols.
■ Using Multicast Protocol Commands — Introduces the commands used for
configuring multicast protocols.
■ Using QoS and ACL Commands — Introduces the commands used for
configuring QoS/ACL.
■ Using STP Commands — Introduces the commands used for configuring STP.
■ Using AAA and RADIUS Commands — Introduces the commands used for
configuring 802.1x, AAA and RADIUS.
■ Using Reliability Commands — Introduces the commands used for
configuring VRRP.
Page 20
14ABOUT THIS GUIDE
■ Using System Management Commands — Introduces the commands used
for system management and maintenance.
Intended ReadershipThe guide is intended for the following readers:
■ Network administrators
■ Network engineers
■ Users who are familiar with the basics of networking
Conventions This guide uses the following conventions:
Ta bl e 1 Icons
IconNotice TypeDescription
Information note Information that describes important features or instructions.
CautionInformation that alerts you to potential loss of data or
potential damage to an application, system, or device.
Warning Information that alerts you to potential personal injury.
Ta bl e 2 Text conventions
ConventionDescription
Screen displays This typeface represents text as it appears on the screen.
Keyboard key names If you must press two or more keys simultaneously, the key names are
linked with a plus sign (+), for example:
Press Ctrl+Alt+Del
The words “enter”
and “type”
When you see the word “enter” in this guide, you must type
something, and then press Return or Enter. Do not press Return or
Enter when an instruction simply says “type.”
Fixed command
text
This typeface indicates the fixed part of a command text. You must type
the command, or this part of the command, exactly as shown, and
press Return or Enter when you are ready to enter the command.
Example: The command display history-command must be
entered exactly as shown.
Variable
command text
This typeface indicates the variable part of a command text. You must
type a value here, and press Return or Enter when you are ready to
enter the command.
Example: in the command super level , a value in the range 0 to 3
must be entered in the position indicated by level
{ x | y | ... }Alternative items, one of which must be entered, are grouped in braces
and separated by vertical bars. You must select and enter one of the
items.
Example: in the command flow-control {hardware | none | software}, the braces and the vertical bars combined indicate that
you must enter one of the parameters. Enter either hardware, or
none, or software.
Page 21
Table 2 Text conventions
Related Documentation15
Related
Documentation
[ ]
Items shown in square brackets [ ] are optional.
Example 1: in the command display users [all], the square
brackets indicate that the parameter
command with or without this parameter.
Example 2: in the command user-interface [type] first-number [last-number] the square brackets indicate that the
parameters [type] and [last-number] are both optional. You can
enter a value in place of one, both or neither of these parameters.
Alternative items, one of which can optionally be entered, are grouped
in square brackets and separated by vertical bars.
Example 3: in the command header [shell | incoming |
login] text, the square brackets indicate that the parameters
shell, incoming and login
indicate that only one of the parameters is allowed.
all is optional. You can enter the
are all optional. The vertical bars
The 3Com Switch 4500 Getting Started Guide provides information about
installation.
The 3Com Switch 4500 Configuration Guide provides information about
configuring your network using the commands described in this guide.
Page 22
16ABOUT THIS GUIDE
Page 23
1
USING SYSTEM ACCESS COMMANDS
This chapter describes how to use the following commands:
Logging in Commands
■ authentication-mode
■ auto-execute command
■ command-privilege level
■ databits
■ display history-command
■ display user-interface
■ display users
■ flow-control
■ free user-interface
■ header
■ history-command max-size
■ idle-timeout
■ language-mode
■ lock
■ parity
■ protocol inbound
■ quit
■ return
■ screen-length
■ send
■ service-type
■ View
■ set authentication password
■ shell
■ speed
■ stopbits
■ super
■ super password
■ sysname
Page 24
18CHAPTER 1: USING SYSTEM ACCESS COMMANDS
■ system-view
■ telnet
■ user-interface
■ user privilege level
Logging in CommandsThis section describes the commands that you can use to configure system access
and system security.
authentication-modeSyntax
authentication-mode { password | scheme | none }
View
User interface view
Parameter
password: Requires local authentication of password at log in.
scheme: Requires local or remote authentication of username and password at
log in.
none: Allows users to log in without username or password.
Description
This command configures the authentication method for a user at log in.
Use the command authentication-mode password to prompt a user for local
password authentication at login. To set the password, use
password
.
set authentication
Use the command authentication-mode scheme to prompt a user to provide
local or remote user name and password authentication at login. The type of the
authentication depends on your network configuration. For further information,
see “AAA and RADIUS”.
Use the command authentication-mode none to allow a user to log in without
username or password authentication.
By default, users logging in using the console port do not need to pass any
terminal authentication. Users logging in via modem or Telnet are required to
provide password authentication when they log in.
Example
To configure local password authentication, enter the following command:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]authentication-mode password
Page 25
auto-execute commandSyntax
auto-execute command text
undo auto-execute command
View
User Interface View
Parameter
text: Specifies the command to be run automatically.
Description
Enter auto-execute command text to configure the Switch to automatically run a
specified command. When the user logs in, the command will be executed
automatically. This command is usually used to configure the
the terminal, which will connect the user to a designated device automatically.
Enter undo auto-execute command to cancel the auto-execute command so the
command is not run automatically.
Logging in Commands19
telnet command on
By default, auto-execute is disabled.
CAUTION: If you execute this command, the user-interface can no longer be used
to perform routine configurations on the local system. Ensure that you can log in
to the system in some other way to cancel the configuration, before you configure
auto-execute command and save the configuration.
the
Example
To configure the Switch to automatically Telnet to device 10.110.100.1 after the
user logs in via VTY 0, enter the following command:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface vty 0
[4500-ui-vty0]auto-execute command telnet 10.110.100.1
command-privilege levelSyntax
command-privilege level level view view command
undo command-privilege view view command
View
System View
Parameter
level: Enter the command level you want to assign to this command, ranging
from 0 to 3.
view: Enter the name of the view that contains the command. This can be any of
the views supported by the Switch.
command: Enter the command to be configured.
Page 26
20CHAPTER 1: USING SYSTEM ACCESS COMMANDS
Description
Use the command-privilege level command to configure the priority level
assigned to any command within a selected view.
The command levels are, from lowest to highest:
■ 0 – Visit
■ 1 – Monitoring
■ 2 – System
■ 3 – Management
When the user logs into the Switch, the commands used depends on the user level
settings and the command level settings on the user interface. The two types of
settings may differ as follows:
■ If AAA/RADIUS authentication is used, the commands the user can access are
determined by the user level settings. For example, if a user is set to level 3 and
the command level on the VTY 0 user interface is level 1, the user can only user
the commands of level 3 or lower when logging into the Switch from the VTY
interface.
■ If RSA public key authentication is used, the commands the user can access are
determined by the command level settings on the user interface.
By default:
■ ping, tracert, and telnet are at level 0
■ display and debugging are at level 1
■ all configuration commands are at system level 2
■ FTP, XMODEM, TFTP and commands for file system operations are at level 3
Use the undo command-privilege view command to restore the default priority
to a command.
Example
To configure the precedence of the command ‘interface’ as 0, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]command-privilege level 0 view system interface
databitsSyntax
databits { 7 | 8 }
undo databits
View
User interface view
Parameter
7 – Sets the data bits to 7.
Page 27
Logging in Commands21
8 – Sets the data bits to 8.
Description
Use the databits command to configure the data bits for the AUX (Console) port
to either
7 or 8. By default, the value is 8. Use the undo databits command to
restore the default value (8).
This command can only be performed in the AUX user interface view.
Example
To configure the data bits of the AUX (Console) port to 7 bits, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]databits 7
display
history-command
Syntax
display history-command
View
All views
Parameter
None
Description
Use the display history-command command to view the commands previously
entered during this login session, up to a specified maximum.
To set the maximum number of commands to display, see history-command
max-size
.
Example
To display previously entered commands, enter the following.
<4500>display history-command
The commands display on screen.
display user-interfaceSyntax
display user-interface [ type number | number ] [summary]
View
All views
Parameter
type number: Enter the type and number of the user interface you want to
display details on, for example VTY 3.
number: Enter the index number of the user interface you want to display details
on.
Page 28
22CHAPTER 1: USING SYSTEM ACCESS COMMANDS
summary: Display the summary of a user interface.
Description
Use the display user-interface command to view information on a user
interface. You can choose to access this information by user interface type and
type number, or by user interface index number. The information displayed is the
same whichever access method you use.
This command without the summary parameter displays user interface type,
absolute/relative index, transmission speed, priority, authentication methods, and
physical location. This command with the
interface in use with user interface name and other user interface information.
Example
To display information on a user interface with an index number of 0, enter the
following.
<4500>display user-interface aux 0
The information is displayed in the following format:
Idx Type Tx/Rx Modem Privi Auth Int
0 AUX 0 19200 - 3 P -
summary parameter displays one user
+ : Current user-interface is active.
F : Current user-interface is active and work in async mode.
Idx : Absolute index of user-interface.
Type : Type and relative index of user-interface.
Privi: The privilege of user-interface.
Auth : The authentication mode of user-interface.
Int : The physical location of UIs.
A : Authentication use AAA.
N : Current UI need not authentication.
P : Authentication use current UI's password.
Ta bl e 3 Output description of the display user-interface command
FieldDescription
+Indicates that the user interface is in use
FCurrent user interface is in use and working in asynchronous
mode
IdxDisplays the index number of the user interface
TypeDisplays the type and type number of the user interface
Tx/RxDisplays the user interface speed
ModemDisplays the modem operation mode
PriviIndicates the command level that can be accessed from this
user interface
AuthIndicates the user interface authentication method
IntIndicates the physical location of the user interface
Display the summary information of user interface 0.
<4500>display user-interface 0 summary
0: U
Page 29
1 character mode users. (U)
1 total UIs in use.
UI's name: aux0
Ta bl e 4 Output Description of the display user-interface summary Command
FieldDescription
0: UUser interface type
1 character mode usersOne type of user interface
1 total UIs in useThe total number of user interfaces in use
UI’s nameUser interface name
display usersSyntax
display users [ all ]
View
All views
Parameter
all: Enter to display information on all user interfaces.
Logging in Commands23
Description
Use the display users command to view information on the current user
interface. Use the
display users all command to view the information on all
user interfaces.
Example
To display information on the current user interface, enter the following
[4500]display users
The information displays in the following format:
UIDelayTypeIPaddress UsernameUserlevel
F 0 AUX 000:00:003
The categories of information displayed are as follows:
Ta bl e 5 Output description of the display users command
FieldDescription
FIndicates that the user interface is in use and is working in asynchronous mode
UINumber of the first list is the absolute number of user interface.
Number of the second list is the relative number of user interface
DelayIndicates the interval from the latest input until now, in seconds.
TypeIndicates the user interface type.
IPaddressDisplays initial connection location, namely the host IP address of the incoming
UsernameDisplay the login name of the user who is using this interface
UserlevelDisplay the level of the user using this user interface
connection.
Page 30
24CHAPTER 1: USING SYSTEM ACCESS COMMANDS
flow-controlSyntax
flow-control { hardware | none | software }
undo flow-control
View
User interface view
Parameter
hardware: Enter to set hardware flow control.
none: Enter to set no flow control.
software: Enter to set software flow control.
Description
Use the flow-control command to configure the flow control mode on the AUX
(Console) port to hardware, software or none. Use the
command to restore the default flow control mode (no flow control).
undo flow-control
This command can only be performed in the AUX user interface view.
Example
To configure software flow control on the AUX (Console) port, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]flow-control software
free user-interfaceSyntax
free user-interface { type | number }
View
User view
Parameter
type: Enter the type and type number of the user interface to be reset.
number: Enter the index number of the user interface to be reset.
Description
Use this command to reset a specified user interface to its default settings. The
user interface will be disconnected after the reset.
Use free user-interface type to reset the interface with the specified type
and type number to its default settings. Use
free user-interface numberto
reset the interface with the specified index number to its default settings.
You cannot use this command on the current user interface.
Page 31
Example
To reset user interface AUX 1 from another user interface on the Switch, enter the
following:
<4500>free user-interface aux 1
After the command is executed, user interface AUX 1 is disconnected. When you
next log in using user interface AUX 1, it opens using the default settings.
headerSyntax
header { shell | incoming | login } text
undo header { shell | incoming | login }
View
System view
Parameter
login: Login information in case of authentication. It is displayed before the user
is prompted to enter user name and password.
Logging in Commands25
shell: User conversation established header, the information output after user
conversation has been established. If authentication is required, it is prompted
after the user passes authentication.
incoming: Login header, the information output after a Modem user logs in. If
authentication is required, it is prompted after the user passes authentication. In
this case, no shell information is output.
text: Specifies the title text. If you do not choose any keyword in the command,
the system displays the login information by default. The system supports two
types of input mode: you can input all the text in one line (a maximum of 256
characters, including command key word, can be entered); or you can input all the
text in several lines using the <Enter> key, and more than 256 characters can be
entered. The text starts and ends with the first character. After entering the last
character, press the <Enter> key to exit the interactive process.
Description
Use the header command to configure the system to display a header during user
log in. Use the
undo header { shell | incoming | login }command to
delete the specified header.
When the user logs in, and a connection is activated, the login header displays.
After the user successfully logs in, the
shell header displays.
The first characters in the text are regarded as the start and stop characters. After
you type in the stop character, the system will exit the header command
automatically.
If you do not want to use the control characters, you can type in text with the
same characters at the beginning and end, and press Enter.
Page 32
26CHAPTER 1: USING SYSTEM ACCESS COMMANDS
If you press <Enter> after typing any of the three keywords shell, login and
incoming in the command, then what you type after the word header is the
contents of the login information, instead of identifying header type.
You can judge whether the initial character can be used as the header contents
this way:
1 If there is only one character in the first line and it is used as the identifier, this
initial character pairs with the ending character and is not the header contents.
2 If there are many characters in the first line but the initial and ending characters
are different, this initial character pairs with the ending character and is the
header contents.
3 There are many characters in the first line and the initial character is identical with
the ending character, this initial character is not the header contents.
Example
Configure the header of setting up a session.
Mode 1: Input in one line
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]header shell %SHELL: Hello! Welcome%
The starting and ending characters must be the same, and press the <Enter> key
to finish a line.
■ When you log on the Switch again, the terminal displays the configured session
establishment title.
[4500]quit
<4500>quit
Please press ENTER
SHELL: Hello! Welcome
The initial character "%" is not the header contents.
<4500>
Mode 2: Input in several lines
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]header shell % SHELL:
After you pressing the <Enter> key, the system prompts the following message:
Input banner text, and quit with the character '%'.
Go on inputting the rest text and end your input with the first letter:
Hello! Welcome %
Press the <Enter> key.
[4500]
Page 33
Logging in Commands27
When you log on the Switch again, the terminal displays the configured session
establishment title.
[4500]quit
<4500>quit
Please press ENTER
%SHELL:
The initial character "%" is the header contents.
Hello! Welcome
<4500>
history-command
max-size
Syntax
history-command max-size value
undo history-command max-size
View
User interface view
Parameter
value: Enter the number of previously entered commands that you want the
Switch to save.
Description
Use the command history-command max-size to specify the amount of
previously entered commands that you want the Switch to save. Enter any value
between 0 and 256. The default is 10, that is, the 10 most recently entered
commands are saved. Use the
undo history-command max-size command to
restore the default value.
To display the most recently-entered commands, up to the specified maximum,
use the command
display history-command.
Example
To set the history buffer to 20, that is to save the 20 most recently-entered
commands, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]history-command max-size 20
idle-timeoutSyntax
idle-timeout minutes [ seconds ]
undo idle-timeout
View
User interface view
Page 34
28CHAPTER 1: USING SYSTEM ACCESS COMMANDS
Parameter
minutes: Enter the number of minutes you want to allow a user interface to
remain idle before it is disconnected. This can be in the range 0 to 35791.
seconds: Enter the number of seconds in addition to the number of minutes.
Optional.
Description
Use the idle-timeout command to configure the amount of time you want to
allow a user interface to remain idle before it is disconnected. Use the
idle-timeout
idle-timeout is set to 10 minutes.
To disable idle timeout, set the idle-timeout value to 0.
Example
To configure the timeout value to 1 minute on the AUX user interface, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]idle-timeout 1
undo
command to restore the default idle-timeout. By default,
language-modeSyntax
language-mode { chinese | english }
View
User View
Parameter
chinese: Sets the language of the command line interface to Chinese.
english: Sets the language of the command line interface to English.
Description
Use the language-mode command to choose the language of the command line
interface. By default, the command line interface is set to English.
Example
To change the command line interface from English to Chinese, enter the
following:
<4500-ui-aux0>language-mode chinese
lockSyntax
lock
View
User View
Page 35
Parameter
None
Description
Use the lock command to lock the current user interface and prevent
unauthorized users from accessing it. An authorized user must enter a valid
password to access the interface.
Example
To lock the current user interface, enter the following:
<4500>lock
Password: xxxx
Again: xxxx
paritySyntax
parity { even | mark | none | odd | space }
undo parity
Logging in Commands29
View
User Interface View
Parameter
even: Sets the Switch to even parity.
mark: Sets the Switch to mark parity (1)
none: Sets the Switch to perform no parity checking.
odd: Sets the Switch to odd parity.
space: Sets the Switch to zero parity (0)
Description
Use the parity command to configure the parity mode on the AUX (Console)
port. Use the
undo parity command to restore the default parity mode (no parity
checking).
This command can only be performed in the AUX user interface view.
Example
To set mark parity on the AUX (Console) port, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]parity mark
protocol inboundSyntax
protocol inbound { all| ssh | telnet }
Page 36
30CHAPTER 1: USING SYSTEM ACCESS COMMANDS
View
VTY user interface view
Parameter
all: Supports both Telnet and SSH protocols.
ssh: Supports only SSH protocol.
telnet: Supports only Telnet protocol.
Description
Use the protocol inbound command to configure the protocols supported by a
designated user interface.
By default, the user interface supports Telnet and SSH protocol.
For the related commands, see user-interface vty.
Example
Configure SSH protocol supported by VTY0 user interface.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface vty 0
[4500-ui-vty0]protocol inbound ssh
quitSyntax
quit
View
All views
Parameter
None
Description
Use the quit command to exit from the current view to the next highest view. If
the current view is user view, this command quits the system.
There are three levels of view, which are, from high to low:
■ user view
■ system view
■ menu views, for example VLAN view, Ethernet port view, and so on.
Related commands: return, system-view.
Example
To return to user view from system view, enter the following:
[4500]quit
<4500>
Page 37
returnSyntax
return
View
System view or higher
Parameter
None
Description
Use the return command to return to user view from any other view.
Ctrl+Z performs the same function as the return command.
To return to the next highest level of view, use quit.
Example
To return to user view from any other view (the example below shows the
command entered from the system view), enter the following.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]return
<4500>
Logging in Commands31
screen-lengthSyntax
screen-length screen-length
undo screen-length
View
User interface view
Parameter
screen-length: Enter the maximum number of information lines that you want
to display on a terminal screen, ranging from 0 to 512. The default is 24.
Description
Use the command screen-length to configure how many information lines
(maximum) will be displayed on the screen of a terminal. Use the command
screen-length to restore the default of 24 lines.
To disable this function, that is to allow an unlimited number of information lines,
enter the parameter as
Example
To configure a terminal to display 20 lines of information, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]screen-length 20
undo
0.
Page 38
32CHAPTER 1: USING SYSTEM ACCESS COMMANDS
sendSyntax
send { all | number | type }
View
User view
Parameter
all: Sends a message to all user interfaces.
type: Enter the type and type number of the user interface that you want to send
a message to.
number: Enter the absolute/relative number of the interface that you want to
send a message to.
Description
Use the send command to send messages to other user interfaces.
Example
To send a message to all the user interfaces, enter the following:
level level: Specifies the level of Telnet, SSH or terminal users. The argument
level is an integer in the range of 0 to 3 and defaults to 0.
ftp: Specifies user type as ftp.
ftp-directory directory: Specifies the directory of ftp users, directory is a
character string of up to 64 characters.
lan-access: Specifies user type to lan-access, which mainly refers to Ethernet
accessing users, 802.1x supplicants for example.
terminal: Authorizes the user to use the terminal service (login from the Console
port).
Page 39
Logging in Commands33
Description
Use the command service-type to configure which level of command a user can
access after login. Use the command
undo service-type to restore the default
level of command (level 1).
Commands are classified into four levels, as follows:
■ 0 - Visit level. Users at this level have access to network diagnosis tools (such
as ping and tracert), and the Telnet commands. A user at this level cannot save
the configuration file.
■ 1 - Monitoring level. Users at this level can perform system maintenance,
service fault diagnosis, and so on. A user at this level cannot save the
configuration file.
■ 2 - System level. Users at this level can perform service configuration
operations, including routing, and can enter commands that affect each
network layer. Configuration level commands are used to provide direct
network service to the user.
■ 3 - Management level. Users at this level can perform basic system
operations, and can use file system commands, FTP commands, TFTP
commands, XModem downloading commands, user management commands
and level setting commands.
set authentication
password
Example
To allow a user zbr to configure commands a level 0 after login, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]local-user zbr
[4500-luser-zbr]service-type telnet level 0
To activate these settings, quit the system and login with the username zbr. Now
only the commands at level 0 are listed on the terminal.
[4500]quit
<4500>?
User view commands:
debugging Debugging functions
language-modeSpecify the language environment
pingPing function
quitExit from current command view
superPrivilege current user a specified priority level
telnetEstablish one TELNET connection
tracertTrace route function
undoNegate a command or set its default
Syntax
set authentication password { cipher | simple } password
undo set authentication password
View
User interface view
Page 40
34CHAPTER 1: USING SYSTEM ACCESS COMMANDS
Parameter
cipher: Configure to display the password in encrypted text.
simple: Configure to display the password in plain text.
password: If the authentication is in the simple mode, the password must be in
plain text. If the authentication is in the
in encrypted text or in plain text. If a plain text password is entered when cipher
mode has been selected, the password will be displayed in the configuration
settings as encrypted. A plain text password is a sequential character string of no
more than 16 digits, for example, 3Com918. The length of an encrypted password
must be 24 digits and in encrypted text, for example,
_(TT8F]Y\5SQ=^Q`MAF4<1!!.
Description
Use the set authentication password command to configure the password for
local authentication. Use the
cancel local authentication password.
The password in plain text is required when performing authentication, regardless
of whether the configuration is plain text or cipher text.
cipher mode, the password can be either
undo set authentication password command to
By default, a password is required for users connecting over Modem or Telnet. If a
password has not been set, the following prompt is displayed: Login password
has not been set!
Example
To configure the local authentication password on VTY 0 to 3Com, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface vty 0
[4500-ui-vty0]set authentication password simple 3com
shellSyntax
shell
undo shell
View
User interface view
Parameter
None
Description
Use the shell command to enable the terminal service for a user interface. The
terminal service is enabled by default. Use the
undo shell command to disable
the terminal service for a user interface.
Page 41
When using the undo shell command, note the following points.
■ For reasons of security, the undo shell command can only be used on user
interfaces other than the AUX user interface.
■ You cannot use this command on the current user interface.
■ You are asked to confirm the command.
Example
To disable the terminal service on the VTY user interfaces 0 to 4, enter the
following from another user interface:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface vty 0 4
[4500-ui-vty0-4]undo shell
speedSyntax
speed speed-value
undo speed
Logging in Commands35
View
User interface view
Parameter
speed-value: Specify the transmission rate on the AUX (Console) port in bits per
second (bps). This can be any of the following values: 300, 600, 1200, 2400,
4800, 9600, 19200, 38400, 57600, 115200 or 4096000.
The default rate is 19200 bps.
Description
Use the speed command to configure the transmission rate on the AUX (Console)
port. Use the
undo speed command to restore the default rate.
This command can only be performed in AUX user interface view.
Example
To configure the transmission speed on the AUX (Console) port as 9600 b/s, enter
the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]speed 9600
stopbitsSyntax
stopbits { 1 | 1.5 | 2 }
undo stopbits
View
User interface view
Page 42
36CHAPTER 1: USING SYSTEM ACCESS COMMANDS
Parameter
1: Sets the stop bits to 1.
1.5: Sets the stop bits to 1.5.
2: Sets the stop bits to 2.
Description
Use the stopbits command to configure the stop bits on the AUX (Console) port.
Use the
undo stopbits command to restore the default stop bits (the default
is 1).
This command can only be performed in AUX user interface view.
Example
To configure the stop bits to 2, enter the following from the AUX (Console) port:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface aux 0
[4500-ui-aux0]stopbits 2
superSyntax
super level
View
All views
Parameter
level: Enter a user level in the range 0 to 3. The default is 3.
Description
The super command gives a user access to a higher level than their currently
assigned user level.
To ensure that only an authorized user can access the higher level, use the super
password
enter a valid password, the user level does not change.
Login users are classified into four levels that correspond to the four command
levels. A user can only use commands at the levels that are equal to or lower than
their user level.
Related commands: super password, quit.
command to set a password for the higher level. If the user does not
Example
To change to user level 3 from the current user level.
<4500>super 3
Password:
The password prompt displays only if you set a password using the super
level:Enter a user level in the range 1 to 3. The default is 3. The password you
enter is set for the specified level.
cipher: Configure to display the password in encrypted text.
simple: Configure to display the password in plain text.
password: If the authentication is in the simple mode, the password must be in
plain text. If the authentication is in the
in encrypted text or in plain text. If a plain text password is entered when cipher
mode has been selected, the password will be displayed in the configuration
settings as encrypted. A plain text password is a sequential character string of no
more than 16 digits, for example, 3Com918. The length of an encrypted password
must be 24 digits and in encrypted text, for example,
_(TT8F]Y\5SQ=^Q`MAF4<1!!.
Logging in Commands37
cipher mode, the password can be either
Description
Use the super password command to configure the password for changing the
user from a lower level to a higher level. To prevent unauthorized users from illegal
intrusion, user ID authentication is performed when users switch from a lower
level to a higher level. For the sake of confidentiality, on the screen the user cannot
see the password that he entered. The user has three chances to input valid
password, and then switch to the higher level. Otherwise, the original user level
will remain unchanged. Use the
password settings.
The password in plain text is required when performing authentication, regardless
of whether
Example
To set the password for level 3 to zbr, type the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]super password level 3 simple zbr
sysnameSyntax
sysname text
undo sysname
undo super password command to cancel the
the configuration is plain text or encrypted text.
View
System View
Page 44
38CHAPTER 1: USING SYSTEM ACCESS COMMANDS
Parameter
text: Enter the host name of the Switch. The host name must be no more than
30 characters long. The default is 4500.
Description
Use the sysname command to configure the host name of the Switch. Use the
undo sysname command to restore the host name to the default of 4500.
Changing the hostname of the Ethernet switch will affect the prompt of
command line interface. For example, if the hostname of the Ethernet switch is
MyHost, the prompt in user view will be <MyHost>.
Example
To configure the hostname of the Switch to 3Com, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]sysname 3Com
[3Com]
system-viewSyntax
system-view
View
User view
Parameter
None
Description
Enter system-view to enter the system view from the user view.
Related commands: quit, return.
Example
To enter system view from user view, enter the following:
<4500>system-view
System view: return to User View with Ctrl+Z.
[4500]
telnetSyntax
telnet { hostname | ip_address } [ service_port ]
View
User view
Parameter
hostname: Enter the host name of the remote Switch. It is configured using the
ip host command.
Page 45
Logging in Commands39
ip_address: Enter the IP address or the host name of the remote Switch. If you
enter the host name, the Switch must be set to static resolution.
service_port: Designates the management port on the remote Switch, in the
range 0 to 65535. Optional.
Description
Use the telnet command to log in to another Ethernet switch from the current
switch via Telnet for remote management. To terminate the Telnet logon, press
<Ctrl+K> or <Ctrl+]>.
If you do not specify a service_port, the default Telnet port number of 23 is
used.
Related command: display tcp status.
Example
To log in to the Ethernet switch Switch32 at IP address 10.1.1.1 from the current
Switch (Switch01), enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]user-interface vty 0 4
[4500-ui-vty0-4]authentication-mode none
<Switch01>telnet 10.1.1.1
Trying 10.1.1.1.....
Press CTRL+K to abort
Connected to 10.1.1.1...
*********************************************************
* All rights reserved (1997-2004) *
* Without the owner's prior written consent, *
*no decompiling or reverse-engineering shall be allowed.*
*********************************************************
user-interfaceSyntax
user-interface [ type ] first_number [ last_number ]
View
System view
Parameter
type: Enter the user interface type, which can be aux or vty.
first_number: Specifies the number of the first user interface to be configured.
last_number: Specifies the number of the last user interface to be configured.
Description
Using user-interface command, you can enter single user interface view or
multiple user interface views to configure the corresponding user interfaces.
Example
To configure the user interfaces with index numbers 0 to 9, enter the following:
Page 46
40CHAPTER 1: USING SYSTEM ACCESS COMMANDS
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]user-interface 0 9
[SW4500-ui0-9]
This example command selects two AUX (Console) port user interfaces and two
VTY user interfaces (VTY 0, VTY 1). You can now assign access levels to these
interfaces using the user privilege level command.
user privilege levelSyntax
user privilege level level
undo user privilege level
View
User interface view
Parameter
level: Enter the level of command that a user can access, in the range 0 to 3.
Description
Use the user privilege level level command to configure the command level
that a user can access from the specified user interface. The user can use all the
available commands at this command level. Use the
undo user privilege level
command to restore the default command level. By default, a user can access all
commands at Level 3 after logging in through the AUX user interface, and all
commands at Level 0 after logging in through a VTY user interface.
Example
To configure a user to access command level 0 after logging in from the VTY 0
user interface, enter the following:
<SW4500>system-view
System View: return to User View with Ctrl+Z.
[SW4500]user privilege level 0
When the user Telnets from the VTY 0 user interface to the switch, the terminal
displays commands at level 0, as shown below:
<SW4500>?
User view commands:
debuggingDebugging functions
language-modeSpecify the language environment
pingPing function
quitExit from current command view
superPrivilege current user a specified priority level
telnetEstablish one TELNET connection
tracertTrace route function
undoNegate a command or set its default
Page 47
2
USING PORT COMMANDS
This chapter describes how to use the following commands:
Ethernet Port Configuration Commands
■ copy configuration
■ broadcast-suppression
■ description
■ display interface
■ display loopback-detection
■ display port
■ display unit
■ duplex
■ flow-control
■ interface
■ loopback
■ loopback-detection control enable
■ loopback-detection enable
■ loopback-detection interval-time
■ loopback-detection per-vlan enable
■ mdi
■ multicast-suppression
■ port access vlan
■ port hybrid pvid vlan
■ port hybrid vlan
■ port link-type
■ port trunk permit vlan
■ port trunk pvid vlan
■ reset counters interface
■ shutdown
■ speed
■ unicast-suppression
Ethernet Port Link Aggregation Commands
■ debugging link-aggregation error
Page 48
42CHAPTER 2: USING PORT COMMANDS
■ debugging link-aggregation event
■ debugging lacp packet
■ debugging lacp state
■ display link-aggregation summary
■ display link-aggregation verbose
■ display link-aggregation interface
■ display lacp system-id
■ lacp enable
■ lacp port-priority
■ lacp system-priority
■ link-aggregation group agg-id description
■ link-aggregation group agg-id mode
■ port link-aggregation group
■ reset lacp statistics
Page 49
Ethernet Port Configuration Commands43
Ethernet Port
Configuration
Commands
copy configurationSyntax
This section describes the commands you can use to configure and manage the
ports on your Switch 4500.
interface_name: Source port name, in the format of interface_name =
interface_type interface_num. For more information, see the parameter item for
the interface command.
interface_list: Destination port list, interface_list1 = { interface_type
interface_num
interface_name } ] &<1-10>. &<1-10> indicates that the former parameter can
| interface_name } [ to { interface_type interface_num |
be input 10 times repeatedly at most.
agg-id: Source or destination aggregation group ID. If it is a source aggregation
group, the port with minimum port number is the source port; if it is a destination
aggregation group, the configurations of all its member ports change to be
consistent with that of the source.
Description
Use the copy configuration command to copy the configuration of a specific
port to other ports, to ensure consistent configuration.
Example
Copy the configuration of aggregation group 1 to aggregation group 2.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]copy configuration source ethernet 1/0/1 destination ethernet
ratio: Specifies the bandwidth ratio of broadcast traffic allowed on an Ethernet
port. The ratio value ranges from 1 to 100. The incremental step is 1. By default,
the ratio is 100 meaning all broadcast traffic is accepted. The smaller the ratio is,
the less bandwidth is allocated to broadcast traffic and therefore less broadcast
traffic is accepted on the Ethernet port.
pps pps: Specifies the maximum number of broadcast packets per second
accepted on an Ethernet port. Ranges from 1 to 148810 pps.
Description
Use broadcast-suppression to configure the amount of broadcast traffic that
will be accepted on a port. Once the broadcast traffic exceeds the value set by the
user, the excess broadcast traffic will be discarded. This feature can be used to
ensure network service and prevent broadcast storms.
Example
Enable a limit of 20% of the available bandwidth on a port to be allocated to
broadcast traffic. Broadcast traffic exceeding 20% of the ports bandwidth will be
discarded.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]broadcast-suppression 20
[4500-Ethernet1/0/1]
Specify the maximum packets per second of broadcast traffic on Ethernet1/0/1 to
be 1000.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]broadcast-suppression pps 1000
[4500-Ethernet1/0/1]
descriptionSyntax
description text
undo description
View
Ethernet Port View
Page 51
Parameter
text: Enter a description of the Ethernet port. This can be a maximum of 80
characters.
Description
Use the description command to enter a description of an Ethernet port. Use
undo description command to cancel the description.
the
By default, an Ethernet port does not have a description.
Example
Set the description of port Ethernet1/0/1 to be lanswitch-interface.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]description lanswitch-interface
[4500-Ethernet1/0/1]
display interfaceSyntax
display interface [ interface_type |
interface_type interface_number ]
Ethernet Port Configuration Commands45
View
All views
Parameter
interface_type: Enter the interface type. This can be either Aux, Ethernet,
GigabitEthernet , NULL, Vlan-interface.
interface_number: Enter the interface number in the format
unit-number/0/port-number.
The unit number is a number in the range 1 to 8.
The port number is a number in the range 1 to 28 or 1 to 52 depending on the
number of ports you have on your unit.
You can use the interface_name at this command. This consists of the
interface_type and the interface_number combined as a single parameter. For
example Ethernet1/0/1.
Description
Use the display interface command to view the configuration information on
the selected interface. Along with others, this interface could be a specific port's
interface (for example, Ethernet1/0/1) or a specific VLAN interface (for example,
vlan-interface 1).
Example
To display configuration information on Ethernet port 1/0/1, enter the following:
<4500>display interface Ethernet 1/0/1
Page 52
46CHAPTER 2: USING PORT COMMANDS
The information displays in the following format:
Ethernet1/0/1 current state : UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc00-0010
The Maximum Transmit Unit is 1500
Media type is twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is
autonegotiation
Flow-control is not enabled
The Maximum Frame Length is 1536
Broadcast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
- aborts, 0 deferred, 0 collisions, 0
late collisions
- lost carrier, - no carrier
Displays the input/output rate and the number of
packets that were passed on this port in the last
300 seconds
The statistics information of input/output packets
and errors on this port. A “-” indicates that the
item isn't supported by the switch.
display
loopback-detection
Syntax
display loopback-detection
View
All views
Parameter
None
Description
Use the display loopback-detection command to view whether the port
loopback detection has been enabled. If it has been enabled, then the time
interval of the detection and the current port loopback information will also be
displayed.
Example
To display if the port loopback detection is enabled, enter the following:
<4500>display loopback-detection
Page 54
48CHAPTER 2: USING PORT COMMANDS
The details display in the following format:
Port Ethernet1/0/1 loopback-detection is running
system Loopback-detection is running
Detection interval time is 30 seconds
There is no port existing loopback link
Ta bl e 7 Output Description of the Display Loopback-detection Command
FieldDescription
Port Ethernet1/0/1 loopback-detection is running
System Loopback-detection is runningSystem Loopback-detection is enabled
Detection interval time is 30 secondsThe detection interval is 30 seconds
There is no port existing loopback linkNo port is in the loopback state
display portSyntax
display port { hybrid | trunk }
View
All views
Parameter
hybrid: Enter to display the hybrid ports.
trunk: Enter to display the trunked ports.
Description
Use the display port hybrid command to view the ports whose link type is
hybrid. Use the
is trunk.
Example
To display the currently configured hybrid ports, enter the following:
<4500>display port hybrid
The details display in the following format:
The following hybrid ports exist:
Ethernet1/0/1 Ethernet1/0/2
This example indicates that the current configuration has two hybrid ports,
Ethernet1/0/1 and Ethernet1/0/2.
display unitSyntax
display unit unit-id interface
display port trunkcommand to view the ports whose link type
View
Any view
Parameter
unit-id: Specifies Unit ID, ranging from 1 to 8.
Page 55
Ethernet Port Configuration Commands49
Description
Using display unitunit-idinterface command, you can view all port
interfaces for the specified unit.
Example
Display the port information for all ports on Unit 1.
<4500>display unit 1 interface
Aux1/0/0 current state :DOWN
Line protocol current state :DOWN
Internet protocol processing : disabled
Description : Aux1/0/0 Interface
The Maximum Transmit Unit is 1500
Data drive mode: interactive
5 minutes input rate 0.0 bytes/sec, 0.0 packets/sec
5 minutes output rate 0.0 bytes/sec, 0.0 packets/sec
0 packets input, 1000 bytes
0 packets output, 27317 bytes
error: Parity 0, Frame 0, Overrun 0, FIFO 0
DCD=UP DTR=UP DSR=UP RTS=UP CTS=UP
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc00-3900
(Omitted)
duplexSyntax
duplex { auto | full | half }
undo duplex
View
Ethernet Port View
Parameters
auto: Enter to set the port to auto-negotiation.
full: Enter to set the port to full-duplex.
half: Enter to set the port to half-duplex.
Description
Use the duplex command to configure the duplex mode of an Ethernet port to
auto-negotiation, full duplex or half-duplex. Use the
restore the duplex mode of a port to the default mode (auto-negotiation).
Related command: speed.
Example
To configure the Ethernet port “Ethernet1/0/1” to auto-negotiation, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
undo duplex command to
Page 56
50CHAPTER 2: USING PORT COMMANDS
[4500-Ethernet1/0/1]duplex auto
flow-controlSyntax
flow-control
undo flow-control
View
Ethernet Port View
Parameters
None
Description
Use the flow-control command to enable flow control on an Ethernet port. This
avoids discarding data packets due to congestion. Use the
command to disable flow control.
By default, flow control is disabled.
undo flow-control
Example
To enable flow control on port “Ethernet1/0/1”, enter the following.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]flow-control
[4500-Ethernet1/0/1]
interface_type: Enter the interface type. This can be either Aux, Ethernet,
GigabitEthernet , NULL, Vlan-interface.
interface_number: Enter the interface number in the format
unit-number/0/port-number.
The unit number is a number in the range 1 to 8.
The port number is a number in the range 1 to 28 or 1 to 52 depending on the
number of ports you have on your unit.
You can use the interface_name at this command. This consists of the
interface_type and the interface_number combined as a single parameter. For
example Ethernet1/0/1.
Page 57
Description
Use the command interface interface_type interface_number to enter the
interface of the specified port.
If you want to configure the parameters of an Ethernet port, you must first use
this command to enter the Ethernet port view.
Example
To enter the interface for port “Ethernet1/0/1”, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet1/0/1
[4500-ethernet1/0/1]
loopbackSyntax
loopback { external | internal }
View
Ethernet Port View
Ethernet Port Configuration Commands51
Parameter
external: External loop test.
internal: Internal loop test.
Description
Use the loopback command to configure the Ethernet port to perform the
loopback test to check if the Ethernet port works normally. The loop test will finish
automatically after being performed for a while.
By default, the Ethernet port will not perform the loopback test.
Example
To perform the internal loop test for Ethernet1/0/1, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]loopback internal
#Apr 2 02:46:02:29 2000 4500 L2INF/2/PORT LINK STATUS CHANGE:- 1 Trap 1.3.6.1.6.3.1.1.5.4: portIndex is 4227626, ifAdminStatus is 1,
ifOperStatus is 1
%Apr 2 02:46:02:225 2000 4500 L2INF/5/PORT LINK STATUS CHANGE:- 1 Ethernet1/0/1: is UP
Use the loopback-detection control enable command to enable loopback
detection control function on a Trunk port or Hybrid port. Use the
loopback-detection control enable
command to disable loopback detection
undo
control function on a Trunk port or Hybrid port.
This command controls the operating status of the port, when the loopback
detection function is enabled and loopback is detected on a Trunk or Hybrid port.
When this function is enabled and loopback is detected on a Trunk or Hybrid port,
the system begins to control the operating status of the port. When this function
is disabled and loopback is found, the system just reports a Trap message but has
no control over the operating status of the Trunk or Hybrid port.
loopback-detection
enable
By default, the loopback detection control function on Trunk or Hybrid ports is
disabled.
This command has no effect on Access ports.
Example
Enable port loopback detection control.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]loopback-detection control enable
[4500-Ethernet1/0/1]
Syntax
loopback-detection enable
undo loopback-detection enable
View
Ethernet Port View
Page 59
Ethernet Port Configuration Commands53
Parameter
None
Description
Use the loopback-detection enable command to enable port loopback
detection. If there is a loopback port found, the switch will put it under control.
Use the
undo loopback-detection enable command to disable port loopback
detection.
Loopback detection of a specified port only functions after port loopback
detection is enabled in the System or Ethernet port view. By default, port loopback
detection is disabled.
Related commands: display loopback-detection
Example
To enable port loopback detection, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]loopback-detection enable
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]loopback-detection enable
[4500-Ethernet1/0/1]
loopback-detection
interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System View
Parameter
time: Specifies the interval of monitoring external loopback conditions of the
port. It ranges from 5 to 300, measured in seconds.
By default, the interval is 30 seconds.
Description
Use the loopback-detection interval-time command to configure the
detection interval for the external loopback condition of each port. Use the
loopback-detection interval-time
command to restore the default interval.
undo
Related commands: display loopback-detection
Example
To configure the detection interval for the external loopback condition of each
port to 10 seconds, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]loopback-detection interval-time 10
Page 60
54CHAPTER 2: USING PORT COMMANDS
[4500]
loopback-detection
per-vlan enable
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet Port View
Parameter
None
Description
Use the loopback-detection per-vlan enable command to configure the
system to perform loopback detection on all VLANs on Trunk and Hybrid ports.
Use the
undo loopback-detection per-vlan enable command to configure the
system to only perform loopback detection on the default VLANs on the port.
By default, the system performs loopback detection to the default VLAN on Trunk
and Hybrid ports.
Example
Configure the detection interval for the external loopback condition of each port
to 10 seconds.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]loopback-detection per-vlan enable
[4500-Ethernet1/0/1]
mdiSyntax
mdi { across | auto | normal }
undo mdi
View
Ethernet Port View
Parameter
across: Enter to configure the network cable type to cross-over cable. Not
available on the Switch 4500.
auto: Enter to configure the use of either straight-through cable or cross-over
cable.
normal: Enter to configure the network cable type to straight-through cable. Not
available on the Switch 4500.
Page 61
Ethernet Port Configuration Commands55
Description
■ Use the mdicommand to configure the network cable type for an Ethernet
port.
■ Use the undo mdi command to restore the default type. By default, the
network cable type is recognized automatically (the
mdi auto command).
Note that this command only has effect on 10/100BASE-T and
10/100/1000BASE-T ports. The Switch 4500 only supports
auto (auto-sensing). If
you enter another type, an error message displays.
Example
To configure the network cable type of port “Ethernet1/0/1” as cross-over cable,
enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]mdi across
[4500-Ethernet1/0/1]
multicast-suppressionSyntax
multicast-suppression { ratio | pps pps}
undo multicast-suppression
View
Ethernet Port View
Parameter
ratio: Specifies the bandwidth ratio of multicast traffic allowed on an Ethernet
port. The ratio value ranges from 1 to 100. The incremental step is 1. By default,
the ratio is 100 meaning all multicast traffic is accepted. The smaller the ratio is,
the less bandwidth is allocated to multicast traffic and therefore less broadcast
traffic is accepted on the Ethernet port.
pps pps: Specifies the maximum number of multicast packets per second accepted
on an Ethernet port. Ranges from 1 to 148810 pps.
Description
Use multicast-suppression to configure the amount of multicast traffic that will
be accepted on a port. Once the multicast traffic exceeds the value set by the user,
the excess multicast traffic will be discarded. This feature can be used to ensure
network service and prevent multicast storms.
Example
Enable a limit of 20% of the available bandwidth on a port to be allocated to
multicast traffic. Multicast traffic exceeding 20% of the ports bandwidth will be
discarded.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
Specify the maximum packets per second of the multicast traffic on an
Ethernet1/0/1 as 1000 Mpps.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]multicast-suppression pps 1000
[4500-Ethernet1/0/1]
port access vlanSyntax
port access vlan vlan_id
undo port access vlan
View
Ethernet Port View
Parameter
vlan_id: Enter a VLAN ID in the range 2 to 4094, as defined in IEEE 802.1Q.
Description
■ Use the port access vlan command to assign the access port to a specified
VLAN.
■ Use the undo port access vlan command to remove the access port from
the VLAN.
Example
To assign Ethernet port 1/0/1 to VLAN3, enter the following.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]vlan 3
[4500-vlan3]quit
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port access vlan 3
[4500-Ethernet1/0/1]
port hybrid pvid vlanSyntax
port hybrid pvid vlan vlan_id
undo port hybrid pvid
View
Ethernet Port View
Parameter
vlan_id: Enter a VLAN ID in the range 2 to 4094, as defined in IEEE 802.1Q. The
default is 1.
Page 63
Ethernet Port Configuration Commands57
Description
Use the port hybrid pvid vlan command to configure the default VLAN ID of
the hybrid port. Use the
undo port hybrid pvid command to restore the default
VLAN ID of the hybrid port.
Hybrid port can be configured together with the isolate-user-vlan. But if the
default VLAN has set mapping in the isolate-user-vlan, the default VLAN ID cannot
be modified. If you want to modify it, cancel the mapping first.
The default VLAN ID of local hybrid port must be consistent with that of the peer
one, otherwise, the packets cannot be properly transmitted.
Related command: port link-type.
Example
To configure the default VLAN of the hybrid port Ethernet1/0/1 to VLAN100, enter
the following.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type hybrid
[4500-Ethernet1/0/1]port hybrid pvid vlan 100
[4500-Ethernet1/0/1]
port hybrid vlanSyntax
port hybrid vlan vlan_id_list { tagged | untagged }
undo port hybrid vlan vlan_id_list
View
Ethernet Port View
Parameter
vlan_id_list: Enter a VLAN ID, or more than one VLAN ID, in the range 2 to
. The hybrid port will be added to the specified VLANs. This can be a single
4094
VLAN, a series of individual VLANs separated by a space, or the first VLAN in a
range of VLANs (
You can enter up to ten vlan_id parameters in one port hybrid vlan
command.
tagged: Enter to tag the port for the specified VLAN.
untagged: Enter to leave the port untagged for the specified VLAN.
Description
Use the port hybrid vlan command to add the port to the specified VLAN(s).
The port needs to have been made a hybrid port before you can do this. See the
related command below. Use the
the port from the specified VLAN(s).
vlan_id to last_vlan_id).
undo port hybrid vlan command to remove
Page 64
58CHAPTER 2: USING PORT COMMANDS
A hybrid port can belong to multiple VLANs. A port can only be added to a VLAN
if the VLAN has already been created. See the
Related command: port link-type.
Example
To add the port Ethernet1/0/1 to VLAN 2, VLAN 4 and all VLANs in the range 50 to
100 as a tagged port, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type hybrid
[4500-Ethernet1/0/1]quit
[4500]vlan 2
[4500-vlan2]quit
[4500]interface e1/0/1
[4500-Ethernet1/0/1]port hybrid vlan 2 4 50 to 100 tagged
[4500-Ethernet1/0/1]
access: Enter to configure the port as an access port.
hybrid: Enter to configure the port as a hybrid port
trunk: Enter to configure the port as a trunk port.
xrn-fabric: Enter to configure the port as a Fabric port.
Description
Use the port link-type command to configure the link type of the Ethernet
port. Use the
undo port link-type command to restore the port as default
status. By default, a port is an access port.
A port on a Switch can be configured as an access port, a hybrid port, a trunk port
or a fabric port. However, to reconfigure between hybrid and trunk link types, you
must first restore the default, or access, link type.
Only the Gigabit combo ports can be used to interconnect the Switch units to
form a stack.
Example
To configure the Ethernet port Ethernet1/0/1 as a trunk port, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
vlan_id: Enter a VLAN ID, or more than one VLAN ID, in the range 2 to 4094.
The trunk port will be added to the specified VLANs. This can be a single VLAN, a
series of individual VLANs separated by a space, or the first VLAN in a range of
VLANs. If this is the first VLAN in a range use the
indicate the last VLAN in the range (
You can enter up to ten vlan_id parameters at one port trunk permit vlan
command.
Ethernet Port Configuration Commands59
last_vlan_id parameter to
vlan_id to last_vlan_id).
all: Enter to add the trunk port to all VLANs.
Description
Use the port trunk permit vlan command to add a trunk port to one VLAN, a
selection of VLANs or all VLANs. Use the
undo port trunk permit vlan
command to remove a trunk port from one VLAN, a selection of VLANs or all
VLANs.
A trunk port can belong to multiple VLANs. If the port trunk permit vlan
command is used many times, then the VLAN enabled to pass on trunk port is the
set of these
vlan_id_list.
Related command: port link-type.
Example
To add the trunk port Ethernet1/0/1 to VLAN 2, VLAN 4 and all VLANs in the range
50-100, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]port trunk permit vlan 2 4 50 to 100
Please wait... Done.
[4500-Ethernet1/0/1]
port trunk pvid vlanSyntax
port trunk pvid vlan vlan_id
undo port trunk pvid
Page 66
60CHAPTER 2: USING PORT COMMANDS
View
Ethernet Port View
Parameter
vlan_id: Enter a VLAN ID in the range 2 to 4094, as defined in IEEE802.1Q. This
is the VLAN that you want to be the default VLAN for a trunk port.
The default is 1.
Description
Use the port trunk pvid vlan command to configure the default VLAN ID for a
trunk port. Use the
ID for a trunk port.
The default VLAN ID of local trunk port should be consistent with that of the peer
one, otherwise packets cannot be properly transmitted.
Related command: port link-type.
Example
To configure the trunk port Ethernet1/0/1 to the default VLAN of 100, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-type trunk
[4500-Ethernet1/0/1]port trunk pvid vlan 100
[4500-Ethernet1/0/1]
undo port trunk pvid command to restore the default VLAN
interface_name: Specifies the port name in the interface_name=
interface_type interface_num
For parameter description, refer to the interface command.
Description
Use the reset counters interface command to reset the statistical information
on the port and count the related information again on the port for the user.
If you do not enter a port type, or port type and port number, information is
cleared from all ports on the Switch. If only the port type is specified, all the
information on ports of this type will be cleared. If both port type and port
format.
Page 67
number are specified, the information on the specified port will be cleared. After
802.1x is enabled, the port information cannot be reset.
Example
To reset statistical information on Ethernet1/0/1, enter the following:
Use the shutdown command to disable an Ethernet port. Use the undo shutdown
command to enable an Ethernet port.
By default, the Ethernet port is enabled.
Example
To disable and then enable Ethernet1/0/1, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]shutdown
[4500-Ethernet1/0/1]undo shutdown
speedSyntax
For a 100 Mbps Ethernet port, the parameters for this command are as follows:
speed { 10 | 100 | auto }
For a 1000 Mbps Ethernet port, the parameters for this command are as follows:
speed { 10 | 100 | 1000 | auto }
The undo form of this command is:
undo speed
View
Ethernet Port View
Parameter
10: Enter to set the port speed to 10 Mbps.
100: Enter to set theportspeed to 100 Mbps.
Page 68
62CHAPTER 2: USING PORT COMMANDS
1000: Enter to set the port speed to 1000 Mbps. (Only available on Gigabit ports).
auto: Enter to set the port speed to auto-negotiation.
Description
Use the speed command to configure the port speed. Use the undo speed
command to restore the default speed. By default, the speed is
Related command: duplex.
Example
To configure the port speed of port Ethernet1/0/1 to 10 Mbps, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]speed 10
[4500-Ethernet1/0/1]
unicast-suppressionSyntax
unicast-suppression { ratio | pps pps }
auto.
undo unicast-suppression
View
Ethernet Port View
Parameter
ratio: Specifies the bandwidth ratio of unicast traffic allowed on an Ethernet
port. The ratio value ranges from 1 to 100. The incremental step is 1. By default,
the ratio is 100 meaning all unicast traffic is accepted. The smaller the ratio is, the
less bandwidth is allocated to unicast traffic and therefore less broadcast traffic is
accepted on the Ethernet port.
pps pps: Specifies the maximum number of unicast packets per second accepted
on an Ethernet port. Ranges from 1 to 148810 pps.
Description
Use unicast-suppression to configure the amount of unicast traffic that will be
accepted on a port. Once the multicast traffic exceeds the value set by the user,
the excess unicast traffic will be discarded. This feature can be used to ensure
network service and prevent unicast storms.
Example
Enable a limit of 20% of the available bandwidth on a port to be allocated to
unicast traffic. Unicast traffic exceeding 20% of the ports bandwidth will be
discarded.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
Specify the maximum packets per second of the unicast traffic on an
Ethernet1/0/1 as 1000 Mpps.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]unicast-suppression pps 1000
[4500-Ethernet1/0/1]
Page 70
64CHAPTER 2: USING PORT COMMANDS
Ethernet Port Link
Aggregation
Commands
debugging
link-aggregation error
This section describes the commands you can use to configure Ethernet Port LInk
Aggregation on the Switch.
Syntax
debugging link-aggregation error
undo debugging link-aggregation error
View
User View
Parameter
None
Description
Use the debugging link-aggregation error command to enable link
aggregation error debugging. Use the
command to disable link aggregation error debugging.
error
undo debugging link-aggregation
Example
To enable link aggregation error debugging, enter the following:
debugging
link-aggregation event
<4500>debugging link-aggregation error
Syntax
debugging link-aggregation event
undo debugging link-aggregation event
View
User View
Parameter
None
Description
Use the debugging link-aggregation event command to enable link
aggregation events debugging. Use the
command to disable link aggregation events debugging.
event
undo debugging link-aggregation
Example
To enable link aggregation events debugging, enter the following:
interface{ interface_type interface_ num | interface_name }[to{
interface_type interface_ num | interface_name } ]
can specify multiple sequential ports with the
to parameter, instead of specifying
: Specifies ports. You
only one port.
interface_name: Specifies port name, in the format of interface_name =
interface_type interface_num.
interface_type: Specifies port type and interface_num port number.
For more information, see the parameter item for the interface command.
Description
Use the debugging lacp packet command to enable LACP packets debugging at
a designated port or ports. Use the
disable LACP packets debugging at a designated port or ports.
Example
To enable LACP packets debugging at Ethernet1/0/1, enter the following:
interface_name: Specifies port name, in the format of interface_name =
interface_type interface_num.
interface_type: Specifies port type and interface_num port number.
For more information, see the parameter item for the interface command.
actor-churn: Debugging actor-churn state machine.
mux: Debugging MUX state machine.
partner-churn: Debugging partner-churn state machine.
ptx: Debugging PTX state machine.
rx: Debugging RX state machine.
all: Debugging all state machines.
Description
Use the debugging lacp state command to enable LACP state machines
debugging on a designated port or ports. Use the
command to disable LACP state machines debugging on a designated port or
ports.
undo debugging lacp state
display link-aggregation
summary
Example
To enable all LACP state machines debugging.
<4500>debugging lacp state all
Syntax
display link-aggregation summary
View
Any view
Parameter
None
Description
Use the display link-aggregation summary command to view summary
information of all aggregation groups, including actor system ID, aggregation
group ID, aggregate group type, partner system ID, number of selected ports,
number of standby ports, load sharing type and master port number.
Example
To display summary information of all aggregation information, enter the
following:
<4500>display link-aggregation summary
Aggregation Group Type: D -- Dynamic, S -- Static, M -- Manual
Loadsharing Type: Shar – Loadsharing, NonS – Non-Loadsharing
Actor ID: 0x8000, 00e0-fcff-ff04
Page 73
Ethernet Port Link Aggregation Commands67
AL AL Partner ID SelectStandby ShareMaster
ID TypePortsPortsTypePort
------------------------------------------------------------------1 D 0x8000,00e0-fcff-ff01 10NonS Ethernet4/0/1
10 M none 10NonS Ethernet4/0/2
20 S 0x8000,00e0-fcff-ff01 10NonS Ethernet4/0/3
display link-aggregation
verbose
Syntax
display link-aggregation verbose [ agg_id ]
View
Any view
Parameter
agg_id: Aggregation group ID, which must be a valid existing ID, in the range of
1 to 416.
Description
Use the display link-aggregation verbose command to view detailed
information of a link aggregation, including aggregation ID, the type of
aggregation, load-sharing type, detailed local information (member ports, port
status, port priority, LACP state flag and operation key), and detailed remote
information (indexes of remote ports, port priority, LACP state flag, operation key
and system ID.)
Note that unlike a dynamic aggregation, a manual aggregation has no protocol to
get the remote peer information of the partner. Therefore, every item for the
remote peer is 0. This does not indicate the actual state of the remote peer.
Example
To display detailed information of aggregation group 1, enter the following:
Aggregation ID: 1, AggregationType: Manual, Loadsharing Type: NonS
Aggregation Description:
System ID: 0x8000, 000f-cbb7-2e00
Port Status: S -- Selected, U -- Unselected
Local:
Port Status Priority Flag Oper-Key
------------------------------------------------------------------- Ethernet1/0/2 U 32768 0x00 1
Ethernet1/0/3 U 32768 0x00 1
Ethernet1/0/4 S 32768 0x00 1
Remote:
Actor Partner Priority Flag Oper-Key SystemID
interface{ interface_type interface_ num | interface_name } [ to {
interface_type interface_ num | interface_name } ]:
can specify multiple sequential ports with the
to parameter, instead of specifying
Specifies ports. You
only one port.
interface_name: Specifies port name, in the format of interface_name =
interface_type interface_num.
interface_type: Specifies port type and interface_num port number.
For more information, see the parameter item for the interface command.
Description
Use the display link-aggregation interface command to view detailed link
aggregation information at a designated port, including aggregation group ID for
the port, port priority, operation key, LACP state flag, partner information (system
ID, port number, port priority, operation key, LACP state flag, LACP packet
statistics).
Note that unlike a dynamic aggregation, a manual aggregation has no protocol to
get the remote peer information of the partner. Therefore, every item for the
remote peer is 0. This does not indicate the actual state of the remote peer.
Example
To display detailed link aggregation information of a link aggregation member
port, enter the following:
Local:
Port-Priority: 32768, Oper key: 2, Flag: 0x3d
Remote:
System ID: 0x8000, 000e-84a6-fb00
Port Number: 2, Port-Priority: 32768 , Oper-key: 10, Flag: 0x3d
Received LACP Packets: 8 packet(s), Illegal: 0 packet(s)
Sent LACP Packets: 9 packet(s)
Related command: display link-aggregation verbose.
display lacp system-idSyntax
display lacp system-id
View
Any view
Parameter
None
Description
Use the display lacp system-id command to view actor system ID, including
system priority and system MAC address.
Ethernet Port Link Aggregation Commands69
Related command: link-aggregation.
Example
To display the local system ID.
<4500>display lacp system-id
Actor System ID: 0x8000, 00e0-fc00-0100
lacp enableSyntax
lacp enable
undo lacp enable
View
Ethernet Port View
Parameter
None
Description
Use the lacp enable command to enable LACP.
Use the undo lacp enable command to disable LACP.
The Switch will select the lowest port number as the master port for the link
aggregation. This applies to all types of link aggregation. If the aggregation spans
a stack of units (only avaliable on the Switch 4500-EI) and the same ports are
used, the unit number will be the tie-breaker. For example, 1/0/1 and 2/0/1 are in
an aggregation. Port 1/0/1 will be the master port.
Page 76
70CHAPTER 2: USING PORT COMMANDS
Example
To enable LACP at Ethernet1/0/1, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]lacp enable
[4500-Ethernet1/0/1]
lacp port-prioritySyntax
lacp port-priority port-priority-value
undo lacp port-priority
View
Ethernet Port View
Parameter
port-priority-value: Port priority, ranging from 0 to 65535. By default, it is
32768.
Description
Use the lacp port priority command to configure port priority value. Use the
undo lacp port-priority command to restore the default value.
Related commands: display link-aggregation verbose and display
link-aggregation interface
Example
To set port priority as 64, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]lacp port-priority 64
[4500-Ethernet1/0/1]
lacp system-prioritySyntax
lacp system-priority system-priority-value
undo lacp system-priority
View
System View
.
Parameter
system-priority-value: System priority, ranging from 0 to 65535. By default, it
is 32768.
Description
Use the lacp system-priority command to configure system priority value.
Page 77
Ethernet Port Link Aggregation Commands71
Use the undo lacp system-priority command to restore the default value.
Related command: display lacp system-id.
Example
To set system priority as 64, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]lacp system-priority 64
[4500]
link-aggregation group
agg-id description
Syntax
link-aggregation group agg_id description alname
undo link-aggregation group agg-id description
View
System View
Parameter
agg_id: Aggregation group ID, in the range of 1 to 416.
alname: Aggregation group name, character string with 1 to 32 characters.
Description
Use the link-aggregation group agg_id description command to configure
descriptor for an aggregation group. Use the
agg-id description
command to delete aggregation group descriptor.
undo link-aggregation group
Related command: display link-aggregation verbose.
Example
To configure myal1 as the descriptor of aggregation group 22, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]link-aggregation group 22 mode manual
[4500]link-aggregation group 22 description myal1
[4500]
link-aggregation group
agg-id mode
Syntax
link-aggregation group agg_id mode { manual | static }
undo link-aggregation group agg_id
View
System View
Parameter
agg_id: Aggregation group ID, in the range of 1 to 416.
Page 78
72CHAPTER 2: USING PORT COMMANDS
manual: Manual aggregation group.
static: Static aggregation group.
Description
Use the link-aggregation group agg_id mode command to create a manual or
static aggregation group. Use the
delete an aggregation group.
The Switch will select the lowest port number as the master port for the link
aggregation. This applies to all types of link aggregation. If the aggregation spans
a stack of units and the same ports are used, the unit number will be the
tie-breaker. For example, 1/0/1 and 2/0/1 are in an aggregation. Port 1/0/1 will be
the master port.
A manual or static aggregation group can have up to eight ports. You can use the
ink-aggregation group agg-id mode command to change an existing dynamic
l
aggregation group into a manual or static one. If the port number in a group
exceeds eight, this operation fails and the system prompts you about the
configuration failure.
undo link-aggregation group command to
port link-aggregation
group
Related command: display link-aggregation summary.
Example
To create manual aggregation group 22, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]link-aggregation group 22 mode manual
Syntax
port link-aggregation group agg_id
undo port link-aggregation group
View
Ethernet Port View
Parameter
agg_id: Aggregation group ID, in the range of 1 to 416.
Description
Use the port link-aggregation group agg_id command to add an Ethernet
port into a manual or static aggregation group. Use the
link-aggregation group
command, to delete an Ethernet port from a manual or
undo port
static aggregation group.
Related command: display link-aggregation verbose.
Example
To add Ethernet1/0/1 into aggregation group 22, enter the following:
<4500>system-view
Page 79
System View: return to User View with Ctrl+Z.
[4500]link-aggregation group 22 mode manual
[4500]interface ethernet 1/0/1
[4500-Ethernet1/0/1]port link-aggregation group 22
interface{ interface_type interface_ num | interface_name } [ to {
interface_type interface_ num | interface_name } ]:
can specify multiple sequential ports with the
to parameter, instead of specifying
Specifies ports. You
only one port.
interface_name: Specifies port name, in the format of interface_name =
interface_type interface_num.
interface_type: Specifies port type and interface_num port number.
For more information, see the parameter item for the interface command.
Description
Use the reset lacp statistics command to clear LACP statistics at a
designated port. If no port is specified, then LACP statistics at all ports shall be
cleared.
Related command: display link-aggregation interface.
Example
To clear LACP statistics at all Ethernet ports, enter the following:
<4500>reset lacp statistics
Page 80
74CHAPTER 2: USING PORT COMMANDS
Page 81
3
USING VLAN COMMANDS
This chapter describes how to use the following commands:
VLAN Configuration Commands
■ description
■ display interface VLAN-interface
■ display vlan
■ interface VLAN-interface
■ shutdown
■ vlan
Voice VLAN Commands
■ display voice vlan oui
■ display voice vlan status
■ voice vlan aging
■ voice vlan enable
■ voice vlan
■ voice vlan mac_address
■ voice vlan mode
■ voice vlan security enable
Page 82
76CHAPTER 3: USING VLAN COMMANDS
VLAN Configuration
Commands
descriptionSyntax
This section describes the commands you can use to configure and manage the
VLANs and VLAN interfaces on your system.
description string
undo description
View
VLAN view
Parameter
string: Enter a description of the current VLAN, up to a maximum of 32
characters. For a description of a VLAN interface, the maximum is 80 characters.
Description
Use the description command to set a description for the current VLAN. Use the
undo description command to cancel the description of current VLAN.
The default description character string of the current VLAN is no description!.
The default description character string of the VLAN interface is the interface
name, for example,
vlan-interface1.
display interface
VLAN-interface
Related command: display vlan.
Example
To give VLAN1 the description “RESEARCH”, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]vlan 1
[4500-vlan1]description RESEARCH
[4500-vlan1]
Syntax
display interface vlan-interface [ vlan_id ]
View
All views
Parameter
vlan_id: Enter the ID number of the VLAN interface, ranging from 1 to 4094.
Description
Use the display interface vlan-interface command to view the information
about a specific VLAN interface, or all VLAN interfaces. The information displayed
includes:
■Current status of the interface
■Current status of the line protocol
Page 83
VLAN Configuration Commands77
■VLAN interface description
■Maximum Transmit Unit (MTU)
■IP address and subnet mask
■Format of the IP frames
■MAC hardware address.
Use display interface vlan-interface to display information on all VLAN
interfaces. Use
To display information on VLAN interface 1, enter the following:
<4500>display interface vlan-interface 1
The information displays in the following format:
Vlan-interface1 current state :UP
Line protocol current state :UP
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is
00e0-fc00-3971
Internet Address is 161.71.61.206/24 Primary
Description : Vlan-interface1 Interface
The Maximum Transmit Unit is 1500
<4500>
display vlanSyntax
display vlan [ vlan_id | all | static | dynamic ]
View
All views
Parameter
vlan_id: Enter to display information on a specified VLAN.
all: Enter to display information on all VLANs.
static: Enter to display information on VLANs created statically by the system.
dynamic: Enter to display information on VLANs created dynamically by the
system.
Description
Use the display vlan command to view related information about specific
VLANs, specific types of VLAN or all VLANs. The information includes: VLAN type,
whether the Route interface has been configured on the VLAN, the Broadcast
Suppression max-ratio, the VLAN description, and a list of the tagged and
untagged ports that belong to the VLAN. Use the command
display a summary of the VLAN IDs of all VLANs configured on the system. Use the
display vlan to
Page 84
78CHAPTER 3: USING VLAN COMMANDS
command display vlan vlan_id to display information on a specific VLAN. Use
the command
the command
dynamically by the system. Use the command
information of VLAN created statically by the system.
display vlan all to display information on all the VLANs. Use
display vlan dynamic to display information on VLANs created
display vlan static to display
<4500>
interface VLAN-interface Syntax
interface vlan-interface vlan_id
undo interface vlan-interface vlan_id
Page 85
VLAN Configuration Commands79
View
System View
Parameter
vlan_id: Enter the ID of the VLAN interface you want to configure, in the range
1 to 4094. Note that VLAN1 is the default VLAN and cannot be deleted.
Description
Use the interface vlan-interface command to enter a VLAN interface view
and use the related configuration commands. Use the
vlan-interface
command to exit the current VLAN interface.
undo interface
Related command: display interface vlan-interface.
Example
To enter the interface view of VLAN1, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500] interface vlan-interface 1
[4500-Vlan-interface1]
portSyntax
port interface_list
undo port interface_list
View
VLAN view
Parameter
interface_list: list of Ethernet ports to be added to or deleted from a certain
VLAN, expressed as
interface_name} [ to { interface_type interface_num | interface_name } ]
&<1-10>.
}
interface_type is the interface type, interface_num is the interface number
and interface_name is the interface name. For their meanings and value range, see
the parameter of
must be larger than or equal to the port number before
&<1-10>: Represents the repeatable times of parameters, 1 is the minimal and 10
is the maximal.
Description
Using the port command, you can add one port or one group of ports to a VLAN.
Using the
from a VLAN.
interface_list= {{interface_type interface_num |
Port in this document. The interface number after keyword to
to.
undo port command, you can cancel one port or one group of ports
You can add/delete trunk port and hybrid ports to/from a VLAN by port and undo
port commands in Ethernet Port View, but not in VLAN View.
For the related command, see display vlan.
Page 86
80CHAPTER 3: USING VLAN COMMANDS
Example
Add Ethernet1/0/2 through Ethernet1/0/4 to VLAN 2.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]vlan 2
[4500-vlan2]port ethernet1/0/2 to ethernet1/0/4
shutdownSyntax
shutdown
undo shutdown
View
VLAN Interface View
Parameter
None
Description
Use the shutdown command to disable the VLAN interface. Use the undo
shutdown
command to enable the VLAN interface.
By default, when all Ethernet ports are in DOWN status in VLAN interface, the
VLAN interface is in DOWN status and is disabled. When there is one or more
Ethernet ports in VLAN interface are in UP status, the VLAN interface is UP.
This command can be used to start the interface after the related parameters and
protocols of VLAN interface are set. Or when the VLAN interface fails, the
interface can be shut down first and then restarted, in this way, the interface may
be restored to normal status. Shutting down or starting VLAN interface will not
take any effect on any Ethernet port of this VLAN.
Example
Restart interface after shutting down the interface.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]vlan 2
[4500-vlan2]quit
[4500]interface vlan-interface 2
[4500-Vlan-interface2]shutdown
%Apr 2 00:06:15:277 2000 4500 L2INF/5/VLANIF LINK STATUS CHANGE:- 1
- Vlan-interface1: is DOWN
[4500-Vlan-interface2]undo shutdown
#Apr 2 00:05:27:793 2000 4500 L2INF/2/PORT LINK STATUS CHANGE:- 1 Trap 1.3.6.1.6.3.1.1.5.4: portIndex is 4227626, ifAdminStatus is 1,
ifOperStatus is 1
%Apr 2 00:05:27:980 2000 4500 L2INF/5/PORT LINK STATUS CHANGE:- 1 Ethernet1/0/1: is UP
%Apr 2 00:05:28:96 2000 4500 L2INF/5/VLANIF LINK STATUS CHANGE:- 1 Vlan-interface1: is UP
Use the display voice vlan status command to display the relative Voice
VLAN features including the Voice VLAN status, the configuration mode, the
current Voice VLAN port status etc.
Related commands: voice vlan vlan_id enable, voice vlan enable.
Example
To enable the Voice VLAN on VLAN 2 and display the Voice VLAN status, enter the
following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]display voice vlan status
Voice Vlan status: ENABLE
Voice Vlan ID: 2
Voice Vlan configuration mode: AUTO
Voice Vlan security mode: Security
Voice Vlan aging time: 100 minutes
Current voice vlan enabled port:
vlan_id: The VLAN ID for the Voice VLAN to be enabled, in the range of 2 to
4094.
Description
Use the voice vlan command to globally enable the Voice VLAN features of one
VLAN. Use the
VLAN features of one VLAN.
undo voice vlan enable command to globally disable the Voice
A specified VLAN must exist for a successful Voice VLAN enabling. You cannot
delete a specified VLAN that has enabled Voice VLAN and only one VLAN can
enable Voice VLAN features at one time.
For the related command, see display voice vlan status.
Example
Enable the Voice VLAN features on VLAN 2 (VLAN 2 already exists).
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]vlan 2
[4500-vlan2]quit
[4500]voice vlan 2 enable
[4500]
oui: The MAC address to be set, in the format H-H-H.
oui_mask: The valid length of a MAC address, represented by a mask, and in the
format H-H-H.
description string: Description of the MAC address, in the range of 1 to 30.
Page 91
Voice VLAN Configuration Commands85
Description
Use the voice vlan mac_address command to set the MAC address that the
Voice VLAN can control. Use the
undo voice vlan mac_address command to
cancel this MAC address.
Here the OUI address refers to a vendor and you need only input the first
three-byte values of the MAC address. The OUI address system can learn 16 MAC
addresses at most. There are four default OUI addresses after the system starts:
Ta bl e 8 Default OUI Addresses
No.OUIDescription
100:E0:BB3Com phone
200:03:6BCisco phone
300:E0:75Polycom phone
400:D0:1EPingtel phone
For the related command, see display voice vlan oui.
Example
To set the MAC address 00AA-BB00-0000 as an OUI address, enter the following.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]voice vlan mac_address 00aa-bb00-0000 mask ffff-ff00-0000
description ABC
[4500]
voice vlan modeSyntax
voice vlan mode auto
undo voice vlan mode auto
View
System View
Parameter
None
Description
Use the voice vlan mode auto command to set the Voice VLAN in auto mode.
Use the
mode.
By default, the Voice VLAN is in auto mode.
If required, the voice vlan mode auto and undo voice vlan mode auto
commands must be executed before the Voice VLAN features are enabled globally.
For the related command, see display voice vlan status.
undo voice vlan mode auto command to set the Voice VLAN in manual
Example
To set the Voice VLAN in manual mode, enter the following:
Page 92
86CHAPTER 3: USING VLAN COMMANDS
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]undo voice vlan mode auto
Can't change voice vlan configuration when voice vlan is running
[4500]undo voice vlan enable
[4500]undo voice vlan mode auto
[4500]
voice vlan security
enable
Syntax
voice vlan security enable
undo voice vlan security enable
View
System View
Parameter
None
Description
Use the voice vlan security enable command to enable the Voice VLAN
security mode. In this mode, the system can filter out the traffic whose source
MAC is not OUI when the traffic travels through the access port of IP Phone within
the Voice VLAN, while the other VLANs are not influenced. Use the
vlan security enable
command to disable the Voice VLAN security mode.
undo voice
By default, the Voice VLAN security mode is enabled.
If needed, the voice vlan security enable and undo voice vlan security
enable
commands must be executed before the Voice VLAN features are enabled
globally.
For the related command, see display voice vlan status.
Example
To disable the Voice VLAN security mode, enter the following:
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]undo voice vlan security enable
[4500]
Page 93
4
USING POWEROVER ETHERNET (POE)
COMMANDS
This chapter describes how to use the following commands:
PoE Configuration Commands
■ display poe interface
■ display poe power
■ display poe powersupply
■ poe enable
■ poe legacy enable
■ poe max-power
■ poe mode
■ poe power-management
■ poe priority
■ poe update
Page 94
88CHAPTER 4: USING POWEROVER ETHERNET (POE) COMMANDS
PoE Configuration
Commands
display poe interfaceSyntax
This section describes the commands you can use to configure and manage the
PoE on your Switch 4500 PWR.
interface-name | interface-type interface-num: Port on the Switch.
Description
Use the display poe interface command to view the PoE status of a specific
port or all ports on the Switch.
Example
Display the PoE status of the Ethernet port Ethernet1/0/10.
[4500]display poe interface ethernet1/0/10
Port power enabled :enable
Port power ON/OFF :on
Port power status :Standard PD
Port power mode :signal
Port PD class :0
port power priority :low
Port max power :15400 mW
Port current power :460 mW
Port peak power :552 mW
Port average power :547 mW
Port current :10 mA
Port voltage :51 V
Display the PoE status of all ports.
[4500]display poe interface
PORT INDEXPOWER ENABLE MODE PRIORITY STATUS
Ethernet1/0/1 off enable signal low Detection
Ethernet1/0/2 off enable signal low Detection
Ethernet1/0/3 off enable signal low Detection
Ethernet1/0/4 off enable signal low Detection
Ethernet1/0/5 off enable signal low Detection
Ethernet1/0/6 off enable signal low Detection
Ethernet1/0/7 off enable signal low Detection
Ethernet1/0/8 off enable signal low Detection
Ethernet1/0/9 off enable signal low Detection
Ethernet1/0/10 off enable signal low Detection
Ethernet1/0/11 off enable signal low Detection
Ethernet1/0/12 off enable signal low Detection
Ethernet1/0/13 off enable signal low Detection
Ethernet1/0/14 off enable signal low Detection
Page 95
PoE Configuration Commands89
Ethernet1/0/15 off enable signal low Detection
Ethernet1/0/16 off enable signal low Detection
Ethernet1/0/17 off enable signal low Detection
Ethernet1/0/18 off enable signal low Detection
Ethernet1/0/19 off enable signal low Detection
Ethernet1/0/20 off enable signal low Detection
Ethernet1/0/21 off enable signal low Detection
Ethernet1/0/22 off enable signal low Detection
Ethernet1/0/23 off enable signal low Detection
Ethernet1/0/24 off enable signal low Detection
Ethernet1/0/25 off disable signal low User set off
Ethernet1/0/26 off disable signal low User set off
Ethernet1/0/27 off disable signal low User set off
Ethernet1/0/28 off disable signal low User set off
Ethernet1/0/29 off disable signal low User set off
Ethernet1/0/30 off disable signal low User set off
Ethernet1/0/31 off disable signal low User set off
Ethernet1/0/32 off disable signal low User set off
Ethernet1/0/33 off disable signal low User set off
Ethernet1/0/34 off disable signal low User set off
Ethernet1/0/35 off disable signal low User set off
Ethernet1/0/36 off disable signal low User set off
Ethernet1/0/37 off disable signal low User set off
Ethernet1/0/38 off disable signal low User set off
Ethernet1/0/39 off disable signal low User set off
Ethernet1/0/40 off disable signal low User set off
Ethernet1/0/41 off disable signal low User set off
Ethernet1/0/42 off disable signal low User set off
Ethernet1/0/43 off disable signal low User set off
Ethernet1/0/44 off disable signal low User set off
Ethernet1/0/45 off disable signal low User set off
Ethernet1/0/46 off disable signal low User set off
Ethernet1/0/47 off disable signal low User set off
Ethernet1/0/48 off disable signal low User set off
display poe powerSyntax
display poe interface power [ interface-name | interface-type
interface-num ]
View
Any view
Parameter
interface-name | interface-type interface-num: Port on the Switch.
Description
Use the display poe interface power command, you can view the power
information of a specific port or all ports on the Switch.
Example
Display the power information of port Ethernet1/0/10.
[4500]display poe interface power ethernet1/0/10
Page 96
90CHAPTER 4: USING POWEROVER ETHERNET (POE) COMMANDS
Port power :12400 mW
Display the power information of all ports.
[4500]display poe power
PORT INDEXPOWER (mW)PORT INDEXPOWER
Use the display poe powersupply command to view the parameters of the
power sourcing equipment (PSE).
Example
Display the PSE parameters.
[4500]display poe powersupply
PSE ID :1
PSE Legacy Detection :disable
PSE Total Power Consumption :12000 mW
PSE Available Power :268000 mW
PSE Peak Value :12000 mW
PSE Average Value :12000 mW
PSE Software Version :290
PSE Hardware Version :000
PSE CPLD Version :021
PSE Power-Management mode :auto
poe enableSyntax
poe enable
undo poe enable
View
Ethernet Port View
Parameter
None
Description
Use the poe enable command to enable the PoE feature on a port.
Use the undo poe enable command to disable the PoE feature on a port.
By default, the PoE feature on each port is enabled.
Example
Enable the PoE feature on the current port.
[4500-Ethernet1/0/3]poe enable
Port power supply is enabled
# Disable the PoE feature on the current port.
[4500-Ethernet1/0/3]undo poe enable
Port power supply is disabled
poe legacy enableSyntax
poe legacy enable
undo poe legacy enable
Page 98
92CHAPTER 4: USING POWEROVER ETHERNET (POE) COMMANDS
View
System View
Parameter
None
Description
Use the poe legacy enable command to enable the nonstandard-PD detect
function.
Use the undo poe legacy enable command to disable the nonstandard-PD
detect function.
PDs compliant with 802.3af standards are called standard PDs.
By default, the nonstandard-PD detect function is disabled.
Example
Enable the nonstandard-PD detect function.
[4500]poe legacy enable
Legacy detection is enabled
Disable the nonstandard-PD detect function.
[4500]undo poe legacy enable
Legacy detection is disabled
poe max-powerSyntax
poe max-power max-power
undo poe max-power
View
Ethernet Port View
Parameter
max-power: Maximum power distributed to the port, ranging from 1000 to
15400 mW.
Description
Use the poe max-power command to configure the maximum power that can be
supplied by current port.
Use the undo poe max-power command to restore the maximum power supplied
by current port to the default value.
By default, the maximum power that a port can supply is 15400 mW.
Page 99
The unit of power is mW. You can set the power in the granularity of 100 mW.
The actual maximum power will be 5% larger than what you have set allowing for
the effect of transient peak power.
Example
Set the maximum power supplied by current port.
[4500-Ethernet1/0/3]poe max-power 15000
Set Port max power successfully
Restore the default maximum power on the current port.
[4500-Ethernet1/0/3]undo poe max-power
Set Port max power successfully
poe modeSyntax
poe mode { signal | spare }
undo poe mode
PoE Configuration Commands93
View
Ethernet Port View
Parameter
signal: Supply power through the signal line.
spare: Supply power through the spare line. Currently, the Switch 4500 Family
does not support
spare mode. If the subordinate PD only supports the spare
mode, a conversion is needed.
Description
Use the poe mode command to configure the PoE mode on the current port.
Use the undo poe mode command to restore the PoE mode on the current port to
the default mode.
By default, the port is powered through the signal cable.
Example
Set the PoE mode on current port to signal.
[4500-Ethernet1/0/3]poe mode signal
Set PoE mode successfully
poe power-managementSyntax
poe power-management { auto | manual }
undo poe power-management
Page 100
94CHAPTER 4: USING POWEROVER ETHERNET (POE) COMMANDS
View
System View
Parameter
auto: Adopt the auto mode, a PoE management mode based on port priority.
manual: Adopt the manual mode.
Description
Use the poe power-management command to configure the PoE management
mode of port used in the case of power overloading.
Use the undo poe power-management command to restore the default mode.
By default, the PoE management mode on port is auto.
Example
Configure the PoE management mode on port to auto.
[4500]poe power-management auto
Auto Power Management is enabled
Restore the default management mode.
[4500]undo poe power-management
Auto Power Management is enabled
poe prioritySyntax
poe priority { critical | high | low }
undo poe priority
View
Ethernet Port View
Parameter
critical: Set the port priority to critical.
high: Set the port priority to high.
low: Set the port priority to low.
Description
Use the poe priority command to configure the power supply priority on a port.
Use the undo poe priority command to restore the default priority.
By default, the port priority is low.
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.