D-Link xStack DGS-3426, xStack DGS-3427 Cli Manual
Annonce
Annonce
CLI Manual
Product Model:
DGS-3400 Series
Layer 2 Gigabit Ethernet Managed Switch
Release 1.2
.
May 2006
651GS3400025G
RECYCLABLE
.
Table of Contents
INTRODUCTION ..........................................................................................................................................................1
USING THE CONSOLE CLI.........................................................................................................................................4
COMMAND SYNTAX ...................................................................................................................................................8
BASIC SWITCH COMMANDS...................................................................................................................................10
SWITCH PORT COMMANDS ....................................................................................................................................21
PORT SECURITY COMMANDS ................................................................................................................................24
NETWORK MANAGEMENT (SNMP) COMMANDS .................................................................................................27
SWITCH UTILITY COMMANDS ................................................................................................................................46
NETWORK MONITORING COMMANDS ..................................................................................................................54
MULTIPLE SPANNING TREE PROTOCOL (MSTP) COMMANDS .........................................................................68
FORWARDING DATABASE COMMANDS...............................................................................................................81
TRAFFIC CONTROL COMMANDS...........................................................................................................................87
QOS COMMANDS .....................................................................................................................................................91
PORT MIRRORING COMMANDS ...........................................................................................................................100
VLAN COMMANDS .................................................................................................................................................103
LINK AGGREGATION COMMANDS.......................................................................................................................109
IP-MAC BINDING COMMANDS ..............................................................................................................................114
BASIC IP COMMANDS............................................................................................................................................118
IGMP SNOOPING COMMANDS..............................................................................................................................121
MLD SNOOPING COMMANDS ...............................................................................................................................128
802.1X COMMANDS................................................................................................................................................136
ACCESS CONTROL LIST (ACL) COMMANDS......................................................................................................151
SAFEGUARD ENGINE COMMANDS......................................................................................................................167
TRAFFIC SEGMENTATION COMMANDS..............................................................................................................170
TIME AND SNTP COMMANDS ...............................................................................................................................172
ARP COMMANDS....................................................................................................................................................177
ROUTING TABLE COMMANDS..............................................................................................................................182
MAC NOTIFICATION COMMANDS ........................................................................................................................188
ACCESS AUTHENTICATION CONTROL COMMANDS ........................................................................................192
SSH COMMANDS....................................................................................................................................................212
SSL COMMANDS ....................................................................................................................................................219
JUMBO FRAME COMMANDS ................................................................................................................................225
D-LINK SINGLE IP MANAGEMENT COMMANDS.................................................................................................227
COMMAND HISTORY LIST.....................................................................................................................................237
MODIFY BANNER AND PROMPT COMMANDS ...................................................................................................240
TECHNICAL SPECIFICATIONS..............................................................................................................................243
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
1
I
NTRODUCTION
The DGS-3400 Series is a member of the D-Link xStack switch family. xStack is a complete family of stackable devices that ranges from edge 10/100Mbps switches to core Gigabit switches. xStack provides unsurpassed performance, fault tolerance, scalable flexibility, robust security, standard-based interoperability and an impressive support for 10Gigabit technology to futureproof departmental and enterprise network deployments with an easy migration path.
The Switch can be managed through the Switch’s serial port, Telnet, or the Web-based management agent. The Command Line
Interface (CLI) can be used to configure and manage the Switch via the serial port or Telnet interfaces.
This manual provides a reference for all of the commands contained in the CLI. Configuration and management of the Switch via the Web-based management agent is discussed in the Manual. For detailed information on installing hardware please refer also to the Manual.
Accessing the Switch via the Serial Port
The Switch’s serial port’s default settings are as follows:
• 115200 baud
• no parity
• 8 data bits
• 1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a serial port configured as above is then connected to the Switch’s serial port via an RS-232 DB-9 cable.
With the serial port properly connected to a management computer, the following screen should be visible. If this screen does not appear, try pressing Ctrl+r o refresh the console screen.
Figure 1-1. Initial CLI screen
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor − DGS-3400:4# .
This is the command line where all commands are input.
Setting the Switch’s IP Address
Each Switch must be assigned its own IP Address, which is used for communication with an SNMP network manager or other
TCP/IP application (for example BOOTP, TFTP). The Switch’s default IP address is 10.90.90.90. You can change the default
Switch IP address to meet the specification of your networking address scheme.
The Switch is also assigned a unique MAC address by the factory. This MAC address cannot be changed, and can be found on the initial boot console screen – shown below.
1
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Figure 1-2. Boot Screen
The Switch’s MAC address can also be found in the Web management program on the Switch Information (Basic Settings) window on the Configuration menu.
The IP address for the Switch must be set before it can be managed with the Web-based manager. The Switch IP address can be automatically set using BOOTP or DHCP protocols, in which case the actual address assigned to the Switch must be known.
The IP address may be set using the Command Line Interface (CLI) over the console serial port as follows:
1. Starting at the command line prompt, enter the commands config ipif System ipaddress xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy
. Where the x ’s represent the IP address to be assigned to the IP interface named
System and the y ’s represent the corresponding subnet mask.
2. Alternatively, you can enter config ipif System ipaddress xxx.xxx.xxx.xxx/z . Where the x ’s represent the IP address to be assigned to the IP interface named System and the z represents the corresponding number of subnets in CIDR notation.
The IP interface named System on the Switch can be assigned an IP address and subnet mask which can then be used to connect a management station to the Switch’s Telnet or Web-based management agent.
Figure 1-3. Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.53.13.201 with a subnet mask of 255.0.0.0. The system message Success indicates that the command was executed successfully. The Switch can now be configured and managed via
Telnet, SNMP MIB browser and the CLI or via the Web-based management agent using the above IP address to connect to the
Switch.
2
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
NOTE: The DGS-3400 Series of switches have the capability to be configured for an IP address of 0.0.0.0, or, in essence, have no IP address. This function maybe used to disable Layer 3 functions of the
Switch. When the IP address is set to 0.0.0.0 (invalid IP address), the
Switch can only be managed through the console port or SIM. Other management applications such as Telnet, Web-based and SNMP cannot be used to manage the Switch when its IP address is 0.0.0.0.
3
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
2
U
SING THE
C
ONSOLE
CLI
The Switch supports a console management interface that allows the user to connect to the Switch’s management agent via a serial port and a terminal or a computer running a terminal emulation program. The console can also be used over the network using the
TCP/IP Telnet protocol. The console program can be used to configure the Switch to use an SNMP-based network management software over the network.
This chapter describes how to use the console interface to access the Switch, change its settings, and monitor its operation.
Note : Switch configuration settings are saved to non-volatile RAM using the save command. The current configuration will then be retained in the Switch’s NV-RAM, and reloaded when the Switch is rebooted. If the Switch is rebooted without using the save command, the last configuration saved to
NV-RAM will be loaded.
Connecting to the Switch
The console interface is used by connecting the Switch to a VT100-compatible terminal or a computer running an ordinary terminal emulator program (e.g., the HyperTerminal program included with the Windows operating system) using an RS-232C serial cable. Your terminal parameters will need to be set to :
• VT-100 compatible
• 115200 baud
• 8 data bits
• No parity
• One stop bit
• No flow control
You can also access the same functions over a Telnet interface. Once you have set an IP address for your Switch, you can use a
Telnet program (in VT-100 compatible terminal mode) to access and control the Switch. All of the screens are identical, whether accessed from the console port or from a Telnet interface.
After the Switch reboots and you have logged in, the console looks like this:
Figure 2- 1. Initial Console Screen after logging in
Commands are entered at the command prompt, DGS-3400:4# .
There are a number of helpful features included in the CLI. Entering the ?
command will display a list of all of the top-level commands.
4
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Figure 2- 2. The ? Command
When you enter a command without its required parameters, the CLI will prompt you with a Next possible completions: message.
Figure 2- 3. Example Command Parameter Help
In this case, the command config account was entered with the parameter <username> . The CLI will then prompt you to enter the <username> with the message, Next possible completions: . Every command in the CLI has this feature, and complex commands have several layers of parameter prompting.
In addition, after typing any given command plus one space, you can see all of the next possible sub-commands, in sequential order, by repeatedly pressing the Tab key.
To re-enter the previous command at the command prompt, press the up arrow cursor key. The previous command will appear at the command prompt.
5
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Figure 2- 4. Using the Up Arrow to Re-enter a Command
In the above example, the command config account was entered without the required parameter <username> , the CLI returned the Next possible completions: <username> prompt. The up arrow cursor control key was pressed to re-enter the previous command ( config account ) at the command prompt. Now the appropriate username can be entered and the config account command re-executed.
All commands in the CLI function in this way. In addition, the syntax of the help prompts are the same as presented in this manual
− angle brackets < > indicate a numerical value or character string, braces { } indicate optional parameters or a choice of parameters, and brackets [ ] indicate required parameters.
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the Available commands: prompt.
Figure 2- 5. Available Commands
The top-level commands consist of commands such as show or config . Most of these commands require one or more parameters to narrow the top-level command. This is equivalent to show what?
or config what? Where the what? is the next parameter.
For example, if you enter the show command with no additional parameters, the CLI will then display all of the possible next parameters.
6
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Figure 2- 6. Next possible completions: Show Command
In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt, the up arrow was used to re-enter the show command, followed by the account parameter. The CLI then displays the user accounts configured on the Switch.
7
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
3
C
OMMAND
S
YNTAX
The following symbols are used to describe how command entries are made and values and arguments are specified in this manual. The online help contained in the CLI and available through the console interface uses the same syntax.
Note: All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted function that changes text case.
<angle brackets>
Purpose
Syntax
Description
Example
Command
Encloses a variable or value that must be specified. create account [admin | user] <username 15>
In the above syntax example, you must supply a username in the
<username> space. Do not type the angle brackets. create account admin newadmin1
[square brackets]
Purpose
Syntax
Description
Example
Command
Encloses a required value or set of required arguments. One value or argument can be specified. create account [admin | user] <username 15>
In the above syntax example, you must specify either an admin or a user level account to be created. Do not type the square brackets. create account user newuser1
| vertical bar
Purpose
Syntax
Description
Example
Command
Separates two or more mutually exclusive items in a list, one of which must be entered. create account [admin | user] <username 15>
In the above syntax example, you must specify either admin, or user . Do not type the backslash. show snmp community
8
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
{braces}
Purpose
Syntax
Description
Example command
Encloses an optional value or set of optional arguments. reset {[config | system]}
In the above syntax example, you have the option to specify config or system . It is not necessary to specify either optional value, however the effect of the system reset is dependent on which, if any, value is specified. Therefore, with this example there are three possible outcomes of performing a system reset. See the following chapter, Basic Commands for more details about the reset command. reset config
Line Editing Key Usage
Delete
Backspace
Insert or Ctrl+R
Left Arrow
Right Arrow
Up Arrow
Down Arrow
Tab
Deletes the character under the cursor and then shifts the remaining characters in the line to the left.
Deletes the character to the left of the cursor and then shifts the remaining characters in the line to the left.
Toggle on and off. When toggled on, inserts text and shifts previous text to the right.
Moves the cursor to the left.
Moves the cursor to the right.
Repeats the previously entered command. Each time the up arrow is pressed, the command previous to that displayed appears. This way it is possible to review the command history for the current session. Use the down arrow to progress sequentially forward through the command history list.
The down arrow will display the next command in the command history entered in the current session. This displays each command sequentially as it was entered. Use the up arrow to review previous commands.
Shifts the cursor to the next field to the left.
ESC n p q
Multiple Page Display Control Keys
Space Displays the next page.
CTRL+c r a
Enter
Stops the display of remaining pages when multiple pages are to be displayed.
Stops the display of remaining pages when multiple pages are to be displayed.
Displays the next page.
Displays the previous page.
Stops the display of remaining pages when multiple pages are to be displayed.
Refreshes the pages currently displayed.
Displays the remaining pages without pausing between pages.
Displays the next line or table entry.
9
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
4
B
ASIC
S
WITCH
C
OMMANDS
The basic switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create account config account show account delete account show module_info show device_status
[admin | user] <username 15>
<username>
<username> show session show switch show serial_port config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] auto_logout [never | 2_minutes | 5_minutes
| 10_minutes | 15_minutes]} enable clipaging disable clipaging enable telnet disable telnet
<tcp_port_number 1-65535> enable web disable web
<tcp_port_number 1-65535> save {[config <config_id 1-2> | log | all]} reboot reset {[config | system]} login logout
Each command is listed, in detail, in the following sections.
create account
Purpose
Syntax
Description
Parameters
Restrictions
Used to create user accounts. create [admin | user] <username 15>
The create account command is used to create user accounts that consist of a username of 1 to 15 characters and a password of 0 to
15 characters. Up to 8 user accounts can be created. admin <username 15> user <username 15>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
10
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To create an administrator-level user account with the username “dlink”.
DGS-3400:4#create account admin dlink
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3400:4#
config account
Purpose
Syntax
Description
Parameters
Restrictions
Used to configure user accounts config account <username>
The config account command configures a user account that has been created using the create account command.
<username>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
Example usage:
To configure the user password of “dlink” account:
DGS-3400:4#config account dlink
Command: config account dlink
Enter a old password:****
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3400:4#
show account
Purpose
Syntax
Used to display user accounts show account
Description Displays all user accounts created on the Switch. Up to 8 user accounts can exist at one time.
Parameters None.
Example usage:
To display the accounts that have been created:
11
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show account
Command: show account
Current Accounts:
Username Access Level
--------------- ------------
User101 user
Administrator Admin
DGS-3400:4#
delete account
Purpose
Syntax
Description
Parameters
Restrictions
Used to delete an existing user account. delete account <username>
The delete account command deletes a user account that has been created using the create account command.
<username>
Only Administrator-level users can issue this command.
Example usage:
To delete the user account “System”:
DGS-3400:4#delete account System
Command: delete account System
Success.
DGS-3400:4#
show module_info
Purpose
Syntax
Used to display information about installed modules. show module_info
Description Displays information about optional modules that may be installed on the Switch.
Parameters None.
Example usage:
To display information about installed modules:
DGS-3400:4# show module_info
Command: show module_info
ID Module Name Rev. Serial Description
No.
-- ------------- ---- ---------- --------------------------------
1 DEM-410X A0 PA5A5A5A5 1 Port XFP Module
2 DEM-410X A0 PA5A5A5A5 1 Port XFP Module
3 - - - -
DGS-3400:4#
12
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show device_status
Purpose
Syntax
Description
Used to display current status of fans and power or power supplies. show device_status
Displays information on the status of system fans and power supplies.
Parameters None.
Restrictions None
Example usage:
To display status of fans and power supply:
DGS-3400:4#show device_status
Command: show device_status
Internal Power External power Side Fan Back Fan
-------------- -------------- -------- ----------
Active Ready OK Fail
DGS-3400:4#
show session
Purpose
Syntax
Description
Parameters
Restrictions
Used to display a list of currently logged-in users. show session
This command displays a list of all the users that are logged-in at the time the command is issued.
None
Only Administrator-level users can issue this command.
Example usage:
To display the way that the users logged in:
DGS-3427:4#show session
Command: show session
ID Live Time From Level Name
--- ------------ ------------ ----- ---------------
8 0:8:48.860 Serial Port 4 Anonymous
Total Entries: 1
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show switch
Purpose
Syntax
Description
Parameters
Restrictions
Used to display general information about the Switch. show switch
This command displays information about the Switch.
None.
None.
Example usage:
13
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To display the Switch’s information:
DGS-3400:4#show switch
Command: show switch
Device Type : DGS-3427 Gigabit Ethernet Switch
MAC Address : 00-80-C8-34-27-00
IP Address : 10.34.27.100 (Manual)
VLAN Name : default
Subnet Mask : 255.0.0.0
Default Gateway : 0.0.0.0
Boot PROM Version : Build 1.20-B13
Firmware Version : Build 1.00-B14
Hardware Version : 0A1
System Name : DGS-3427
System Location : BR5-49
System Contact : Junior Sample
Spanning Tree : Disabled
GVRP : Disabled
IGMP Snooping : Disabled
MLD Snooping : Disabled
TELNET : Enabled (TCP 23)
WEB : Enabled (TCP 80)
RMON : Disabled
SSL status : Disabled
SSH status : Disabled
802.1x : Disabled
Jumbo Frame : Off
Clipaging : Enabled
MAC Notification : Disabled
Port Mirror : Disabled
SNTP : Disabled
HOL Prevention State : Enabled
Syslog Global State : Disabled
Single IP Management : Disabled
Dual Image : Supported
DGS-3400:4#
show serial_port
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the current serial port settings. show serial_port
This command displays the current serial port settings.
None.
None
Example usage:
To display the serial port setting:
DGS-3427:4#show serial_port
Command: show serial_port
Baud Rate : 115200
Data Bits : 8
Parity Bits : None
Stop Bits : 1
Auto-Logout : 10 mins
DGS-3427:4#
14
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config serial_port
Purpose Used to configure the serial port.
Syntax config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] | auto_logout [never | 2_minutes | 5_minutes | 10_minutes |
15_minutes]}
Description This command is used to configure the serial port’s baud rate and auto logout settings.
Parameters baud_rate [9600 | 19200 | 38400 | 115200] − The serial bit rate that will be used to communicate with the management host. There are four options:
9600, 19200, 38400, 115200. never − No time limit on the length of time the console can be open with no user input.
2_minutes − The console will log out the current user if there is no user input for 2 minutes.
5_minutes − The console will log out the current user if there is no user input for 5 minutes.
10_minutes − The console will log out the current user if there is no user input for 10 minutes.
15_minutes − The console will log out the current user if there is no user input for 15 minutes.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure baud rate:
DGS-3400:4#config serial_port baud_rate 115200
Command: config serial_port baud_rate 115200
Success.
DGS-3400:4#
enable clipaging
Purpose
Syntax
Description
Parameters
Restrictions
Used to pause the scrolling of the console screen when the show command displays more than one page. enable clipaging
This command is used when issuing the show command which causes the console screen to rapidly scroll through several pages.
This command will cause the console to pause at the end of each page. The default setting is enabled.
None.
Only administrator-level users can issue this command.
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
DGS-3400:4#enable clipaging
Command: enable clipaging
Success.
DGS-3400:4#
15
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
disable clipaging
Purpose
Syntax
Description
Parameters
Restrictions
Used to disable the pausing of the console screen scrolling at the end of each page when the show command displays more than one screen of information. disable clipaging
This command is used to disable the pausing of the console screen at the end of each page when the show command would display more than one screen of information.
None.
Only administrator-level users can issue this command.
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
DGS-3400:4#disable clipaging
Command: disable clipaging
Success.
DGS-3400:4#
enable telnet
Purpose
Syntax
Description
Parameters
Restrictions
Used to enable communication with and management of the Switch using the Telnet protocol. enable telnet <tcp_port_number 1-65535>
This command is used to enable the Telnet protocol on the Switch.
The user can specify the TCP or UDP port number the Switch will use to listen for Telnet requests.
<tcp_port_number 1-65535> − The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” TCP port for the Telnet protocol is 23.
Only administrator-level users can issue this command.
Example usage:
To enable Telnet and configure port number:
DGS-3400:4#enable telnet 23
Command: enable telnet 23
Success.
DGS-3400:4#
disable telnet
Purpose
Syntax
Description
Parameters
Restrictions
Used to disable the Telnet protocol on the Switch. disable telnet
This command is used to disable the Telnet protocol on the Switch.
None.
Only administrator-level users can issue this command.
16
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To disable the Telnet protocol on the Switch:
DGS-3400:4#disable telnet
Command: disable telnet
Success.
DGS-3400:4#
enable web
Purpose
Syntax
Description
Parameters
Restrictions
Used to enable the HTTP-based management software on the
Switch. enable web <tcp_port_number 1-65535>
This command is used to enable the Web-based management software on the Switch.
<tcp_port_number 1-65535> − The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” port for the Webbased management software is 80.
Only administrator-level users can issue this command.
Example usage:
To enable HTTP and configure port number:
DGS-3400:4#enable web 80
Command: enable web 80
Note: SSL will be disabled if web is enabled.
Success.
DGS-3400:4#
disable web
Purpose
Syntax
Description
Parameters
Restrictions
Used to disable the HTTP-based management software on the
Switch. disable web
This command disables the Web-based management software on the Switch.
None.
Only administrator-level users can issue this command.
Example usage:
To disable HTTP:
DGS-3400:4#disable web
Command: disable web
Success.
DGS-3400:4#
17
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
save
Purpose
Syntax
Description
Parameters
Used to save changes in the Switch’s configuration to non-volatile
RAM. save {[config <config_id 1-2> | log | all]}
This command is used to enter the current switch configuration into non-volatile RAM. The saved switch configuration will be loaded into the Switch’s memory each time the Switch is restarted. config <config_id 1-2> - Specifiy to save current settings to configuration file 1 or 2. log - Specifiy to save current Switch log to NV-RAM. all – Specifiy to save all configuration settings. If nothing is specified after “save”, the Switch will save all.
Only administrator-level users can issue this command. Restrictions
Example usage:
To save the Switch’s current configuration to non-volatile RAM:
DGS-3400:4#save
Command: save
Saving all configurations to NV-RAM... Done.
DGS-3400:4#
reboot
Purpose
Syntax
Description
Parameters
Restrictions
Used to restart the Switch. reboot
This command is used to restart the Switch.
None.
Only Administrator-level users can issue this command.
Example usage:
To restart the Switch:
DGS-3400:4#reboot
Command: reboot
Are you sure want to proceed with the system reboot? (y|n)
Please wait, the switch is rebooting...
18
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
reset
Purpose
Syntax
Description
Parameters
Restrictions
Used to reset the Switch to the factory default settings. reset {[config | system]}
This command is used to restore the Switch’s configuration to the default settings assigned from the factory. config − If the keyword ‘config’ is specified, all of the factory default settings are restored on the Switch including the IP address, user accounts, the switch history log and banner. The Switch will not save or reboot. system − If the keyword ‘system’ is specified all of the factory default settings are restored on the Switch. The Switch will save and reboot after the settings are changed to default. Rebooting will clear all entries in the Forwarding Data Base.
If no parameter is specified, the Switch’s current IP address, user accounts, the switch history log and banner are not changed. All other parameters are restored to the factory default settings. The
Switch will not save or reboot.
Only administrator-level users can issue this command.
Example usage:
To restore all of the Switch’s parameters to their default values:
DGS-3400:4#reset config
Command: reset config
Are you sure to proceed with system reset?(y/n)
Success.
DGS-3400:4#
login
Purpose
Syntax
Description
Parameters
Restrictions
Used to log in a user to the Switch’s console. login
This command is used to initiate the login procedure. The user will be prompted for a Username and Password.
None.
None.
Example usage:
To initiate the login procedure:
DGS-3400:4#login
Command: login
UserName:
19
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
logout
Purpose
Syntax
Description
Parameters
Restrictions
Used to log out a user from the Switch’s console. logout
This command terminates the current user’s session on the Switch’s console.
None.
None.
Example usage:
To terminate the current user’s console session:
DGS-3400:4#logout
20
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
5
S
WITCH
P
ORT
C
OMMANDS
The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config ports show ports
[<portlist> | all] {medium_type [fiber | copper]} {speed [auto | 10_half | 10_full | 100_half
| 100_full | 1000_full {[master | slave]}] | flow_control [enable | disable] | learning
[enable | disable] | state [enable | disable] | [description <desc 1-32> | clear_description]}
{<portlist>} {[description | err_disabled]}
Each command is listed, in detail, in the following sections.
config ports
Purpose Used to configure the Switch’s Ethernet port settings.
Syntax [<portlist> | all] {medium_type [fiber | copper]} {speed [auto | 10_half | 10_full | 100_half |
100_full | 1000_full {[master | slave]}] | flow_control [enable | disable] | learning [enable | disable] | state [enable | disable] | [description <desc 1-32> | clear_description]}
Description This command allows for the configuration of the Switch’s Ethernet ports. Only the ports listed in the <portlist> will be affected.
Parameters all − Configure all ports on the Switch.
<portlist> − Specifies a port or range of ports to be configured. medium_type [fiber | copper ] – This applies only to the Combo ports. If configuring the Combo ports this defines the type of tranport medium used. speed – Allows the user to adjust the speed for a port or range of ports. The user has a choice of the following:
• auto − Enables auto-negotiation for the specified range of ports.
• [10 | 100 | 1000] − Configures the speed in Mbps for the specified range of ports. Gigabit ports are statically set to 1000 and cannot be set to slower speeds.
• [half | full] − Configures the specified range of ports as either full-duplex or half-duplex.
• [master | slave] - The master setting (1000M/Full_M) will allow the port to advertise capabilities related to duplex, speed and physical layer type. The master setting will also determine the master and slave relationship between the two connected physical layers.
This relationship is necessary for establishing the timing control between the two physical layers. The timing control is set on a master physical layer by a local source. The slave setting (1000M/Full_S) uses loop timing, where the timing comes form a data stream received from the master. If one connection is set for 1000M/Full_M, the other side of the connection must be set for 1000M/Full_S. Any other configuration will result in a link down status for both ports. flow_control [enable | disable] – Enable or disable flow control for the specified ports. learning [enable | disable] − Enables or disables the MAC address learning on the specified range of ports. state [enable | disable] − Enables or disables the specified range of ports. description <desc 32> - Enter an alphanumeric string of no more than 32 characters to describe a selected port interface. clear_description - Enter this command to clear the port description of the selected port(s).
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the speed of port 3 to be 10 Mbps, full duplex, with learning and state enabled:
21
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config ports 1-3 speed 10_full learning enable state enable
Command: config ports 1-3 speed 10_full learning enable state enable
Success.
DGS-3400:4#
show ports
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the current configuration of a range of ports. show ports {<portlist>} {description | err_disabled}
This command is used to display the current configuration of a range of ports.
<portlist> − Specifies a port or range of ports to be displayed. description – Adding this parameter to the show ports command indicates that a previously entered port description will be included in the display. err_disabled – Use this to list disabled ports including connection status and reason for being disabled.
None.
Example usage:
To display the configuration of all ports on the switch:
DGS-3400:4#show ports
Command show ports:
Port Port Settings Connection Address
State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
------ -------- --------------------- --------------------- --------
1 Enabled Auto/Enabled Link Down Enabled
2 Enabled Auto/Enabled Link Down Enabled
3 Enabled Auto/Enabled Link Down Enabled
4 Enabled Auto/Enabled Link Down Enabled
5 Enabled Auto/Enabled Link Down Enabled
6 Enabled Auto/Enabled Link Down Enabled
7 Enabled Auto/Enabled Link Down Enabled
8 Enabled Auto/Enabled Link Down Enabled
9 Enabled Auto/Enabled Link Down Enabled
10 Enabled Auto/Enabled 100M/Full/None Enabled
11 Enabled Auto/Enabled Link Down Enabled
12 Enabled Auto/Enabled Link Down Enabled
13 Enabled Auto/Disabled Link Down Enabled
14 Enabled Auto/Disabled Link Down Enabled
15 Enabled Auto/Disabled Link Down Enabled
16 Enabled Auto/Disabled Link Down Enabled
17 Enabled Auto/Disabled Link Down Enabled
18 Enabled Auto/Disabled Link Down Enabled
19 Enabled Auto/Disabled Link Down Enabled
20 Enabled Auto/Disabled Link Down Enabled
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
22
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To display the configuration of all ports on a standalone switch, with description:
DGS-3400:4#show ports description
Command: show ports description
Port Port Settings Connection Address
State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
------ -------- --------------------- --------------------- --------
1 Enabled Auto/Disabled Link Down Enabled
Description: dads1
2 Enabled Auto/Disabled Link Down Enabled
Description:
3 Enabled Auto/Disabled Link Down Enabled
Description:
4 Enabled Auto/Disabled Link Down Enabled
Description:
5 Enabled Auto/Disabled Link Down Enabled
Description:
6 Enabled Auto/Disabled Link Down Enabled
Description:
7 Enabled Auto/Disabled Link Down Enabled
Description:
8 Enabled Auto/Disabled Link Down Enabled
Description:
9 Enabled Auto/Disabled Link Down Enabled
Description:
10 Enabled Auto/Disabled Link Down Enabled
Description:
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
23
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
6
P
ORT
S
ECURITY
C
OMMANDS
The Switch’s port security commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config port_security ports [<portlist> | all] {admin_state [enable| disable] | max_learning_addr
<max_lock_no 0-16> | lock_address_mode [Permanent |
DeleteOnTimeout | DeleteOnReset]} delete port_security entry vlan name <vlan_name 32> port <port> mac_address <macaddr> clear port_security_entry port <portlist> show port_security {ports <portlist>}
Each command is listed, in detail, in the following sections.
config port_security ports
Purpose
Syntax
Used to configure port security settings. config port_security ports [<portlist> | all] {admin_state [enable| disable] | max_learning_addr <max_lock_no 0-16> | lock_address_mode [Permanent | DeleteOnTimeout |
DeleteOnReset]}
Description This command allows for the configuration of the port security feature.
Only the ports listed in the <portlist> are affected.
Parameters portlist − Specifies a port or range of ports to be configured. all − Configure port security for all ports on the Switch. admin_state [enable | disable] – Enable or disable port security for the listed ports. max_learning_addr <max_lock_no 0-16> - Use this to limit the number of
MAC addresses dynamically listed in the FDB for the ports. lock_address_mode [Permanent | DeleteOnTimout | DeleteOnReset] –
Indicates the method of locking addresses. The user has three choices:
Permanent – The locked addresses will not age out after the aging timer expires.
DeleteOnTimeout – The locked addresses will age out after the aging timer expires.
DeleteOnReset – The locked addresses will not age out until the
Switch has been reset.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the port security:
DGS-3400:4#config port_security ports 1-5 admin_state enable max_learning_addr 5 lock_address_mode DeleteOnReset
Command: config port_security ports 1-5 admin_state enable max_learning_addr 5 lock_address_mode DeleteOnReset
Success.
DGS-3400:4#
24
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete port_security_entry
Purpose
Syntax
Description
Parameters
Restrictions
Used to delete a port security entry by MAC address, port number and VLAN ID. delete port_security_entry_vlan_name <vlan_name 32> port <port> mac_address <macaddr>
This command is used to delete a single, previously learned port security entry by port, VLAN name, and MAC address. vlan name <vlan_name 32> - Enter the corresponding vlan name of the port which the user wishes to delete. port <port> - Enter the port number which has learned the previously entered
MAC address. mac_address <macaddr> - Enter the corresponding MAC address, previously learned by the port, to delete.
Only administrator-level users can issue this command.
Example usage:
To delete a port security entry:
DGS-3400:4#delete port_security_entry vlan_name default port 6 mac_address 00-01-30-10-2C-C7
Command: delete port_security_entry vlan_name default port 6 mac_address 00-01-30-10-2C-C7
Success.
DGS-3400:4#
clear port_security_entry
Purpose
Syntax
Description
Parameters
Restrictions
Used to clear MAC address entries learned from a specified port for the port security function. clear port_security_entry ports <portlist>
This command is used to clear MAC address entries which were learned by the
Switch by a specified port. This command only relates to the port security function.
<portlist> − Specifies a port or port range to clear.
Only administrator-level users can issue this command.
Example usage:
To clear a port security entry by port:
DGS-3400:4# clear port_security_entry port 6
Command: clear port_security_entry port 6
Success.
DGS-3400:4#
25
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show port_security
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the current port security configuration. show port_security {ports <portlist>}
This command is used to display port security information of the
Switch’s ports. The information displayed includes port security, admin state, maximum number of learning address and lock mode.
<portlist> − Specifies a port or range of ports to be viewed.
None.
Example usage:
To display the port security configuration:
DGS-3400:4#show port_security ports 1-5
Command: show port_security ports 1-5
Port Admin State Max. Learning Addr. Lock Address Mode
---- ----------- ------------------- -----------------
1 Disabled 1 DeleteOnReset
2 Disabled 1 DeleteOnReset
3 Disabled 1 DeleteOnReset
4 Disabled 1 DeleteOnReset
5 Disabled 1 DeleteOnReset
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
26
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
7
N
ETWORK
M
ANAGEMENT
(SNMP) C
OMMANDS
The network management commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
The DGS-3400 Series supports the Simple Network Management Protocol (SNMP) versions 1, 2c, and 3. After enabling SNMP, you can specify which version of SNMP you want to use to monitor and control the Switch. three versions of SNMP vary in the level of security provided between the management station and the network device. The following table lists the security features of the three SNMP versions:
SNMP
Version
Authentication
Method
Description
String −
NoAuthNoPriv v2c Community −
NoAuthNoPriv v3 Username Username is used for authentication −
NoAuthNoPriv v3 v3
MD5 or SHA Authentication is based on the HMAC-MD5 or
HMAC-SHA algorithms − AuthNoPriv
MD5 DES or SHA DES Authentication is based on the HMAC-MD5 or
HMAC-SHA algorithms − AuthPriv.
DES 56-bit encryption is added based on the
CBC-DES (DES-56) standard
Command Parameters create snmp user delete snmp user show snmp user create snmp view delete snmp view show snmp view create snmp community delete snmp community show snmp community config snmp engineID show snmp engineID create snmp group delete snmp group show snmp groups
<username 32> <groupname 32> {encrypted [by_password auth [md5
<auth_password 8-16 > | sha <auth_password 8-20 >] priv [none | des
<priv_password 8-16>] | by_key auth [md5 <auth_key 32-32>| sha
<auth_key 40-40>] priv [none | des <priv_key 32-32>]]}
<username 32>
<view_name 32> <oid> view_type [included | excluded]
<view_name 32> [all | oid]
<view_name 32>
<community_string 32> view <view_name 32> [read_only | read_write]
<community_string 32>
<community_string 32>
<snmp_engineID 10-64>
<groupname 32> {v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv ]}
{read_view <view_name 32> | write_view <view_name 32> | notify_view
<view_name 32>}
<groupname 32>
27
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Command Parameters create snmp host delete snmp host
<ipaddr> {v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv]}
<auth_string 32>
<ipaddr> show snmp host create trusted_host delete trusted_host show trusted_host enable snmp traps enable snmp authenticate traps show snmp traps disable snmp traps disable snmp authenticate traps config snmp system_contact config snmp system_location config snmp system_name enable rmon disable rmon
<ipaddr>
<ipaddr>
<ipaddr>
<ipaddr>
<sw_contact>
<sw_location>
<sw_name>
Each command is listed, in detail, in the following sections.
create snmp user
Purpose
Syntax
Used to create a new SNMP user and adds the user to an SNMP group that is also created by this command. create snmp user <username 32> <groupname 32> {encrypted
[by_password auth [md5 <auth_password 8-16> | sha <auth_password 8-
20>] priv [none | des <priv_password 8-16>] | by_key auth [md5 <auth_key
32-32> | sha <auth_key 40-40>] priv [none | des <priv_key 32-32>]]}
Description The create snmp user command creates a new SNMP user and adds the user to an SNMP group that is also created by this command. SNMP ensures:
Message integrity − Ensures that packets have not been tampered with during transit.
Authentication − Determines if an SNMP message is from a valid source.
Encryption − Scrambles the contents of messages to prevent it from being viewed by an unauthorized source.
Parameters <username 32> − An alphanumeric name of up to 32 characters that will identify the new SNMP user.
<groupname 32> − An alphanumeric name of up to 32 characters that will identify the SNMP group the new SNMP user will be associated with. encrypted – Allows the user to choose a type of authorization for authentication using SNMP. The user may choose:
• by_password – Requires the SNMP user to enter a password for authentication and privacy. The password is defined by specifying the auth_password below. This method is recommended.
• by_key – Requires the SNMP user to enter a encryption key for authentication and privacy. The key is defined by specifying the key in hex form below. This method is not recommended. auth - The user may also choose the type of authentication algorithms used to authenticate the snmp user. The choices are:
28
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create snmp user
md5 − Specifies that the HMAC-MD5-96 authentication level will be used. md5 may be utilized by entering one of the following:
• <auth password 8-16> - An alphanumeric sting of between 8 and 16 characters that will be used to authorize the agent to receive packets for the host.
• <auth_key 32-32> - Enter an alphanumeric sting of exactly 32 characters, in hex form, to define the key that will be used to authorize the agent to receive packets for the host. sha − Specifies that the HMAC-SHA-96 authentication level will be used.
• <auth password 8-20> - An alphanumeric sting of between 8 and 20 characters that will be used to authorize the agent to receive packets for the host.
• <auth_key 40-40> - Enter an alphanumeric sting of exactly 40 characters, in hex form, to define the key that will be used to authorize the agent to receive packets for. priv – Adding the priv (privacy) parameter will allow for encryption in addition to the authentication algorithm for higher security. The user may choose:
• des – Adding this parameter will allow for a 56-bit encryption to be added using the DES-56 standard using:
<priv_password 8-16> - An alphanumeric string of between 8 and 16 characters that will be used to encrypt the contents of messages the host sends to the agent.
<priv_key 32-32> - Enter an alphanumeric key string of exactly 32 characters, in hex form, that will be used to encrypt the contents of messages the host sends to the agent.
• none – Adding this parameter will add no encryption.
Restrictions Only administrator-level users can issue this command.
Example usage:
To create an SNMP user on the Switch:
DGS-3400:4#create snmp user dlink default encrypted by_password auth md5 canadian priv none
Command: create snmp user dlink default encrypted by_password auth md5 canadian priv none
Success.
DGS-3400:4#
delete snmp user
Purpose
Syntax
Description
Parameters
Used to remove an SNMP user from an SNMP group and also to delete the associated SNMP group. delete snmp user <username 32>
The delete snmp user command removes an SNMP user from its
SNMP group and then deletes the associated SNMP group.
<username 32> − An alphanumeric string of up to 32 characters that identifies the SNMP user that will be deleted.
Only administrator-level users can issue this command. Restrictions
Example usage:
To delete a previously entered SNMP user on the Switch:
29
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#delete snmp user dlink
Command: delete snmp user dlink
Success.
DGS-3400:4#
show snmp user
Purpose Used to display information about each SNMP username in the
SNMP group username table. show snmp user Syntax
Description The command displays information about each
SNMP username in the SNMP group username table.
Parameters None.
Example usage:
To display the SNMP users currently configured on the Switch:
DGS-3400:4#show snmp user
Command: show snmp user
Username Group Name SNMP Version Auth-Protocol PrivProtocol
--------------- -------------- ------------ ----------------- ----------------- initial initial V3 None None
Total Entries: 1
DGS-3400:4#
create snmp view
Purpose
Syntax
Used to assign views to community strings to limit which MIB objects and SNMP manager can access. create snmp view <view_name 32> <oid> view_type [included | excluded]
Description The command assigns views to community strings to limit which MIB objects an SNMP manager can access.
Parameters <view_name 32> − An alphanumeric string of up to 32 characters that identifies the SNMP view that will be created.
<oid> − The object ID that identifies an object tree (MIB tree) that will be included or excluded from access by an SNMP manager. view type – Sets the view type to be:
• included − Include this object in the list of objects that an
SNMP manager can access.
• excluded − Exclude this object from the list of objects that an SNMP manager can access.
Example usage:
To create an SNMP view:
30
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create snmp view dlinkview 1.3.6 view_type included
Command: create snmp view dlinkview 1.3.6 view_type included
Success.
DGS-3400:4#
delete snmp view
Purpose Used to remove an SNMP view entry previously created on the
Switch. delete snmp view <view_name 32> [all | <oid>] Syntax
Description The command is used to remove an SNMP view previously created on the Switch.
Parameters <view_name 32> − An alphanumeric string of up to 32 characters that identifies the SNMP view to be deleted. all − Specifies that all of the SNMP views on the Switch will be deleted.
<oid> − The object ID that identifies an object tree (MIB tree) that will be deleted from the Switch.
Example usage:
To delete a previously configured SNMP view from the Switch:
DGS-3400:4#delete snmp view dlinkview all
Command: delete snmp view dlinkview all
Success.
DGS-3400:4#
show snmp view
Purpose Used to display an SNMP view previously created on the Switch.
Syntax show snmp view {<view_name 32>}
Description The command displays an SNMP view previously created on the Switch.
Parameters <view_name 32> − An alphanumeric string of up to 32 characters that identifies the SNMP view that will be displayed.
Example usage:
To display SNMP view configuration:
31
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show snmp view
Command: show snmp view
Vacm View Table Settings
View Name Subtree View Type
-------------------- ------------------------- ----------
ReadView 1 Included
WriteView 1 Included
NotifyView 1.3.6 Included
restricted 1.3.6.1.2.1.1 Included
restricted 1.3.6.1.2.1.11 Included
restricted 1.3.6.1.6.3.10.2.1 Included
restricted 1.3.6.1.6.3.11.2.1 Included
restricted 1.3.6.1.6.3.15.1.1 Included
CommunityView 1 Included
CommunityView 1.3.6.1.6.3 Excluded
CommunityView 1.3.6.1.6.3.1 Included
Total Entries: 11
DGS-3400:4#
create snmp community
Purpose
Syntax
Used to create an SNMP community string to define the relationship between the SNMP manager and an agent. The community string acts like a password to permit access to the agent on the Switch. One or more of the following characteristics can be associated with the community string:
An Access List of IP addresses of SNMP managers that are permitted to use the community string to gain access to the Switch’s SNMP agent.
An MIB view that defines the subset of all MIB objects that will be accessible to the SNMP community. read_write or read_only level permission for the MIB objects accessible to the
SNMP community. create snmp community <community_string 32> view <view_name 32>
[read_only | read_write]
Description The create snmp community command is used to create an SNMP community string and to assign access-limiting characteristics to this community string.
Parameters <community_string 32> − An alphanumeric string of up to 32 characters that is used to identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s
SNMP agent.
<view_name 32> − An alphanumeric string of up to 32 characters that is used to identify the group of MIB objects that a remote SNMP manager is allowed to access on the Switch. read_only − Specifies that SNMP community members using the community string created with this command can only read the contents of the MIBs on the
Switch. read_write − Specifies that SNMP community members using the community string created with this command can read from and write to the contents of the
MIBs on the Switch.
Example usage:
To create the SNMP community string “dlink:”
32
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create snmp community dlink view ReadView read_write
Command: create snmp community dlink view ReadView read_write
Success.
DGS-3400:4#
delete snmp community
Purpose
Syntax
Used to remove a specific SNMP community string from the Switch. delete snmp community <community_string 32>
Description The command is used to remove a previously defined
SNMP community string from the Switch.
Parameters <community_string 32> − An alphanumeric string of up to 32 characters that is used to identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s
SNMP agent.
Example usage:
To delete the SNMP community string “dlink:”
DGS-3400:4#delete snmp community dlink
Command: delete snmp community dlink
Success.
DGS-3400:4#
show snmp community
Purpose Used to display SNMP community strings configured on the Switch.
Syntax show snmp community <community_string 32>
Description The command is used to display SNMP community strings that are configured on the Switch.
Parameters <community_string 32> − An alphanumeric string of up to 32 characters that is used to identify members of an SNMP community. This string is used like a password to give remote SNMP managers access to MIB objects in the Switch’s
SNMP agent.
Restrictions None.
Example usage:
To display the currently entered SNMP community strings:
33
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show snmp community
Command: show snmp community
SNMP Community Table
Community Name View Name Access Right
-------------------------------- ------------------------------- ------------
dlink ReadView read_write
private CommunityView read_write
public CommunityView read_only
Total Entries: 3
DGS-3400:4#
config snmp engineID
Purpose
Syntax
Used to configure a name for the SNMP engine on the Switch. config snmp engineID <snmp_engineID 10-64>
Description The command configures a name for the
SNMP engine on the Switch.
Parameters <snmp_engineID 10-64> − An alphanumeric string that will be used to identify the SNMP engine on the Switch.
Example usage:
To give the SNMP agent on the Switch the name “0035636666”:
DGS-3400:4#config snmp engineID 0035636666
Command: config snmp engineID 0035636666
Success.
DGS-3400:4#
show snmp engineID
Purpose Used to display the identification of the SNMP engine on the Switch.
Syntax show snmp engineID
Description The command displays the identification of the SNMP engine on the Switch.
Parameters None.
Example usage:
To display the current name of the SNMP engine on the Switch:
DGS-3400:4#show snmp engineID
Command: show snmp engineID
SNMP Engine ID : 0035636666
DGS-3400:4#
34
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create snmp group
Purpose
Syntax
Description
Parameters
Restrictions
Used to create a new SNMP group, or a table that maps SNMP users to
SNMP views. create snmp group <groupname 32> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv]] {read_view <view_name 32> | write_view
<view_name 32> | notify_view <view_name 32>}
The create snmp group command creates a new SNMP group, or a table that maps SNMP users to SNMP views.
<groupname 32> − An alphanumeric name of up to 32 characters that will identify the SNMP group the new SNMP user will be associated with. v1 – Specifies that SNMP version 1 will be used. The Simple Network
Management Protocol (SNMP), version 1, is a network management protocol that provides a means to monitor and control network devices. v2c – Specifies that SNMP version 2c will be used. The SNMP v2c supports both centralized and distributed network management strategies.
It includes improvements in the Structure of Management Information (SMI) and adds some security features. v3 – Specifies that the SNMP version 3 will be used. SNMP v3 provides secure access to devices through a combination of authentication and encrypting packets over the network. SNMP v3 adds:
Message integrity − Ensures that packets have not been tampered with during transit.
Authentication − Determines if an SNMP message is from a valid source.
Encryption − Scrambles the contents of messages to prevent it being viewed by an unauthorized source.
noauth_nopriv − Specifies that there will be no authorization and no encryption of packets sent between the Switch and a remote SNMP manager. auth_nopriv − Specifies that authorization will be required, but there will be no encryption of packets sent between the Switch and a remote SNMP manager. auth_priv − Specifies that authorization will be required, and that packets sent between the Switch and a remote SNMP manger will be encrypted. read_view – Specifies that the SNMP group being created can request
SNMP messages. write_view – Specifies that the SNMP group being created has write privileges. notify_view − Specifies that the SNMP group being created can receive
SNMP trap messages generated by the Switch’s SNMP agent.
<view_name 32> − An alphanumeric string of up to 32 characters that is used to identify the group of MIB objects that a remote SNMP manager is allowed to access on the Switch.
Only administrator-level users can issue this command.
Example usage:
To create an SNMP group named “sg1:”
DGS-3400:4#create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1 notify_view v1
Command: create snmp group sg1 v3 noauth_nopriv read_view v1 write_view v1 notify_view v1
Success.
DGS-3400:4#
35
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete snmp group
Purpose
Syntax
Description
Parameters
Restrictions
Used to remove an SNMP group from the Switch. delete snmp group <groupname 32>
The delete snmp group command is used to remove an SNMP group from the Switch.
<groupname 32> − An alphanumeric name of up to 32 characters that will identify the SNMP group the new SNMP user will be associated with.
Only administrator-level users can issue this command.
Example usage:
To delete the SNMP group named “sg1”.
DGS-3400:4#delete snmp group sg1
Command: delete snmp group sg1
Success.
DGS-3400:4#
show snmp groups
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the group-names of SNMP groups currently configured on the Switch. The security model, level, and status of each group are also displayed. show snmp groups
The show snmp groups command displays the group-names of SNMP groups currently configured on the Switch. The security model, level, and status of each group are also displayed.
None.
Only administrator-level users can issue this command.
Example usage:
To display the currently configured SNMP groups on the Switch:
DGS-3400:4#show snmp groups
Command: show snmp groups
Vacm Access Table Settings
Group Name : initial
ReadView Name : restricted
WriteView Name :
Notify View Name : restricted
Security Model : SNMPv3
Security Level : NoAuthNoPriv
Group Name : public
ReadView Name : CommunityView
WriteView Name :
Notify View Name : CommunityView
Security Model : SNMPv1
Security Level : NoAuthNoPriv
Group Name : public
36
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
ReadView Name : CommunityView
WriteView Name :
Notify View Name : CommunityView
Security Model : SNMPv2
Security Level : NoAuthNoPriv
Group Name : private
ReadView Name : CommunityView
WriteView Name : CommunityView
Notify View Name : CommunityView
Security Model : SNMPv1
Security Level : NoAuthNoPriv
Group Name : private
ReadView Name : CommunityView
WriteView Name : CommunityView
Notify View Name : CommunityView
Security Model : SNMPv2
Security Level : NoAuthNoPriv
Group Name : ReadGroup
ReadView Name : CommunityView
WriteView Name :
Notify View Name : CommunityView
Security Model : SNMPv1
Security Level : NoAuthNoPriv
Group Name : ReadGroup
ReadView Name : CommunityView
WriteView Name :
Notify View Name : CommunityView
Security Model : SNMPv2
Security Level : NoAuthNoPriv
Group Name : WriteGroup
ReadView Name : CommunityView
WriteView Name : CommunityView
Notify View Name : CommunityView
Security Model : SNMPv1
Security Level : NoAuthNoPriv
Group Name : WriteGroup
ReadView Name : CommunityView
WriteView Name : CommunityView
Notify View Name : CommunityView
Security Model : SNMPv2
Security Level : NoAuthNoPriv
Total Entries: 9
DGS-3400:4#
37
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create snmp host
Purpose
Syntax
Used to create a recipient of SNMP traps generated by the Switch’s
SNMP agent. create snmp host <ipaddr> [v1 | v2c | v3 [noauth_nopriv | auth_nopriv | auth_priv] <auth_string 32>]
Description The command creates a recipient of SNMP traps generated by the Switch’s SNMP agent.
Parameters <ipaddr> − The IP address of the remote management station that will serve as the SNMP host for the Switch. v1 – Specifies that SNMP version 1 will be used. The Simple Network
Management Protocol (SNMP), version 1, is a network management protocol that provides a means to monitor and control network devices. v2c – Specifies that SNMP version 2c will be used. The SNMP v2c supports both centralized and distributed network management strategies. It includes improvements in the Structure of Management
Information (SMI) and adds some security features. v3 – Specifies that the SNMP version 3 will be used. SNMP v3 provides secure access to devices through a combination of authentication and encrypting packets over the network. SNMP v3 adds:
• Message integrity − ensures that packets have not been tampered with during transit.
• Authentication − determines if an SNMP message is from a valid source.
• Encryption − scrambles the contents of messages to prevent it being viewed by an unauthorized source. noauth_nopriv − Specifies that there will be no authorization and no encryption of packets sent between the Switch and a remote SNMP manager. auth_nopriv − Specifies that authorization will be required, but there will be no encryption of packets sent between the Switch and a remote
SNMP manager. auth_priv − Specifies that authorization will be required, and that packets sent between the Switch and a remote SNMP manger will be encrypted.
<auth_sting 32> − An alphanumeric string used to authorize a remote
SNMP manager to access the Switch’s SNMP agent.
Example usage:
To create an SNMP host to receive SNMP messages:
DGS-3400:4#create snmp host 10.48.74.100 v3 auth_priv public
Command: create snmp host 10.48.74.100 v3 auth_priv public
Success.
DGS-3400:4#
38
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete snmp host
Purpose Used to remove a recipient of SNMP traps generated by the Switch’s
SNMP agent. delete snmp host <ipaddr> Syntax
Description The command deletes a recipient of SNMP traps generated by the Switch’s SNMP agent.
Parameters <ipaddr> − The IP address of a remote SNMP manager that will receive SNMP traps generated by the Switch’s SNMP agent.
Example usage:
To delete an SNMP host entry:
DGS-3400:4#delete snmp host 10.48.74.100
Command: delete snmp host 10.48.74.100
Success.
DGS-3400:4#
show snmp host
Purpose Used to display the recipient of SNMP traps generated by the Switch’s
SNMP agent. show snmp host {<ipaddr>} Syntax
Description The command is used to display the IP addresses and configuration information of remote SNMP managers that are designated as recipients of SNMP traps that are generated by the
Switch’s SNMP agent.
Parameters <ipaddr> − The IP address of a remote SNMP manager that will receive SNMP traps generated by the Switch’s SNMP agent.
Example usage:
To display the currently configured SNMP hosts on the Switch:
DGS-3400:4#show snmp host
Command: show snmp host
SNMP Host Table
Host IP Address SNMP Version Community Name/SNMPv3
User Name
--------------- --------------------- ------------------------------
10.48.76.23 V2c private
10.48.74.100 V3 authpriv public
Total Entries: 2
DGS-3400:4#
39
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create trusted_host
Purpose
Syntax
Used to create the trusted host. create trusted_host <ipaddr>
Description The command creates the trusted host. The Switch allows you to specify up to four IP addresses that are allowed to manage the
Switch via in-band SNMP or TELNET based management software. These
IP addresses must be members of the Management VLAN. If no IP addresses are specified, then there is nothing to prevent any IP address from accessing the Switch, provided the user knows the Username and
Password.
Parameters <ipaddr> − The IP address of the trusted host to be created.
Example usage:
To create the trusted host:
DGS-3400:4#create trusted_host 10.48.74.121
Command: create trusted_host 10.48.74.121
Success.
DGS-3400:4#
show trusted_host
Purpose
Syntax
Description
Parameters
Used to display a list of trusted hosts entered on the Switch using the create trusted_host command above. show trusted_host <ipaddr>
This command is used to display a list of trusted hosts entered on the Switch using the create trusted_host command above.
<ipaddr> − The IP address of the trusted host.
Example Usage:
To display the list of trust hosts:
DGS-3400:4#show trusted_host
Command: show trusted_host
Management Stations
IP Address
-----------------------
10.53.13.94
Total Entries: 1
DGS-3400:4#
40
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete trusted_host
Purpose
Syntax
Used to delete a trusted host entry made using the create trusted_host command above. delete trusted _host <ipaddr>
Description
Parameters
This command is used to delete a trusted host entry made using the create trusted_host command above.
<ipaddr> − The IP address of the trusted host.
Example Usage:
To delete a trusted host with an IP address 10.48.74.121:
DGS-3400:4#delete trusted_host 10.48.74.121
Command: delete trusted_host 10.48.74.121
Success.
DGS-3400:4#
enable snmp traps
Purpose
Syntax
Used to enable SNMP trap support. enable snmp traps
Description The command is used to enable SNMP trap support on the Switch.
Parameters None.
Example usage:
To enable SNMP trap support on the Switch:
DGS-3400:4#enable snmp traps
Command: enable snmp traps
Success.
DGS-3400:4#
enable snmp authenticate traps
Purpose
Syntax
Used to enable SNMP authentication trap support. enable snmp authenticate traps
Description This command is used to enable SNMP authentication trap support on the
Switch.
Parameters None.
Example Usage:
To turn on SNMP authentication trap support:
41
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#enable snmp authenticate traps
Command: enable snmp authenticate traps
Success.
DGS-3400:4#
show snmp traps
Purpose Used to show SNMP trap support on the Switch .
Syntax
Description show snmp traps
This command is used to view the SNMP trap support status currently configured on the Switch.
Parameters None.
Example usage:
To view the current SNMP trap support:
DGS-3400:4#show snmp traps
Command: show snmp traps
SNMP Traps : Enabled
Authenticate Traps : Enabled
DGS-3400:4#
disable snmp traps
Purpose
Syntax
Description
Used to disable SNMP trap support on the Switch. disable snmp traps
This command is used to disable SNMP trap support on the Switch.
Parameters None.
Example Usage:
To prevent SNMP traps from being sent from the Switch:
DGS-3400:4#disable snmp traps
Command: disable snmp traps
Success.
DGS-3400:4#
42
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
disable snmp authenticate traps
Purpose Used to disable SNMP authentication trap support.
Syntax
Description disable snmp authenticate traps
This command is used to disable SNMP authentication support on the Switch.
Parameters None.
Example Usage:
To disable the SNMP authentication trap support:
DGS-3400:4#disable snmp authenticate traps
Command: disable snmp authenticate traps
Success.
DGS-3400:4#
config snmp system_contact
Purpose
Syntax config snmp system_contact <sw_contact>
Description The command is used to enter the name and/or other information to identify a contact person who is responsible for the Switch. A maximum of 255 character can be used.
Parameters
Used to enter the name of a contact person who is responsible for the Switch.
<sw_contact> - A maximum of 255 characters is allowed. A NULL string is accepted if there is no contact.
Example usage:
To configure the Switch contact to “ M I S D e p a r t m e n t I I ”:
DGS-3400:4#config snmp system_contact MIS Department II
Command: config snmp system_contact MIS Department II
Success.
DGS-3400:4#
config snmp system_location
Purpose
Syntax
Used to enter a description of the location of the Switch. config snmp system_location <sw_location>
Description The command is used to enter a description of the location of the Switch. A maximum of 255 characters can be used.
Parameters <sw_location> - A maximum of 255 characters is allowed. A NULL string is accepted if there is no location desired.
Example usage:
43
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To configure the Switch location for “ H Q 5 F ”:
DGS-3400:4#config snmp system_location HQ 5F
Command: config snmp system_location HQ 5F
Success.
DGS-3400:4#
config snmp system_name
Purpose Used to configure the name for the Switch.
Syntax config snmp system_name <sw_name>
Description The command configures the name of the Switch.
Parameters <sw_name> - A maximum of 255 characters is allowed. A NULL string is accepted if no name is desired.
Example usage:
To configure the Switch name for “ D G S- 3400 Swit ch ”:
DGS-3400:4#config snmp system_name DGS-3400 Switch
Command: config snmp system_name DGS-3400 Switch
Success.
DGS-3400:4#
enable rmon
Purpose
Syntax
Description
Used to enable RMON on the Switch. enable rmon
This command is used, in conjunction with the disable rmon command below, to enable and disable remote monitoring (RMON) on the Switch.
Parameters None.
Example Usage:
To enable RMON:
DGS-3400:4#enable rmon
Command: enable rmon
Success.
DGS-3400:4#
44
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
disable rmon
Purpose Used to disable RMON on the Switch.
Syntax
Description disable rmon
This command is used, in conjunction with the enable rmon command above, to enable and disable remote monitoring (RMON) on the Switch.
Parameters None.
Example usage:
To disable RMON:
DGS-3400:4#disable rmon
Command: disable rmon
Success.
DGS-3400:4#
45
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
8
S
WITCH
U
TILITY
C
OMMANDS
The switch utility commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters download config firmware image_id show firmware information config configuration show config upload enable autoconfig disable autoconfig show autoconfig ping
[firmware_fromTFTP <ipaddr> <path_filename 64> {image_id <1-2>} | config <ipaddr> <path_filename 64> {<config_id 1-2> | increment}]
<int 1-2> [delete | boot_up] config_id 1-2> [boot_up | delete | active]
[current_config | config_in_nvram <config_id 1-2> | information ] config <ipaddr> <path_filename 64> {<config_id 1-2>} | log_toTFTP <ipaddr> <path_filename 64>]
<ipaddr> {times <value 1-255>} {timeout <sec 1-99>}
Each command is listed, in detail, in the following sections.
download
Purpose
Syntax
Description
Parameters
Used to download and install new firmware or a Switch configuration file from a
TFTP server. download [firmware_fromTFTP <ipaddr> <path_filename 64> {image_id <1-
2>} | config <ipaddr> <path_filename 64> {<config_id 1-2> | increment}]
This command is used to download a new firmware or a Switch configuration file from a TFTP server. firmware_fromTFTP − Download and install new firmware on the Switch from a
TFTP server. image_id - Specifies the image index ID number of the firmware in the Switch’s memory. The Switch can store 2 firmware images for use. Image ID 1 will be the default boot up firmware for the Switch unless otherwise configured by the user. config − Download a switch configuration file from a TFTP server.
<ipaddr> − The IP address of the TFTP server.
<path_filename 64> − The DOS path and filename of the firmware or switch configuration file on the TFTP server. For example, C:\dgs3427.had. config_id <int 1-2> - The Switch can hold two configuraion files specified by section ID. If no config_id is specified, the configuration being downloaded is applied to the system. If a config_id is specified, the configuration being downloaded is saved only to flash memory in the chosen section (1 or 2) and will not be applied to the system. Keep in mind that config_id 1 is the boot up configuration unless this is changed using the config configuration command. increment − Allows the download of a partial switch configuration file. This allows a file to be downloaded that will change only the switch parameters explicitly stated in the configuration file. All other switch parameters will remain unchanged.
46
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To download a configuration file:
DGS-3400:4#download configuration 10.48.74.121 c:\cfg\setting.txt
Command: download configuration 10.48.74.121 c:\cfg\setting.txt
Connecting to server................... Done.
Download configuration................. Done.
DGS-3450:4#
DGS-3450:4##-------------------------------------------------------------------------------
DGS-3450:4## DGS-3450 Gigabit Ethernet Switch
DGS-3450:4## Configuration
DGS-3450:4##
DGS-3450:4## Firmware: Build 1.20-B15
DGS-3450:4## Copyright(C) 2004-2007 D-Link Corporation. All rights reserved.
DGS-3450:4##-------------------------------------------------------------------------------
DGS-3450:4#
DGS-3450:4## STACK
DGS-3450:4#
DGS-3450:4#
DGS-3450:4## BASIC
DGS-3450:4#
DGS-3450:4#config serial_port auto_logout never
Command: config serial_port auto_logout never
The download configuration command will initiate the loading of the various settings in the order listed in the configuration file.
When the file has been successfully loaded the message “End of configuration file for DGS-3400” appears followed by the command prompt.
DGS-3400:4# # ROUTE
DGS-3400:4#
DGS-3400:4# create iproute default 172.18.212.253 1
Command: create iproute default 172.18.212.253 1
Success.
DGS-3400:4#
DGS-3400:4# #-------------------------------------------------------------------
DGS-3400:4# # End of configuration file for DGS-3450
DGS-3400:4# #-------------------------------------------------------------------
DGS-3400:4# #
config configuration
Purpose
Syntax
Description
Parameters
Used to designate a stored configuration file section ID as a boot up configuration, active configuration or to delete the configuration file. config_id 1-2> [boot_up | delete | active]
This command is used to configure the section ID index of a stored configuration as the boot up or active configuration.Or to delete the contents of the specified configuration section. config_id – Specifies the section being configured or deleted. delete – Entering ths will delete the contents of the speified section. boot_up – Entering specifies the configuration section as a boot up section. active – Entering specifies the configuration section as an active section.
47
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure configuration section 1 as a boot up section:
DGS-3400:4#config configuration 1 boot_up
Command: config configuration 1 boot_up
Success.
DGS-3400:4#
config firmware
Purpose
Syntax
Description
Parameters
Used to configure the firmware section as a boot up section, or to delete the firmware section config firmware image_id <int 1-2> [delete | boot_up]
This command is used to configure the firmware section. The user may choose to remove the firmware section or use it as a boot up section. image_id – Specifies the working section. The Switch can hold two firmware versions for the user to select from, which are specified by image ID.
<int 1-2> - Select the ID number of the firmware in the Switch’s memory to be configured. delete – Entering this parameter will delete the specified firmware section. boot_up – Entering this parameter will specify the firmware image ID as a boot up section.
Example usage:
To configure firmware section 1 as a boot up section:
DGS-3400:4# config firmware image_id 1 boot_up
Command: config firmware image_id 1 boot_up
Success.
DGS-3400:4#
show firmware information
Purpose
Syntax
Used to display the firmware section information. show firmware information
Description This command is used to display the firmware section information
Parameters None.
Restrictions None
Example usage:
To display the current firmware information on the Switch:
48
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show firmware information
Command: show firmware information
ID Version Size(B) Update Time From User
-- --------- ------- ------------------- ------------------ ---------------
1 1.00-B27 2013171 0 days 00:00:00 Serial Port(Prom) Unknown
*2 1.00-B30 2013334 2005/12/12 11:50:15 10.41.44.44(W)
'*' means boot up firmware
(R) means firmware update thru Serial Port(RS232)
(T) means firmware update thru TELNET
(S) means firmware update thru SNMP
(W) means firmware update thru WEB
(SIM) means firmware update thru Single IP Management
DGS-3400:4#
show config
Purpose
Syntax
Used to display the current or saved version of the configuration settings of the switch. show config [current_config | config_in_nvram <config_id 1-2> | information]
Description Use this command to display all the configuration settings that are saved to
NV RAM or display the configuration settings as they are currently configured. Use the keyboard to list settings one line at a time (Enter), one page at a time (Space) or view all (a).
The configuration settings are listed by category in the following order:
1. Basic (serial port, Telnet and web management status)
2. storm control
3. IP group management
4. syslog
5. QoS
6. port mirroring
7. traffic segmentation
8. SSL
9. port
10. Port lock
11. ADDRBIND
12. 802.1x
13. SNMPv3
14. MANAGEMENT
15. VLAN
16. FDB (forwarding data base)
17. MAC ADDRESS TABLE
NOTIFICATION
18. STP
19. SAFEGUARD ENGINE
20. BANNER PROMPT
21. SSH
22. ACL
23. SNTP
24. LACP
25. IP and auto config
26. IGMP Snooping
27. MLD Snooping
28. ACCESS
AUTHENTICATION
CONTROL
29. ARP
30. Route
Parameters current_config – Entering this parameter will display configurations entered without being saved to NVRAM. config_in_nvram <config_id 1-2> - Entering this parameter will display configurations to be specified <config_id 1-2> which were saved in NV-
RAM.
Restrictions None.
49
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To view the current configuration settings:
DGS-3450:4#show config current_config
Command: show config current_config
#-------------------------------------------------------------------------------
# DGS-3450 Gigabit Ethernet Switch
# Configuration
#
# Firmware: Build 1.20-B15
# Copyright(C) 2004-2007 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------------------
# STACK
# BASIC config serial_port auto_logout never enable telnet 50000 enable web 60000 enable clipaging
# STORM config traffic trap none config traffic control 1-50 broadcast disable multicast disable dlf disable action drop threshold 1024 countdown 0 time_interval 5
upload
Purpose
Syntax
Description
Parameters
Used to upload switch settings or the switch history log to a TFTP. upload [config <ipaddr> <path_filename 64> {<config_id 1-2>} | log_toTFTP <ipaddr> <path_filename 64>]
This command is used to upload either the Switch’s current settings or the
Switch’s history log to a TFTP server. config − Specifies that the Switch’s current settings will be uploaded to the
TFTP server.
<config_id 1-2> - Entering this parameter will upload configurations to be specified, which were saved in NV-RAM to TFTP server. log_toTFTP − Specifies that the switch history log will be uploaded to the
TFTP server.
<ipaddr> − The IP address of the TFTP server. The TFTP server must be on the same IP subnet as the Switch.
<path_filename 64> − Specifies the location of the Switch configuration file on the TFTP server. This file will be replaced by the uploaded file from the
Switch.
Example usage:
To upload a configuration file:
50
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#upload config 10.48.74.121 c:\cfg\log.txt
Command: upload config 10.48.74.121 c:\cfg\log.txt
Connecting to server................... Done.
Upload configuration...................Done.
DGS-3400:4#
enable autoconfig
Purpose
Syntax
Description
Used to activate the autoconfiguration function for the Switch. This will load a configuration from the TFTP server specified in the reply. enable autoconfig
When autoconfig is enabled on the Switch, the DHCP reply will contain a configuration file and path name. It will then request the file from the TFTP server specified in the reply. When autoconfig is enabled, the ipif settings will automatically become DHCP client.
Parameters None.
Restrictions When autoconfig is enabled, the Switch becomes a DHCP client automatically
(same as: config ipif System dhcp ). The DHCP server must have the TFTP server
IP address and configuration file name, and be configured to deliver this information in the data field of the DHCP reply packet. The TFTP server must be running and have the requested configuration file in its base directory when the request is received from the Switch. Consult the DHCP server and TFTP server software instructions for information on loading a configuration file.
If the Switch is unable to complete the autoconfiguration process the previously saved local configuration file present in Switch memory will be loaded.
NOTE: Dual-purpose (DHCP/TFTP) server utility software may require entry of the configuration file name and path within the user interface. Alternatively, the DHCP software may require creating a separate ext file with the configuration file name and path in a specific directory on the server. Consult the documentation for the DCHP server software if you are unsure.
Example usage:
To enable autoconfiguration on the Switch:
DGS-3400:4#enable autoconfig
Command: enable autoconfig
Success.
DGS-3400:4#
When autoconfig is enabled and the Switch is rebooted, the normal login screen will appear for a few moments while the autoconfig request (i.e. download configuration) is initiated. The console will then display the configuration parameters as they are loaded from the configuration file specified in the DHCP or TFTP server. This is exactly the same as using a download config command. After the entire Switch configuration is loaded, the Switch will automatically “logout” the server.
Upon booting up the autoconfig process is initiated, the console screen will appear similar to the example below. The configuration settings will be loaded in normal order.
51
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 1.20-B15
Copyright(C) 2004-2007 D-Link Corporation. All rights reserved.
DGS-3400:4#
DGS-3400:4#
DGS-3400:4#download config 10.41.44.44 c:\cfg\setting.txt
Command: download config 10.41.44.44 c:\cfg\setting.txt
Connecting to server................... Done.
Download configuration................. Done.
The very end of the autoconfig process including the logout appears like this:
DGS-3400:4# create iproute default 172.18.212.253 1
Command: create iproute default 172.18.212.253 1
Success.
DGS-3400:4#
DGS-3400:4##-------------------------------------------------------------------
DGS-3400:4## End of configuration file for DGS-3400
DGS-3400:4#
**********
* Logout *
**********
NOTE: With autoconfig enabled, the Switch ipif settings now define the Switch as a
DHCP client. Use the show switch command to display the new IP settings status.
disable autoconfig
Purpose
Syntax
Description
Use this to deactivate autoconfiguration from DHCP. disable autoconfig
This instructs the Switch not to accept autoconfiguration instruction from the
DHCP server. This does not change the IP settings of the Switch. The ipif settings will continue as DHCP client until changed with the config ipif command.
Parameters None.
Example usage:
To stop the autoconfiguration function:
DGS-3400:4#disable autoconfig
Command: disable autoconfig
Success.
DGS-3400:4#
52
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show autoconfig
Purpose
Syntax
Used to display the current autoconfig status of the Switch. show autoconfig
Description This will list the current status of the autoconfiguration function.
Parameters None.
Example usage:
To view the autoconfiguration status:
DGS-3400:4#show autoconfig
Command: show autoconfig
Autoconfig State: Disabled.
DGS-3400:4#
ping
Purpose
Syntax
Description
Used to test the connectivity between network devices. ping <ipaddr> {times <value 1-255>} {timeout <sec 1-99>}
The ping command sends Internet Control Message Protocol (ICMP) echo messages to a remote IP address. The remote IP address will then “echo” or return the message. This is used to confirm connectivity between the Switch and the remote device.
Parameters <ipaddr> - Specifies the IP address of the host. times <value 1-255> - The number of individual ICMP echo messages to be sent. The maximum value is 255. timeout <sec 1-99> - Defines the time-out period while waiting for a response from the remote device. A value of 1 to 99 seconds can be specified. The default is 1 second
Restrictions None.
Example usage:
To ping the IP address 10.48.74.121 four times:
DGS-3400:4#ping 10.48.74.121 times 4
Command: ping 10.48.74.121
Reply from 10.48.74.121, time<10ms
Reply from 10.48.74.121, time<10ms
Reply from 10.48.74.121, time<10ms
Reply from 10.48.74.121, time<10ms
Ping statistics for 10.48.74.121
Packets: Sent =4, Received =4, Lost =0
DGS-3400:4#
53
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
9
N
ETWORK
M
ONITORING
C
OMMANDS
The network monitoring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters show packet ports show error ports show utilization clear counters clear log
<portlist>
<portlist>
[ports | cpu]
{ports <portlist>} show log enable syslog disable syslog create syslog host index <value_list>
<index 1-4> {severity [informational | warning | all] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port
<udp_port_number>| ipaddress <ipaddr> | state [enable | disable]} config syslog host config syslog host all {severity [informational | warning | all] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port
<udp_port_number> | state [enable | disable]}
[<index 1-4> | all] delete syslog host show syslog host {<index 1-4>} show syslog config system_severity [trap | log | all] [critical | warning | information] show system_severity
{severity [informational | warning | all] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port
<udp_port_number> | ipaddress <ipaddr> | state [enable | disable]}
Each command is listed, in detail, in the following sections.
show packet ports
Purpose
Syntax
Description
Parameters
Used to display statistics about the packets sent and received by the
Switch. show packet ports <portlist>
This command is used to display statistics about packets sent and received by ports specified in the <portlist> .
<portlist> − Specifies a port or range of ports to be displayed.
Restrictions None.
Example usage:
To display the packets analysis for port 7:
54
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show packet port 2
Command: show packet port 2
Port number :2
================================================================
Frame Size/Type Frame Counts Frames/sec
--------------- ---------------------- -----------
64 3275 10
65-127 755 10
128-255 316 1
256-511 145 0
512-1023 15 0
1024-1518 0 0
Unicast RX 152 1
Multicast RX 557 2
Broadcast RX 3686 16
Frame Type Total Total/sec
--------------- ---------------------- -----------
RX Bytes 408973 1657
RX Frames 395 19
TX Bytes 7918 178
TX Frames 111 2
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show error ports
Purpose
Syntax
Description
Used to display the error statistics for a range of ports. show error ports <portlist>
This command will display all of the packet error statistics collected and logged by the Switch for a given port list.
Parameters <portlist> − Specifies a port or range of ports to be displayed.
Restrictions None.
Example usage:
To display the errors of the port 3 of module 1:
DGS-3400:4#show error ports 3
Command: show error ports 3
Port number : 1
RX Frames TX Frames
--------------- ----------------
CRC Error
Undersize
Oversize
Fragment
19
0
0
0
Excessive Deferral 0
CRC Error 0
Late Collision 0
Excessive Collision 0
Jabber 11
Drop Pkts
Symbol Error 0
Single Collision 0
20837 Collision 0
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
55
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show utilization
Purpose
Syntax
Used to display real-time port and CPU utilization statistics. show utilization [ports | cpu]
Description
Parameters
This command will display the real-time port and cpu utilization statistics for the Switch. ports - Entering this parameter will display the current port utilization of the Switch. cpu – Entering this parameter will display the current CPU utilization of the Switch.
Restrictions None.
Example usage:
To display the port utilization statistics:
DGS-3400:4#show utilization ports
Command: show utilization ports
Port TX/sec RX/sec Util Port TX/sec RX/sec Util
------ ---------- ---------- ---- ------ ---------- ---------- ----
1 0 0 0 22 0 0 0
2 0 0 0 23 0 0 0
3 0 0 0 24 0 0 0
4 0 0 0 25 0 26 1
5 0 0 0 26 0 0 0
6 0 0 0 27 0 0 0
7 0 0 0
8 0 0 0
9 0 0 0
10 0 0 0
11 0 0 0
12 0 0 0
13 0 0 0
14 0 0 0
15 0 0 0
16 0 0 0
17 0 0 0
18 0 0 0
19 0 0 0
20 0 0 0
21 0 0 0
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
Example usage:
To display the current CPU utilization:
DGS-3400:4#show utilization cpu
Command: show utilization cpu
CPU utilization :
--------------------------------------------------------------------------------------------
Five seconds - 15% One minute - 25% Five minutes - 14%
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
56
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
clear counters
Purpose
Syntax
Description
Parameters
Used to clear the Switch’s statistics counters. clear counters {ports<portlist>}
This command will clear the counters used by the Switch to compile statistics. ports <portlist> − Specifies a port or range of ports to be displayed.
Example usage:
To clear the counters:
DGS-3400:4#clear counters ports 2-9
Command: clear counters ports 2-9
Success.
DGS-3400:4#
clear log
Purpose
Syntax
Description
Used to clear the Switch’s history log. clear log
This command will clear the Switch’s history log.
Parameters None.
Example usage:
To clear the log information:
DGS-3400:4#clear log
Command: clear log
Success.
DGS-3400:4#
show log
Purpose
Syntax
Description
Parameters
Used to display the switch history log. show log {index <value>}
This command will display the contents of the Switch’s history log. index <value 1-65535> − This command will display the history log, beginning at 1 and ending at the value specified by the user in the
<value 1-65535> field.
If no parameter is specified, all history log entries will be displayed.
Example usage:
To display the switch history log :
57
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show log
Command: show log
Index Date Time Log Text
----- ---------------- ----------- ----------------------------------------------------
5 2006-04-26 09:38:18 Successful login through Console (Username: Anonymous)
4 2006-04-26 09:36:20 System started up
3 2006-04-25 12:38:18 Port 1 link up, 100Mbps FULL duplex
2 2006-04-25 12:38:00 Spanning Tree Protocol is disabled
1 2006-04-25 12:37:42 Configuration saved to flash (Username: Anonymous)
DGS-3400:4#
enable syslog
Purpose Used to enable the system log to be sent to a remote host.
Syntax enable syslog
Description The command enables the system log to be sent to a remote host.
Parameters None.
Example usage:
To the syslog function on the Switch:
DGS-3400:4#enable syslog
Command: enable syslog
Success.
DGS-3400:4#
disable syslog
Purpose
Syntax
Description
Parameters
Restrictions
Used to enable the system log to be sent to a remote host. disable syslog
The disable syslog command enables the system log to be sent to a remote host.
None.
Only administrator-level users can issue this command.
Example usage:
To disable the syslog function on the Switch:
DGS-3400:4#disable syslog
Command: disable syslog
Success.
DGS-3400:4#
58
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create syslog host
Purpose
Syntax
Used to create a new syslog host. create syslog host <index 1-4> {severity [informational | warning | all] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port <udp_port_number> | ipaddress <ipaddr> | state [enable | disable]}
Description The command is used to create a new syslog host.
Parameters <index 1-4>
There are four available indexes, numbered 1 through 4. severity
Code
Code
−
− Specifies that the command will be applied to an index of hosts.
Severity level indicator, as shown below:
Bold font indicates that the corresponding severity level is currently supported on the Switch.
Numerical Severity
0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages informational − Specifies that informational messages will be sent to the remote host. This corresponds to number 6 from the list above. warning − Specifies that warning messages will be sent to the remote host. This corresponds to number 4 from the list above. all − Specifies that all of the currently supported syslog messages that are generated by the Switch will be sent to the remote host. facility − Some of the operating system daemons and processes have been assigned Facility values. Processes and daemons that have not been explicitly assigned a Facility may use any of the "local use" facilities or they may use the
"user-level" Facility. Those Facilities that have been designated are shown in the following: Bold font indicates the facility values that the Switch currently supports.
Numerical Facility
0 kernel messages
1 user-level messages
2 mail system
3 system daemons
4 security/authorization messages
5 messages generated internally by syslog
6 line printer subsystem
7 network news subsystem
8 UUCP subsystem
9 clock daemon
10 security/authorization messages
11 FTP daemon
12 NTP subsystem
13 log audit
14 log alert
59
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create syslog host
15 clock daemon
16 local use 0 (local0)
17 local use 1 (local1)
18 local use 2 (local2)
19 local use 3 (local3)
20 local use 4 (local4)
21 local use 5 (local5)
22 local use 6 (local6)
23 local use 7 (local7) local0 − Specifies that local use 0 messages will be sent to the remote host. This corresponds to number 16 from the list above. local1 − Specifies that local use 1 messages will be sent to the remote host. This corresponds to number 17 from the list above. local2 − Specifies that local use 2 messages will be sent to the remote host. This corresponds to number 18 from the list above. local3 − Specifies that local use 3 messages will be sent to the remote host. This corresponds to number 19 from the list above. local4 − Specifies that local use 4 messages will be sent to the remote host. This corresponds to number 20 from the list above. local5 − Specifies that local use 5 messages will be sent to the remote host. This corresponds to number 21 from the list above. local6 − Specifies that local use 6 messages will be sent to the remote host. This corresponds to number 22 from the list above. local7 − Specifies that local use 7 messages will be sent to the remote host. This corresponds to number 23 from the list above. udp_port <udp_port_number> − Specifies the UDP port number that the syslog protocol will use to send messages to the remote host. ipaddress <ipaddr> − Specifies the IP address of the remote host where syslog messages will be sent. state [enable | disable] − Allows the sending of syslog messages to the remote host, specified above, to be enabled and disabled.
Example usage:
To create syslog host:
DGS-3400:4#create syslog host 1 ipaddress 10.1.1.1 state enable
Command: create syslog host 1 ipaddress 10.1.1.1 state enable
Success.
DGS-3400:4#
60
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config syslog host
Purpose Used to configure the syslog protocol to send system log data to a remote host.
Syntax config syslog host <index 1-4> [severity [informational | warning | all] | facility [local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port<udp_port_number> | ipaddress <ipaddr> | state [enable | disable]]
Description The config syslog host command is used to configure the syslog protocol to send system log information to a remote host.
Parameters <index 1-4> − Specifies that the command will be applied to an index of hosts.
There are four available indexes, numbered 1 through 4. severity − Severity level indicator. These are described in the following:
Bold font indicates that the corresponding severity level is currently supported on the Switch.
Numerical Severity
Code
0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages informational − Specifies that informational messages will be sent to the remote host. This corresponds to number 6 from the list above. warning − Specifies that warning messages will be sent to the remote host. This corresponds to number 4 from the list above. all − Specifies that all of the currently supported syslog messages that are generated by the Switch will be sent to the remote host. facility − Some of the operating system daemons and processes have been assigned Facility values. Processes and daemons that have not been explicitly assigned a Facility may use any of the "local use" facilities or they may use the
"user-level" Facility. Those Facilities that have been designated are shown in the following: Bold font indicates the facility values the Switch currently supports.
Numerical Facility
Code
0 kernel messages
1 user-level messages
2 mail system
3 system daemons
4 security/authorization messages
5 messages generated internally by syslog
6 line printer subsystem
7 network news subsystem
8 UUCP subsystem
9 clock daemon
10 security/authorization messages
11 FTP daemon
12 NTP subsystem
13 log audit
14 log alert
15 clock daemon
16 local use 0 (local0)
17 local use 1 (local1)
18 local use 2 (local2)
19 local use 3 (local3)
20 local use 4 (local4)
21 local use 5 (local5)
22 local use 6 (local6)
61
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config syslog host
23 local use 7 (local7) local0 − Specifies that local use 0 messages will be sent to the remote host. This corresponds to number 16 from the list above. local1 − Specifies that local use 1 messages will be sent to the remote host. This corresponds to number 17 from the list above. local2 − Specifies that local use 2 messages will be sent to the remote host. This corresponds to number 18 from the list above. local3 − Specifies that local use 3 messages will be sent to the remote host. This corresponds to number 19 from the list above. local4 − Specifies that local use 4 messages will be sent to the remote host. This corresponds to number 20 from the list above. local5 − Specifies that local use 5 messages will be sent to the remote host. This corresponds to number 21 from the list above. local6 − Specifies that local use 6 messages will be sent to the remote host. This corresponds to number 22 from the list above. local7 − Specifies that local use 7 messages will be sent to the remote host. This corresponds to number 23 from the list above. udp_port <udp_port_number> − Specifies the UDP port number that the syslog protocol will use to send messages to the remote host. ipaddress <ipaddr> − Specifies the IP address of the remote host where syslog messages will be sent. state [enable | disable] − Allows the sending of syslog messages to the remote host, specified above, to be enabled and disabled.
Example usage:
To configure a syslog host:
DGS-3400:4#config syslog host 1 severity all
Command: config syslog host 1 severity all
Success.
DGS-3400:4#config syslog host 1 facility local0
Command: config syslog host 1 facility local0
Success.
DGS-3400:4#config syslog host 1 udp_port 6000
Command: config syslog host 1 udp_port 6000
Success.
DGS-3400:4#config syslog host 1 ipaddress 10.44.67.8
Command: config syslog host 1 ipaddress 10.44.67.8
Success.
DGS-3400:4#config syslog host 1 state enabled
Command: config syslog host 1 state enabled
Success.
DGS-3400:4#
62
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config syslog host all
Purpose Used to configure the syslog protocol to send system log data to a remote host.
Syntax config syslog host all [severity [informational | warning | all] | facility
[local0 | local1 | local2 | local3 | local4 | local5 | local6 | local7] | udp_port <udp_port_number> | state [enable | disable]]
Description The config syslog host all command is used to configure the syslog protocol to send system log information to a remote host.
Parameters all − Specifies that the command will be applied to all hosts. severity − Severity level indicator, as described below:
Bold font indicates that the corresponding severity level is currently supported on the Switch.
Numerical Severity
Code
0 Emergency: system is unusable
1 Alert: action must be taken immediately
2 Critical: critical conditions
3 Error: error conditions
4 Warning: warning conditions
5 Notice: normal but significant condition
6 Informational: informational messages
7 Debug: debug-level messages informational − Specifies that informational messages will be sent to the remote host. This corresponds to number 6 from the list above. warning − Specifies that warning messages will be sent to the remote host.
This corresponds to number 4 from the list above. all − Specifies that all of the currently supported syslog messages that are generated by the Switch will be sent to the remote host. facility − Some of the operating system daemons and processes have been assigned Facility values. Processes and daemons that have not been explicitly assigned a Facility may use any of the "local use" facilities or they may use the "user-level" Facility. Those Facilities that have been designated are shown in the following: Bold font indicates that the facility values the Switch currently supports.
Numerical Facility
Code
0 kernel messages
1 user-level messages
2 mail system
3 system daemons
4 security/authorization messages
5 messages generated internally by syslog
6 line printer subsystem
7 network news subsystem
8 UUCP subsystem
9 clock daemon
10 security/authorization messages
11 FTP daemon
12 NTP subsystem
13 log audit
14 log alert
15 clock daemon
16 local use 0 (local0)
17 local use 1 (local1)
18 local use 2 (local2)
19 local use 3 (local3)
20 local use 4 (local4)
21 local use 5 (local5)
63
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config syslog host all
22 local use 6 (local6)
23 local use 7 (local7) local0 − Specifies that local use 0 messages will be sent to the remote host. This corresponds to number 16 from the list above. local1 − Specifies that local use 1 messages will be sent to the remote host. This corresponds to number 17 from the list above. local2 − Specifies that local use 2 messages will be sent to the remote host. This corresponds to number 18 from the list above. local3 − Specifies that local use 3 messages will be sent to the remote host. This corresponds to number 19 from the list above. local4 − Specifies that local use 4 messages will be sent to the remote host. This corresponds to number 20 from the list above. local5 − Specifies that local use 5 messages will be sent to the remote host. This corresponds to number 21 from the list above. local6 − Specifies that local use 6 messages will be sent to the remote host. This corresponds to number 22 from the list above. local7 − Specifies that local use 7 messages will be sent to the remote host. This corresponds to number 23 from the list above. udp_port <udp_port_number> − Specifies the UDP port number that the syslog protocol will use to send messages to the remote host. state [enable | disable] − Allows the sending of syslog messages to the remote host, specified above, to be enabled and disabled.
Example usage:
To configure all syslog hosts:
DGS-3400:4#config syslog host all severity all
Command: config syslog host all severity all
Success.
DGS-3400:4#config syslog host all facility local0
Command: config syslog host all facility local0
Success
DGS-3400:4#config syslog host all udp_port 6000
Command: config syslog host all udp_port 6000
Success.
DGS-3400:4#config syslog host all ipaddress 10.44.67.8
Command: config syslog host all ipaddress 10.44.67.8
Success.
DGS-3400:4#config syslog host all state enabled
Command: config syslog host all state enabled
Success.
DGS-3400:4#
64
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete syslog host
Purpose
Syntax
Description
Parameters
Restrictions
Used to remove a syslog host, that has been previously configured, from the
Switch. delete syslog host [<index 1-4> | all]
The delete syslog host command is used to remove a syslog host that has been previously configured from the Switch.
<index 1-4> − Specifies that the command will be applied to an index of hosts.
There are four available indexes, numbered 1 through 4. all − Specifies that the command will be applied to all hosts.
Only administrator-level users can issue this command.
Example usage:
To delete a previously configured syslog host:
DGS-3400:4#delete syslog host 4
Command: delete syslog host 4
Success.
DGS-3400:4#
show syslog host
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the syslog hosts currently configured on the Switch. show syslog host {<index 1-4>}
The show syslog host command is used to display the syslog hosts that are currently configured on the Switch.
<index 1-4> − Specifies that the command will be applied to an index of hosts. There are four available indexes, numbered 1 through 4.
None.
Example usage:
To show syslog host information:
DGS-3400:4#show syslog host
Command: show syslog host
Syslog Global State: Disabled
Host Id Host IP Address Severity Facility UDP port Status
------- --------------- -------------- -------- -------- --------
1 10.1.1.2 All Local0 514 Disabled
2 10.40.2.3 All Local0 514 Disabled
3 10.21.13.1 All Local0 514 Disabled
Total Entries : 3
DGS-3400:4#
65
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show syslog
Purpose
Syntax
Description
Parameters
Restrictions
Used to display the global current running status of the syslog function. show syslog
The show syslog command will display the current running status of the syslog function on the Switch.
None.
None.
Example usage:
To show the global state of the syslog function:
DGS-3400:4#show syslog
Command: show syslog
Syslog Global State: Disabled
DGS-3400:4#
config system_severity
Purpose
Syntax
Description
Parameters
To configure severity level of an alert required for log entry or trap message. config system_severity [trap | log | all] [critical | warning | information]
This command is used to configure the system severity levels on the Switch. When an event occurs on the Switch, a message will be sent to the SNMP agent (trap), the Switch’s log or both. Events occurring on the Switch are separated into three main categories, these categories are NOT precisely the same as the parameters of the same name (see below).
•
•
•
Information – Events classified as information are basic events occurring on the
Switch that are not deemed as problematic, such as enabling or disabling various functions on the Switch.
Warning - Events classified as warning are problematic events that are not critical to the overall function of the Switch but do require attention, such as unsuccessful downloads or uploads and failed logins.
Critical – Events classified as critical are fatal exceptions occurring on the Switch, such as hardware failures or spoofing attacks.
Choose one of the following to identify where severity messages are to be sent.
• trap – Entering this parameter will define which events occurring on the Switch will be sent to a SNMP agent for analysis.
•
• log – Entering this parameter will define which events occurring on the Switch will be sent to the Switch’s log for analysis.
all – Entering this parameter will define which events occurring on the Switch will be sent to a SNMP agent and the Switch’s log for analysis.
Choose one of the following to identify what level of severity warnings are to be sent to the destination entered above. critical – Entering this parameter along with the proper destination, stated above, will instruct the Switch to send only critical events to the Switch’s log or SNMP agent.
warning – Entering this parameter along with the proper destination, stated above, will instruct the Switch to send critical and warning events to the Switch’s log or SNMP agent. information – Entering this parameter along with the proper destination, stated above, will instruct the switch to send informational, warning and critical events to the Switch’s log or SNMP agent.
66
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure the system severity settings for critical traps only:
DGS-3400:4#config system_severity trap critical
Command: config system_severity trap critical
Success.
DGS-3400:4#
67
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
10
M
ULTIPLE
S
PANNING
T
REE
P
ROTOCOL
(MSTP) C
OMMANDS
This Switch supports three versions of the Spanning Tree Protocol; 802.1d STP, 802.1w Rapid STP and 802.1s MSTP. Multiple
Spanning Tree Protocol, or MSTP, is a standard defined by the IEEE community that allows multiple VLANs to be mapped to a single spanning tree instance, which will provide multiple pathways across the network. Therefore, these MSTP configurations will balance the traffic load, preventing wide scale disruptions when a single spanning tree instance fails. This will allow for faster convergences of new topologies for the failed instance. Frames designated for these VLANs will be processed quickly and completely throughout interconnected bridges utilizing either of the three spanning tree protocols (STP, RSTP or MSTP). This protocol will also tag BDPU packets so receiving devices can distinguish spanning tree instances, spanning tree regions and the
VLANs asscociated with them. These instances will be classified by an instance_id . MSTP will connect multiple spanning trees with a Common and Internal Spanning Tree (CIST). The CIST will automatically determine each MSTP region, its maximum possible extent and will appear as one virtual bridge that runs a single spanning tree. Consequentially, frames assigned to different
VLANs will follow different data routes within administratively established regions on the network, continuing to allow simple and full processing of frames, regardless of administrative errors in defining VLANs and their respective spanning trees. Each switch utilizing the MSTP on a network will have a single MSTP configuration that will have the following three attributes: a) A configuration name defined by an alphanumeric string of up to 32 characters (defined in the config stp mst_config_id command as name <string> ). b) A configuration revision number (named here as a revision_level ) and; c) A 4096 element table (defined here as a vid_range ) which will associate each of the possible 4096 VLANs supported by the Switch for a given instance.
To utilize the MSTP function on the Switch, three steps need to be taken: a) The Switch must be set to the MSTP setting ( config stp version ) b) The correct spanning tree priority for the MSTP instance must be entered ( config stp priority ). c) VLANs that will be shared must be added to the MSTP Instance ID ( config stp instance_id ).
The Multiple Spanning Tree Protocol commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable stp disable stp config stp version [mstp | rstp | stp] config stp {maxage <value 6-40> | maxhops <value 1-20> | hellotime <value
1-10> | forwarddelay <value 4-30> | txholdcount <value 1-10> | fbpdu [enable | disable ] | lbd [enable | disable] | lbd_recover_timer
[<value 0> | <value 60 -1000000 >]} config stp ports <portlist> {externalCost [auto | <value 1-200000000>] | hellotime
<value 1-10> | migrate [yes | no] | edge [true | false] | p2p [true | false | auto] | state [enable | disable] | lbd [enable | disable]} create stp instance_id <value 1-15> config stp instance _id <value 1-15> [add_vlan | remove_vlan] <vidlist> delete stp instance_id <value 1-15> config stp priority <value 0-61440> instance_id <value 0-15> config stp mst_config_id config stp mst_ports
{revision_level <int 0-65535> | name <string>} show stp show stp ports
<portlist> instance_id <value 0-15> {internalCost [auto | value 1-
200000000] | priority <value 0-240>}
{<portlist>}
68
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Command Parameters show stp instance {<value 0-15>} show stp mst_config id
Each command is listed, in detail, in the following sections.
enable stp
Purpose
Syntax
Used to globally enable STP on the Switch. enable stp
Description This command allows the Spanning Tree Protocol to be globally enabled on the Switch.
Parameters None.
Example usage:
To enable STP, globally, on the Switch:
DGS-3400:4#enable stp
Command: enable stp
Success.
DGS-3400:4#
disable stp
Purpose
Syntax
Used to globally disable STP on the Switch. disable stp
Description This command allows the Spanning Tree Protocol to be globally disabled on the Switch.
Parameters None.
Example usage:
To disable STP on the Switch:
DGS-3400:4#disable stp
Command: disable stp
Success.
DGS-3400:4#
69
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config stp version
Purpose
Syntax
Description
Parameters
Used to globally set the version of STP on the Switch. config stp version [mstp | rstp | stp]
This command allows the user to choose the version of the spanning tree to be implemented on the Switch. mstp – Selecting this parameter will set the Multiple Spanning
Tree Protocol (MSTP) globally on the Switch. rstp - Selecting this parameter will set the Rapid Spanning Tree
Protocol (RSTP) globally on the Switch. stp - Selecting this parameter will set the Spanning Tree Protocol
(STP) globally on the Switch.
Example usage:
To set the Switch globally for the Multiple Spanning Tree Protocol (MSTP):
DGS-3400:4#config stp version mstp
Command: config stp version mstp
Success.
DGS-3400:4#
config stp
Purpose
Syntax
Description
Parameters
Used to setup STP, RSTP and MSTP on the Switch. config stp {maxage <value 6-40> | maxhops <value 1-20> | hellotime
<1-10> | forwarddelay <value 4-30> | txholdcount <value 1-10> | fbpdu
[enable | disable] | lbd [enable | disable] | lbd_recover_timer [<value 0>
| <value 60 -1000000>]}
This command is used to setup the Spanning Tree Protocol (STP) for the entire switch. All commands here will be implemented for the STP version that is currently set on the Switch. maxage <value 6-40> − This value may be set to ensure that old information does not endlessly circulate through redundant paths in the network, preventing the effective propagation of the new information. Set by the Root
Bridge, this value will aid in determining that the Switch has spanning tree configuration values consistent with other devices on the bridged LAN. If the value ages out and a BPDU has still not been received from the Root
Bridge, the Switch will start sending its own BPDU to all other switches for permission to become the Root Bridge. If it turns out that your switch has the lowest Bridge Identifier, it will become the Root Bridge. The user may choose a time between 6 and 40 seconds. The default value is 20. maxhops <value 1-20> - The number of hops between devices in a spanning tree region before the BPDU (bridge protocol data unit) packet sent by the Switch will be discarded. Each switch on the hop count will reduce the hop count by one until the value reaches zero. The Switch will then discard the BDPU packet and the information held for the port will age out. The user may set a hop count from 1 to 20. The default is 20. hellotime <value 1-10> − The user may set the time interval between transmission of configuration messages by the root device in STP, or by the designated router in RSTP, thus stating that the Switch is still functioning. A time between 1 and 10 seconds may be chosen, with a default setting of 2 seconds.
In MSTP, the spanning tree is configured by port and therefore, the hellotime must be set using the configure stp ports command for
70
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config stp
switches utilizing the Multiple Spanning Tree Protocol. forwarddelay <value 4-30> − The maximum amount of time (in seconds) that the root device will wait before changing states. The user may choose a time between 4 and 30 seconds. The default is 15 seconds. txholdcount <value 1-10> - The maximum number of BDPU Hello packets transmitted per interval. Default value = 3. fbpdu [enable | disable] − Allows the forwarding of STP BPDU packets from other network devices when STP is disabled on the Switch. The default is enable . lbd [enable | disable] – When this is enabled, the Switch will temporarily block STP switch-wide when a BDPU packet has been looped back. If the
Switch detects its own BDPU packet coming back, it signifies a loop on the network. STP will automatically be blocked and an alert will be sent to the administrator. The default is enable . lbd_recover_timer [ 0 | < second 60 -1000000 > ] – Time allowed for recovery after an STP loopback has been detected. After the timer has expired the Switch checks for an STP loopback, if no loopback detected,
STP will be resumed. Entering 0 will disable LBD recovery.
Example usage:
To configure STP with maxage 18 and maxhops of 15:
DGS-3400:4#config stp maxage 18 maxhops 15
Command: config stp maxage 18 maxhops 15
Success.
DGS-3400:4#
config stp ports
Purpose
Syntax
Description
Parameters
Used to setup STP on the port level. config stp ports <portlist> {externalCost [auto | <value 1-200000000>] | hellotime <value 1-10> | migrate [yes | no] edge [true | false] | p2p [true | false | auto] | state [enable | disable] | lbd [enable | disable]}
This command is used to create and configure STP for a group of ports.
<portlist> − Specifies a range of ports to be configured. The beginning and end of the port list range are separated by a dash. For example, 1-4 specifies all of the ports between port 1 and port 4. externalCost − This defines a metric that indicates the relative cost of forwarding packets to the specified port list. Port cost can be set automatically or as a metric value. The default value is auto .
• auto – Setting this parameter for the external cost will automatically set the speed for forwarding packets to the specified port(s) in the list for optimal efficiency. Default port cost: 100Mbps port = 200000.
Gigabit port = 20000.
• <value 1-200000000> - Define a value between 1 and 200000000 to determine the external cost. The lower the number, the greater the probability the port will be chosen to forward packets. hellotime <value 1-10> − The time interval between transmission of configuration messages by the designated port, to other devices on the bridged LAN, thus stating that the Switch is still functioning. The user may choose a time between 1 and 10 seconds. The default is 2 seconds. migrate [yes | no] – Setting this parameter as “ yes ” will set the ports to send
71
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config stp ports
out BDPU packets to other bridges, requesting information on their STP setting If the Switch is configured for RSTP, the port will be capable to migrate from 802.1d STP to 802.1w RSTP. If the Switch is configured for
MSTP, the port is capable of migrating from 802.1d STP to 802.1s MSTP.
RSTP and MSTP can coexist with standard STP, however the benefits of
RSTP and MSTP are not realized on a port where an 802.1d network connects to an 802.1w or 802.1s enabled network. Migration should be set as yes on ports connected to network stations or segments that are capable of being upgraded to 802.1w RSTP or 802.1s MSTP on all or some portion of the segment. edge [true | false] – true designates the port as an edge port. Edge ports cannot create loops, however an edge port can lose edge port status if a topology change creates a potential for a loop. An edge port normally should not receive BPDU packets. If a BPDU packet is received it automatically loses edge port status. false indicates that the port does not have edge port status. p2p [true | false | auto] – true indicates a point-to-point (P2P) shared link. P2P ports are similar to edge ports however they are restricted in that a P2P port must operate in full-duplex. Like edge ports, P2P ports transition to a forwarding state rapidly thus benefiting from RSTP. A p2p value of false indicates that the port cannot have p2p status. auto allows the port to have p2p status whenever possible and operate as if the p2p status were true . If the port cannot maintain this status (for example if the port is forced to halfduplex operation) the p2p status changes to operate as if the p2p value were false . The default setting for this parameter is auto . state [enable | disable] − Allows STP to be enabled or disabled for the ports specified in the port list. The default is enable . lbd [enable | disable] – When this is enabled, the Switch will temporarily block
STP on the port when a BDPU packet has been looped back. If the Switch detects its own BDPU packet coming back, it signifies a loop on the network.
STP will automatically be blocked and an alert will be sent to the administrator. The default is disable .
Example usage:
To configure STP with path cost 19, hellotime set to 5 seconds, migration enable, and state enable for ports 1-5 of module 1.
DGS-3400:4#config stp ports 1-5 externalCost 19 hellotime 5 migrate yes state enable
Command: config stp ports 1-5 externalCost 19 hellotime 5 migrate yes state enable
Success.
DGS-3400:4#
create stp instance_id
Purpose
Syntax
Description
Parameters
Used to create a STP instance ID for MSTP. create stp instance_id <value 1-15>
This command allows the user to create a STP instance ID for the Multiple
Spanning Tree Protocol. There are 16 STP instances on the Switch (one internal CIST, unchangeable) and the user may create up to 15 instance IDs for the Switch.
<value 1-15> - Enter a value between 1 and 15 to identify the Spanning Tree instance on the Switch.
72
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To create a spanning tree instance 2:
DGS-3400:4#create stp instance_id 2
Command: create stp instance_id 2
Success.
DGS-3400:4#
config stp instance_id
Purpose
Syntax
Description
Parameters
Used to add or delete an STP instance ID. config stp instance_id <value 1-15> [add_vlan | remove_vlan]
<vidlist>
This command is used to map VIDs (VLAN IDs) to previously configured
STP instances on the Switch by creating an instance_id . A STP instance may have multiple members with the same MSTP configuration. There is no limit to the number of STP regions in a network but each region only supports a maximum of 16 spanning tree instances (one unchangeable default entry). VIDs can belong to only one spanning tree instance at a time.
Note that switches in the same spanning tree region having the same
STP instance_id must be mapped identically, and have the same configuration revision_level number and the same name .
<value 1-15> - Enter a number between 1 and 15 to define the instance_id. The Switch supports 16 STP regions with one unchangeable default instance ID set as 0. add_vlan – Along with the vid_range <vidlist> parameter, this command will add VIDs to the previously configured STP instance_id. remove_vlan – Along with the vid_range <vidlist> parameter, this command will remove VIDs to the previously configured STP instance_id.
<vidlist> – Specify the VID range from configured VLANs set on the
Switch. Supported VIDs on the Switch range from ID number 1 to 4094.
Example usage:
To configure instance ID 2 to add VID 10:
DGS-3400:4#config stp instance_id 2 add_vlan 10
Command : config stp instance_id 2 add_vlan 10
Success.
DGS-3400:4#
Example usage:
To remove VID 10 from instance id 2:
DGS-3400:4#config stp instance_id 2 remove_vlan 10
Command : config stp instance_id 2 remove_vlan 10
Success.
DGS-3400:4#
73
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete stp instance_id
Purpose
Syntax
Description
Parameters
Used to delete a STP instance ID from the Switch. delete stp instance_id <value 1-15>
This command allows the user to delete a previously configured
STP instance ID from the Switch.
<value 1-15> - Enter a value between 1 and 15 to identify the
Spanning Tree instance on the Switch.
Example usage:
To delete STP instance ID 2 from the Switch.
DGS-3400:4#delete stp instance_id 2
Command: delete stp instance_id 2
Success.
DGS-3400:4#
config stp priority
Purpose
Syntax
Description
Parameters
Used to update the STP instance configuration config stp priority <value 0-61440> instance_id <value 0-15>
This command is used to update the STP instance configuration settings on the Switch. The MSTP will utilize the priority in selecting the root bridge, root port and designated port. Assigning higher priorities to STP regions will instruct the Switch to give precedence to the selected instance_id for forwarding packets. The lower the priority value set, the higher the priority. priority <value 0-61440> - Select a value between 0 and 61440 to specify the priority for a specified instance id for forwarding packets. The lower the value, the higher the priority. This entry must be divisible by 4096. instance_id <value 0-15> - Enter the value corresponding to the previously configured instance id of which the user wishes to set the priority value. An instance id of 0 denotes the default instance_id (CIST) internally set on the
Switch.
Example usage:
To set the priority value for instance_id 2 as 4096:
DGS-3400:4#config stp priority 4096 instance_id 2
Command : config stp priority 4096 instance_id 2
Success.
DGS-3400:4#
74
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config stp mst_config_id
Purpose
Syntax
Description
Parameters
Used to update the MSTP configuration identification. config stp mst_config_id {revision_level <int 0-65535> | name
<string>}
This command will uniquely identify the MSTP configuration currently configured on the Switch. Information entered here will be attached to
BPDU packets as an identifier for the MSTP region to which it belongs.
Switches having the same revision_level and name will be considered as part of the same MSTP region. revision_level <int 0-65535> – Enter a number between 0 and 65535 to identify the MSTP region. This value, along with the name will identify the MSTP region configured on the Switch. The default setting is 0 . name <string> - Enter an alphanumeric string of up to 32 characters to uniquely identify the MSTP region on the Switch. This name , along with the revision_level value will identify the MSTP region configured on the
Switch. If no name is entered, the default name will be the MAC address of the device.
Example usage:
To configure the MSTP region of the Switch with revision_level 10 and the name “Trinity”:
DGS-3400:4#config stp mst_config_id revision_level 10 name Trinity
Command : config stp mst_config_id revision_level 10 name Trinity
Success.
DGS-3400:4#
config stp mst_ports
Purpose
Syntax
Description
Parameters
Used to update the port configuration for a MSTP instance. config stp mst_ports <portlist> instance_id <value 0-15>
{internalCost [auto | <value 1-20000000>] priority <value 0-240>}
This command will update the port configuration for a STP instance_id . If a loop occurs, the MSTP function will use the port priority to select an interface to put into the forwarding state. Set a higher priority value for interfaces to be selected for forwarding first. In instances where the priority value is identical, the MSTP function will implement the lowest port number into the forwarding state and other interfaces will be blocked. Remember that lower priority values mean higher priorities for forwarding packets.
<portlist> - Specifies a range of ports to be configured. The beginning and end of the port list range are separated by a dash. For example, 1-4 specifies all of the ports between port 1 and port 4. instance_id <value 0-15> - Enter a numerical value between 0 and 15 to identify the instance_id previously configured on the Switch. An entry of
0 will denote the CIST (Common and Internal Spanning Tree. internalCost – This parameter is set to represent the relative cost of forwarding packets to specified ports when an interface is selected within a STP instance. The default setting is auto . There are two options:
• auto – Selecting this parameter for the internalCost will set quickest route automatically and optimally for an interface. The default value is derived from the media speed of the interface.
• value 1-2000000 – Selecting this parameter with a value in the range of 1-2000000 will set the quickest route when a loop
75
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config stp mst_ports
occurs. A lower internalCost represents a quicker transmission. priority <value 0-240> - Enter a value between 0 and 240 to set the priority for the port interface. A higher priority will designate the interface to forward packets first. A lower number denotes a higher priority.
Example usage:
To designate ports 1 to 2 on, with instance ID 0, to have an auto internalCost and a priority of 0:
DGS-3400:4#config stp mst_ports 1-2 instance_id 0 internalCost auto priority 0
Command: config stp mst_ports 1-2 instance_id 0 internalCost auto priority 0
Success.
DGS-3400:4#
show stp
Purpose
Syntax
Description
Used to display the Switch’s current STP configuration. show stp
This command displays the Switch’s current STP configuration.
Parameters None.
Restrictions None.
Example usage:
To display the status of STP on the Switch:
Status 1: STP enabled with STP compatible version
DGS-3400:4#show stp
Command: show stp
STP Status : Enabled
STP Version : STP Compatible
Max Age : 20
Hello Time : 2
Forward Delay : 15
Max Age : 20
TX Hold Count : 3
Forwarding BPDU : Enabled
Loopback Detection : Enabled
LBD Recover Time : 60
DGS-3400:4#
Status 2 : STP enabled for RSTP
76
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show stp
Command: show stp
STP Status : Enabled
STP Version : RSTP
Max Age : 20
Hello Time : 2
Forward Delay : 15
Max Age : 20
TX Hold Count : 3
Forwarding BPDU : Enabled
Loopback Detection : Enabled
LBD Recover Time : 60
DGS-3400:4#
Status 3 : STP enabled for MSTP
DGS-3400:4#show stp
Command: show stp
STP Bridge Global Settings
---------------------------
STP Status : Enabled
STP Version : MSTP
Max Age : 20
Hello Time : 2
Forward Delay : 15
Max Hops : 20
TX Hold Count : 3
Forwarding BPDU : Enabled
LoopBack Detection : Enabled
LBD Recover Time : 60
DGS-3400:4#
show stp ports
Purpose
Syntax
Used to display the Switch’s current instance_id configuration. show stp ports <portlist>
Description
Parameters
This command displays the STP Instance Settings and STP Instance
Operational Status currently implemented on the Switch.
<portlist> − Specifies a range of ports to be configured. The beginning and end of the port list range are separated by a dash. For example, 1-4 specifies all of the ports between port 1 and port 4.
Restrictions None
Example usage:
To show STP ports:
77
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show stp ports 1-9
Command: show stp ports 1-9
MSTP Port Information
----------------------
Port Index : 1 , Hello Time: 2 /2 , Port STP enabled , LBD : No
External PathCost : Auto/200000 , Edge Port : No /No , P2P : Auto /Yes
Msti Designated Bridge Internal PathCost Prio Status Role
----- ------------------ ----------------- ---- ---------- ----------
0 8000/0050BA7120D6 200000 128 Forwarding Root
1 8001/0053131A3324 200000 128 Forwarding Master
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
78
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show stp instance_id
Purpose
Syntax
Used to display the Switch’s STP instance configuration show stp instance_id <value 0-15>
Description
Parameters
This command displays the Switch’s current STP Instance
Settings and the STP Instance Operational Status.
<value 0-15> - Enter a value defining the previously configured instance_id on the Switch. An entry of 0 will display the STP configuration for the CIST internally set on the Switch.
Restrictions None.
Example usage:
To display the STP instance configuration for instance 0 (the internal CIST) on the Switch:
DGS-3400:4#show stp instance 0
Command: show stp instance 0
STP Instance Settings
---------------------------
Instance Type : CIST
Instance Status : Enabled
Instance Priority : 32768(bridge priority : 32768, sys ID ext : 0 )
STP Instance Operational Status
--------------------------------
Designated Root Bridge : 32766/00-90-27-39-78-E2
External Root Cost : 200012
Regional Root Bridge : 32768/00-53-13-1A-33-24
Internal Root Cost : 0
Designated Bridge : 32768/00-50-BA-71-20-D6
Root Port : 1
Max Age : 20
Forward Delay : 15
Last Topology Change : 856
Topology Changes Count : 2987
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
show stp mst_config_id
Purpose
Syntax
Description
Used to display the MSTP configuration identification. show stp mst_config_id
This command displays the Switch’s current MSTP configuration identification.
Parameters None.
Restrictions None.
Example usage:
To show the MSTP configuration identification currently set on the Switch:
79
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show stp mst_config_id
Command: show stp mst_config_id
Current MST Configuration Identification
----------------------------------------
Configuration Name : 00:10:20:33:45:00 Revision Level :0
MSTI ID Vid list
------- -----------
CIST 1-4094
DGS-3400:4#
80
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
11
F
ORWARDING
D
ATABASE
C
OMMANDS
The layer 2 forwarding database commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create fdb create multicast_fdb config multicast_fdb config fdb aging_time delete fdb
<vlan_name 32> <macaddr> port <port>
<vlan_name 32> <macaddr>
<vlan_name 32> <macaddr> [add | delete] <portlist>
<sec 10-1000000>
<vlan_name 32> <macaddr> clear fdb show multicast_fdb
[vlan <vlan_name 32> | port <port> | all]
{vlan <vlan_name 32> | mac_address <macaddr>} show fdb {port <port> | vlan <vlan_name 32> | mac_address <macaddr> | static | aging_time} config multicast filtering_mode [<vlan_name 32> | all] [forward_all_groups | forward_unregistered_groups | filter_unregistered_groups] show multicast filtering_mode {vlan <vlan_name 32>}
Each command is listed, in detail, in the following sections.
create fdb
Purpose
Syntax
Description
Parameters
Restrictions
Used to create a static entry to the unicast MAC address forwarding table (database). create fdb <vlan_name 32> <macaddr> port <port>
This command will make an entry into the Switch’s unicast MAC address forwarding database.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that will be added to the forwarding table. port <port> − The port number corresponding to the MAC destination address. The Switch will always forward traffic to the specified device through this port.
Only administrator-level users can issue this command.
Example usage:
To create a unicast MAC FDB entry :
DGS-3400:4#create fdb default 00-00-00-00-01-02 port 5
Command: create fdb default 00-00-00-00-01-02 port 5
Success.
DGS-3400:4#
81
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create multicast_fdb
Purpose
Syntax
Description
Parameters
Restrictions
Used to create a static entry to the multicast MAC address forwarding table (database) create multicast_fdb <vlan_name 32> <macaddr>
This command will make an entry into the Switch’s multicast MAC address forwarding database.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that will be added to the forwarding table.
Only administrator-level users can issue this command.
Example usage:
To create multicast MAC forwarding :
DGS-3400:4#create multicast_fdb default 01-00-00-00-00-01
Command: create multicast_fdb default 01-00-00-00-00-01
Success.
DGS-3400:4#
config multicast_fdb
Purpose
Syntax
Description
Parameters
Used to configure the Switch’s multicast MAC address forwarding database. config multicast_fdb <vlan_name 32> <macaddr> [add | delete]
<portlist>
This command configures the multicast MAC address forwarding table.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that will be added to the multicast forwarding table.
[add | delete] − add will add ports to the forwarding table. delete will remove ports from the multicast forwarding table.
<portlist> − Specifies a port or range of ports to be configured.
Example usage:
To add multicast MAC forwarding:
DGS-3400:4#config multicast_fdb default 01-00-00-00-00-01 add 1-5
Command: config multicast_fdb default 01-00-00-00-00-01 add 1-5
Success.
DGS-3400:4#
82
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config fdb aging_time
Purpose
Syntax
Description
Parameters
Used to set the aging time of the forwarding database. config fdb aging_time <sec 10-1000000>
The aging time affects the learning process of the Switch. Dynamic forwarding table entries, which are made up of the source MAC addresses and their associated port numbers, are deleted from the table if they are not accessed within the aging time. The aging time can be from 10 to 1000000 seconds with a default value of 300 seconds. A very long aging time can result in dynamic forwarding table entries that are out-of-date or no longer exist. This may cause incorrect packet forwarding decisions by the Switch. If the aging time is too short however, many entries may be aged out too soon. This will result in a high percentage of received packets whose source addresses cannot be found in the forwarding table, in which case the
Switch will broadcast the packet to all ports, negating many of the benefits of having a switch.
<sec 10-1000000> − The aging time for the MAC address forwarding database value. The value in seconds may be between 10 and
1000000 seconds.
Example usage:
To set the FDB aging time:
DGS-3400:4#config fdb aging_time 300
Command: config fdb aging_time 300
Success.
DGS-3400:4#
delete fdb
Purpose
Syntax
Description
Parameters
Used to delete an entry to the Switch’s forwarding database. delete fdb <vlan_name 32> <macaddr>
This command is used to delete a previous entry to the Switch’s
MAC address forwarding database.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that will be added to the forwarding table.
Example usage:
To delete a permanent FDB entry:
DGS-3400:4#delete fdb default 00-00-00-00-01-02
Command: delete fdb default 00-00-00-00-01-02
Success.
DGS-3400:4#
Example usage:
To delete a multicast FDB entry:
83
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#delete fdb default 01-00-00-00-01-02
Command: delete fdb default 01-00-00-00-01-02
Success.
DGS-3400:4#
clear fdb
Purpose
Syntax
Description
Parameters
Used to clear the Switch’s forwarding database of all dynamically learned MAC addresses. clear fdb [vlan <vlan_name 32> | port <port> | all]
This command is used to clear dynamically learned entries to the
Switch’s forwarding database.
<vlan_name 32> − The name of the VLAN on which the MAC address resides. port <port> − The port number corresponding to the MAC destination address. The Switch will always forward traffic to the specified device through this port. all − Clears all dynamic entries to the Switch’s forwarding database.
Example usage:
To clear all FDB dynamic entries :
DGS-3400:4#clear fdb all
Command: clear fdb all
Success.
DGS-3400:4#
show multicast_fdb
Purpose
Syntax
Description
Parameters
Used to display the contents of the Switch’s multicast forwarding database. show mulitcast_fdb [vlan <vlan_name 32> | mac_address
<macaddr>]
This command is used to display the current contents of the
Switch’s multicast MAC address forwarding database.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that is present in the forwarding database table.
Restrictions None.
Example usage:
To display multicast MAC address table:
84
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show multicast_fdb vlan default
Command: show multicast_fdb vlan default
VLAN Name : default
MAC Address : 01-00-5E-00-00-00
Egress Ports : 1-5
Mode : Static
Total Entries : 1
DGS-3400:4#
show fdb
Purpose
Syntax
Used to display the current unicast MAC address forwarding database. show fdb {port <port> | vlan <vlan_name 32> | mac_address <macaddr> | static | aging_time}
Description
Parameters
This command will display the current contents of the Switch’s forwarding database. port <port> − The port number corresponding to the MAC destination address.
The Switch will always forward traffic to the specified device through this port.
<vlan_name 32> − The name of the VLAN on which the MAC address resides.
<macaddr> − The MAC address that is present in the forwarding database table. static − Displays the static MAC address entries. aging_time − Displays the aging time for the MAC address forwarding database.
Restrictions None.
Example usage:
To display unicast MAC address table:
DGS-3400:4#show fdb
Command: show fdb
Unicast MAC Address Aging Time = 300
VID VLAN Name MAC Address Port Type
---- ---------------- ----------------- ------ ----------------
1 default 00-00-39-34-66-9A 10 Dynamic
1 default 00-00-51-43-70-00 10 Dynamic
1 default 00-00-5E-00-01-01 10 Dynamic
1 default 00-00-74-60-72-2D 10 Dynamic
1 default 00-00-81-05-00-80 10 Dynamic
1 default 00-00-81-05-02-00 10 Dynamic
1 default 00-00-81-48-70-01 10 Dynamic
1 default 00-00-E2-4F-57-03 10 Dynamic
1 default 00-00-E2-61-53-18 10 Dynamic
1 default 00-00-E2-6B-BC-F6 10 Dynamic
1 default 00-00-E2-7F-6B-53 10 Dynamic
1 default 00-00-E2-82-7D-90 10 Dynamic
1 default 00-00-F8-7C-1C-29 10 Dynamic
1 default 00-01-02-03-04-00 CPU Self
1 default 00-01-02-03-04-05 10 Dynamic
1 default 00-01-30-10-2C-C7 10 Dynamic
1 default 00-01-30-FA-5F-00 10 Dynamic
1 default 00-02-3F-63-DD-68 10 Dynamic
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
85
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config multicast filtering_mode
Purpose
Syntax
Description
Parameters
Used to configure the multicast packet filtering mode for specific VLANs . config multicast filtering_mode [<vlan_name 32> | all]
[forward_all_groups | forward_unregistered_groups | filter_unregistered_groups]
This command will configure the multicast packet filtering mode for specified
VLANs on the Switch.
<vlan_name 32> - Specifies a VLAN by VLAN name to set. If no VLAN is defined here, the rule is applied to all VLANs
[forward_all_groups | forward_unregistered_groups | filter_unregistered_groups] – The user may set the filtering mode to any of these three options.
Example usage:
To configure the multicast filtering mode to forward all groups on all VLANs.
DGS-3400:4#config multicast filtering_mode all filter_unregistered_groups
Command: config multicast filtering_mode all filter_unregistered_groups
Success.
DGS-3400:4#
show multicast filtering_mode
Purpose Used to show the multicast packet filtering mode as configured for the VLANs. show multicast filtering_mode {vlan <vlan_name 32>} Syntax
Description
Parameters
This command will display the current multicast packet filtering mode for specified VLANs or all VLANs on the Switch. vlan <vlan_name 32> - Specifies a VLAN to to display multicast filtering status.
Restrictions None.
Example usage:
To view the multicast filtering mode for all VLANs:
DGS-3400:4#show multicast filtering_mode
Command: show multicast filtering_mode
VLAN Name Multicast Filter Mode
-------------------------------- ----------------------------- default filter_unregistered_groups v1 filter_unregistered_groups v2 filter_unregistered_groups v3 filter_unregistered_groups
DGS-3400:4#
86
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
12
T
RAFFIC
C
ONTROL
C
OMMANDS
On a computer network, packets such as Multicast packets and Broadcast packets continually flood the network as normal procedure. At times, this traffic may increase do to a malicious endstation on the network or a malfunctioning device, such as a faulty network card. Thus, switch throughput problems will arise and consequently affect the overall performance of the switch network. To help rectify this packet storm, the Switch will monitor and control the situation.
The packet storm is monitored to determine if too many packets are flooding the network, based on the threshold level provided by the user. Once a packet storm has been detected, the Switch will drop packets coming into the Switch until the storm has subsided. This method can be utilized by selecting the Drop option of the Action field in the window below. The Switch will also scan and monitor packets coming into the Switch by monitoring the Switch’s chip counter. This method is only viable for
Broadcast and Multicast storms because the chip only has counters for these two types of packets. Once a storm has been detected
(that is, once the packet threshold set below has been exceeded), the Switch will shutdown the port to all incoming traffic with the exception of STP BPDU packets, for a time period specified using the CountDown field. If this field times out and the packet storm continues, the port will be placed in a Shutdown Forever mode which will produce a warning message to be sent to the Trap
Receiver. Once in Shutdown Forever mode, the only method of recovering this port is to manually recoup it using the Port
Configuration window in the Administration folder and selecting the disabled port and returning it to an Enabled status. To utilize this method of Storm Control, choose the Shutdown option of the Action field in the window below.
The broadcast storm control commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config traffic control [<portlist> | all] {broadcast [enable | disable] | multicast [enable | disable] | dlf [enable | disable] | action [drop | shutdown] | threshold <value 0-255000> | countdown [<value 0> | <value 5-
30>] | time_interval <value 5-30>} config traffic control_recover
[<portlist> | all] config traffic trap [none | storm_occurred | storm_cleared | both] show traffic control {<portlist>}
Each command is listed, in detail, in the following sections.
config traffic control
Purpose
Syntax
Description
Parameters
Used to configure broadcast/multicast traffic control. config traffic control [<portlist> | all] broadcast [enable | disable] | multicast [enable | disable] | dlf [enable | disable] | action [drop | shutdown] | threshold <value 0-255000> | countdown [<value 0> | <value
5-30>] | time_interval <value 5-30>}
This command is used to configure traffic control.
<portlist> − Used to specify a range of ports to be configured for traffic control. This is specified by listing the lowest switch number and the beginning port number on that switch, separated by a colon. Then the highest switch number, and the highest port number of the range (also separated by a colon) are specified. The beginning and end of the port list range are separated by a dash. For example, 1:3 specifies switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3-2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4 − in numerical order. all − Specifies all ports are to be configured for traffic control on the Switch. broadcast [enable | disable] − Enables or disables broadcast storm control. multicast [enable | disable] − Enables or disables multicast storm control. dlf [enable | disable] − Enables or disables dlf traffic control. action – Used to configure the action taken when a storm control has been
87
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config traffic control
detected on the Switch. The user has two options:
• drop - Utilizes the hardware Traffic Control mechanism, which means the Switch’s hardware will determine the Packet Storm based on the Threshold value stated and drop packets until the issue is resolved.
• shutdown - Utilizes the Switch’s software Traffic Control mechanism to determine the Packet Storm occurring. Once detected, the port will deny all incoming traffic to the port except STP BPDU packets, which are essential in keeping the Spanning Tree operational on the Switch. If the countdown timer has expired and yet the Packet
Storm continues, the port will be placed in Shutdown Forever mode and is no longer operational until the user manually resets the port using the config ports enable command. Choosing this option obligates the user to configure the time_interval field as well, which will provide packet count samplings from the Switch’s chip to determine if a Packet Storm is occurring. threshold <value 0-255000> − The upper threshold at which the specified traffic control is switched on. The <value> is the number of broadcast/multicast/dlf packets, in packets per second (pps), received by the
Switch that will trigger the storm traffic control measures. The default setting is 131072. time_interval - The Interval will set the time between Multicast and Broadcast packet counts sent from the Switch’s chip to the Traffic Control function.
These packet counts are the determining factor in deciding when incoming packets exceed the Threshold value.
• sec 5-30 - The Interval may be set between 5 and 30 seconds with the default setting of 5 seconds. countdown - The countdown timer is set to determine the amount of time, in minutes, that the Switch will wait before shutting down the port that is experiencing a traffic storm. This parameter is only useful for ports configured as shutdown in the action field of this command and therefore will not operate for Hardware based Traffic Control implementations.
• 0 - 0 is the default setting for this field and 0 will denote that the port will never shutdown.
• minutes 5-30 – Select a time from 5 to 30 minutes that the Switch will wait before shutting down. Once this time expires and the port is still experiencing packet storms, the port will be placed in shutdown forever mode and can only be manually recovered using the config ports command mentioned previously in this manual.
Example usage:
To configure traffic control and enable broadcast storm control system wide:
DGS-3400:4#config traffic control all broadcast enable
Command: config traffic control all broadcast enable
Success.
DGS-3400:4#
88
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config traffic control_recover
Purpose
Syntax
Description
Parameters
Used to configure traffic control recover for any or all ports. config traffic control_recover [<portlist> | all]
Configuring a port for traffic control recover will require an administrator to restart the specified ports if storm control shuts down the port or ports.
That is, if a storm triggers the action shutdown for a port, it will remain in the shutdown even if the threshold falls below the value that triggers the storm control action.
<portlist> - Used to specify a range of ports. all – All ports on the Switch.
Example usage:
To configure traffic control recover:
DGS-3400:4#config traffic control_recover 1-6
Command: config traffic control_recover 1-6
Success.
DGS-3400:4#
config traffic trap
Purpose
Syntax
Description
Parameters
Used to configure traps for traffic control. config traffic trap [none | storm_occurred | storm_cleared | both]
Use this to enable traffic storm trap messages. none – Will send no Storm trap warning messages regardless of action taken by the Traffic Control mechanism. storm_occurred – Will send Storm Trap warning messages upon the occurrence of a Traffic Storm only. storm_cleared – Will send Storm Trap messages when a Traffic Storm has been cleared by the Switch only. both – Will send Storm Trap messages when a Traffic Storm has been both detected and cleared by the Switch.
Example usage:
To configure traffic control and enable broadcast storm control system wide:
DGS-3400:4#config traffic trap storm_occurred
Command: config traffic trap storm_occurred
Success.
DGS-3427:4#
89
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show traffic control
Purpose
Syntax
Used to display current traffic control settings. show traffic control {<portlist>}
Description
Parameters
This command displays the current storm traffic control configuration on the Switch.
<portlist> - Specify a range of ports to display. If unspecified, all ports will be displayed.
Restrictions None.
Example usage:
To display traffic control setting:
DGS-3400:4#show traffic control
Command: show traffic control
Traffic Storm Control Trap :[None]
Port Thres Broadcast Multicast DLF Action Count Time Shutdown
hold Storm Storm Storm down Interval Forever
---- ----- --------- --------- -------- -------- ----- -------- --------
1 1000 Enabled Disabled Disabled drop 0 5
2 1000 Enabled Disabled Disabled drop 0 5
3 1000 Enabled Disabled Disabled drop 0 5
4 1024 Disabled Disabled Disabled drop 0 5
5 1024 Disabled Disabled Disabled drop 0 5
6 1024 Disabled Disabled Disabled drop 0 5
7 1024 Disabled Disabled Disabled drop 0 5
8 1024 Disabled Disabled Disabled drop 0 5
9 1024 Disabled Disabled Disabled drop 0 5
10 1024 Disabled Disabled Disabled drop 0 5
11 1024 Disabled Disabled Disabled drop 0 5
12 1024 Disabled Disabled Disabled drop 0 5
13 1024 Disabled Disabled Disabled drop 0 5
14 1024 Disabled Disabled Disabled drop 0 5
15 1024 Disabled Disabled Disabled drop 0 5
16 1024 Disabled Disabled Disabled drop 0 5
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
90
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
13
Q
O
S C
OMMANDS
The DGS-3400 Series supports 802.1p priority queuing. The Switch has 8 priority queues, one of which is internal and unconfigurable. These priority queues are numbered from 6 (Class 6) — the highest priority queue — to 0 (Class 0) — the lowest priority queue. The eight priority tags specified in IEEE 802.1p (p0 to p7) are mapped to the Switch’s priority queues as follows:
• Priority 0 is assigned to the Switch’s Q2 queue.
• Priority 1 is assigned to the Switch’s Q0 queue.
• Priority 2 is assigned to the Switch’s Q1 queue.
• Priority 3 is assigned to the Switch’s Q3 queue.
• Priority 4 is assigned to the Switch’s Q4 queue.
• Priority 5 is assigned to the Switch’s Q5 queue.
• Priority 6 is assigned to the Switch’s Q6 queue.
• Priority 7 is assigned to the Switch’s Q6 queue.
Priority scheduling is implemented by the priority queues stated above. The Switch will empty the seven hardware priority queues in order, beginning with the highest priority queue, 6, to the lowest priority queue, 0. Each hardware queue will transmit all of the packets in its buffer before permitting the next lower priority to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue will begin transmitting any packets it may have received.
The commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config bandwidth_control [<portlist> | all] { rx_rate [no_limit | <value 1-156249>] | tx_rate [no_limit | <value 1-156249>]} show bandwidth_control config scheduling show scheduling config 802.1p user_priority show 802.1p user_priority config 802.1p default_priority show 802.1p default_priority config scheduling_mechanism show scheduling_mechanism enable hol_prevention disable hol_prevention show hol_prevention
{<portlist>}
<class_id 0-6> {max_packet <value 0-15>}
<priority 0-7> <class_id 0-6>
[<portlist> | all] <priority 0-7>
{<portlist>}
[strict | weight_fair]
Each command is listed, in detail, in the following sections.
91
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config bandwidth_control
Purpose
Syntax
Used to configure bandwidth control on a port by-port basis.
<portlist> {rx_rate [no_limit | <value 1-156249>] | tx_rate
[no_limit | <value 1-156249>]}
Description The command is used to configure bandwidth on a port by-port basis.
Parameters <portlist> − Specifies a port or range of ports to be configured. rx_rate − Specifies that one of the parameters below ( no_limit or
<value 1-156249> ) will be applied to the rate at which the above specified ports will be allowed to receive packets no_limit − Specifies that there will be no limit on the rate of packets received by the above specified ports.
<value 1-156249> − Specifies the packet limit, in Kbps, that the above ports will be allowed to receive. tx_rate − Specifies that one of the parameters below ( no_limit or
<value 1-156249> ) will be applied to the rate at which the above specified ports will be allowed to transmit packets. no_limit − Specifies that there will be no limit on the rate of packets received by the above specified ports.
<value 1-156249> − Specifies the packet limit, in Kbps, that the above ports will be allowed to receive.
Example usage:
To configure bandwidth control:
DGS-3400:4#config bandwidth_control 1-8 rx_rate 64 tx_rate 64
Command: config bandwidth_control 1-8 rx_rate 64 tx_rate 64
Success.
DGS-3400:4#
show bandwidth_control
Purpose
Syntax
Used to display the bandwidth control table. show bandwidth_control {<portlist>}
Description The command displays the current bandwidth control configuration on the Switch, on a port-by-port basis.
Parameters <portlist> − Specifies a port or range of ports to be viewed.
Restrictions None.
Example usage:
To display bandwidth control settings:
92
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show bandwidth_control 1-10
Command: show bandwidth_control 1-10
Bandwidth Control Table
Port RX Rate (64Kbit/sec) TX_Rate (64Kbit/sec)
---- ------------------------ ----------------------
1 no_limit 10
2 no_limit 10
3 no_limit 10
4 no_limit 10
5 no_limit 10
6 no_limit 10
7 no_limit 10
8 no_limit 10
9 no_limit 10
10 no_limit 10
DGS-3400:4#
config scheduling
Purpose
Syntax
Description
Parameters
Used to configure the traffic scheduling mechanism for each COS queue. config scheduling <class_id 0-6> {max_packet <value 0-15>}
The Switch contains 8 hardware priority queues, one of which is internal and unconfigurable. Incoming packets must be mapped to one of these seven queues. This command is used to specify the rotation by which these seven hardware priority queues are emptied.
The Switch’s default (if the config scheduling command is not used, or if the config scheduling command is entered with the max_packet set to
0) is to empty the hardware priority queues in order − from the highest priority queue (hardware queue 6) to the lowest priority queue (hardware queue 0). Each hardware queue will transmit all of the packets in its buffer before allowing the next lower priority queue to transmit its packets. When the lowest hardware priority queue has finished transmitting all of its packets, the highest hardware priority queue can again transmit any packets it may have received.
The max_packets parameter allows you to specify the maximum number of packets a given hardware priority queue can transmit before allowing the next lowest hardware priority queue to begin transmitting its packets.
A value between 0 and 15 can be specified. For example, if a value of 3 is specified, then the highest hardware priority queue (number 6) will be allowed to transmit 3 packets − then the next lowest hardware priority queue (number 5) will be allowed to transmit 3 packets, and so on, until all of the queues have transmitted 3 packets. The process will then repeat.
<class_id 0-6> − This specifies to which of the seven hardware priority queues the config scheduling command will apply. The seven hardware priority queues are identified by number − from 0 to 6 − with the 0 queue being the lowest priority. max_packet <value 0-15> − Specifies the maximum number of packets the above specified hardware priority queue will be allowed to transmit before allowing the next lowest priority queue to transmit its packets. `A value between 0 and 15 can be specified.
Example usage:
To configure the traffic scheduling mechanism for each queue:
93
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# config scheduling 0 max_packet 12
Command: config scheduling 0 max_packet 12
Success.
DGS-3400:4#
show scheduling
Purpose Used to display the currently configured traffic scheduling on the
Switch. show scheduling Syntax
Description The command will display the current traffic scheduling mechanisms in use on the Switch.
Parameters None.
Restrictions None.
Example usage:
To display the current scheduling configuration:
DGS-3400:4#show scheduling
Command: show scheduling
QOS Output Scheduling
MAX. Packets
-------------
Class-0 1
Class-1 2
Class-2 3
Class-3 4
Class-4 5
Class-5 6
Class-6 7
DGS-3400:4#
config 802.1p user_priority
Purpose
Syntax
Description
Used to map the 802.1p user priority of an incoming packet to one of the seven hardware queues available on the Switch. config 802.1p user_priority <priority 0-7> <class_id 0-6>
This command allows you to configure the way the Switch will map an incoming packet, based on its 802.1p user priority, to one of the seven available hardware priority queues on the Switch.
The Switch’s default is to map the following incoming 802.1p user priority values to the seven hardware priority queues:
802.1p Hardware Queue Remark
0 2 Mid-low
1 0 Lowest
2 1 Lowest
3 3 Mid-low
4 4 Mid-high
5 5 Mid-high
6 6 Highest
7 6 Highest
94
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1p user_priority
This mapping scheme is based upon recommendations contained in
IEEE 802.1D.
You can change this mapping by specifying the 802.1p user priority you want to go to the <class_id 0-6> (the number of the hardware queue).
<priority 0-7> − The 802.1p user priority you want to associate with the <class_id 0-6> (the number of the hardware queue) with.
<class_id 0-6> − The number of the Switch’s hardware priority queue. The Switch has seven hardware priority queues available.
They are numbered between 0 (the lowest priority) and 6 (the highest priority).
Example usage:
To configure 802.1 user priority on the Switch:
DGS-3400:4# config 802.1p user_priority 1 6
Command: config 802.1p user_priority 1 6
Success.
DGS-3400:4#
show 802.1p user_priority
Purpose Used to display the current mapping between an incoming packet’s
802.1p priority value and one of the Switch’s seven hardware priority queues. show 802.1p user_priority Syntax
Description The command displays the current mapping of an incoming packet’s 802.1p priority value to one of the
Switch’s seven hardware priority queues.
Parameters None.
Restrictions None.
Example usage:
To show 802.1p user priority:
DGS-3400:4#show 802.1p user_priority
Command: show 802.1p user_priority
QOS Class of Traffic
Priority-0 -> <Class-2>
Priority-1 -> <Class-0>
Priority-2 -> <Class-1>
Priority-3 -> <Class-3>
Priority-4 -> <Class-4>
Priority-5 -> <Class-5>
Priority-6 -> <Class-6>
Priority-7 -> <Class-6>
DGS-3400:4#
95
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1p default_priority
Purpose
Syntax
Description
Parameters
Used to configure the 802.1p default priority settings on the Switch. If an untagged packet is received by the Switch, the priority configured with this command will be written to the packet’s priority field. config 802.1p default_priority [<portlist> | all] <priority 0-7>
This command allows you to specify default priority handling of untagged packets received by the Switch. The priority value entered with this command will be used to determine which of the seven hardware priority queues the packet is forwarded to.
<portlist> − Specifies a port or range of ports to be configured. all − Specifies that the command applies to all ports on the Switch.
<priority 0-7> − The priority value you want to assign to untagged packets received by the Switch or a range of ports on the Switch.
Example usage:
To configure 802.1p default priority on the Switch:
DGS-3400:4#config 802.1p default_priority all 5
Command: config 802.1p default_priority all 5
Success.
DGS-3400:4#
show 802.1 default_priority
Purpose Used to display the currently configured 802.1p priority value that will be assigned to an incoming, untagged packet before being forwarded to its destination.
Syntax show 802.1p default_priority {<portlist>}
Description The command displays the currently configured 802.1p priority value that will be assigned to an incoming, untagged packet before being forwarded to its destination.
Parameters <portlist> − Specifies a port or range of ports to be configured.
Restrictions None.
Example usage:
To display the current 802.1p default priority configuration on the Switch:
96
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# show 802.1p default_priority
Command: show 802.1p default_priority
Port Priority
------- -----------
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
12 0
13 0
14 0
15 0
16 0
17 0
18 0
19 0
20 0
21 0
22 0
23 0
24 0
DGS-3400:4#
config scheduling_mechanism
Purpose Used to configure the scheduling mechanism for the QoS function
Syntax config scheduling_mechanism [strict | weight_fair]
Description The command allows the user to select between a weight fair and a Strict mechanism for emptying the priority classes of service of the QoS function. The Switch contains seven hardware priority classes of service. Incoming packets must be mapped to one of these seven hardware priority classes of service. This command is used to specify the rotation by which these seven hardware priority classes of service are emptied.
The Switch’s default is to empty the seven priority classes of service in order − from the highest priority class of service (queue 7) to the lowest priority class of service (queue 0). Each queue will transmit all of the packets in its buffer before allowing the next lower priority class of service to transmit its packets. Lower classes of service will be preempted from emptying its queue if a packet is received on a higher class of service. The packet that was received on the higher class of service will transmit its packet before allowing the lower class to resume clearing its queue.
Parameters strict – Entering the strict parameter indicates that the highest class of service is the first to be processed. That is, the highest class of service should finish emptying before the others begin. weight_fair – Entering the weight fair parameter indicates that the priority classes of service will empty packets in a fair weighted order. That is to say that they will be emptied in an even distribution.
97
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure the traffic scheduling mechanism for each COS queue:
DGS-3400:4#config scheduling_mechanism strict
Command: config scheduling_mechanism strict
Success.
DGS-3400:4#
show scheduling_mechanism
Purpose
Syntax
Description
Used to display the current traffic scheduling mechanisms in use on the Switch. show scheduling_mechanism
This command will display the current traffic scheduling mechanisms in use on the Switch.
Parameters None.
Restrictions None.
Example Usage:
To show the scheduling mechanism:
DGS-3400:4#show scheduling_mechanism
Command: show scheduling_mechanism
QOS scheduling_mechanism
CLASS ID Mechanism
-------- -----------
Class-0 strict
Class-1 strict
Class-2 strict
Class-3 strict
Class-4 strict
Class-5 strict
Class-6 strict
DGS-3400:4#
enable hol_prevention
Purpose
Syntax
Used to enable HOL prevention. enable hol_prevention
Description The command enables Head of Line prevention.
Parameters None.
Restrictions You must have administrator privileges.
Example Usage:
To enable HOL prevention:
98
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#enable hol_prevention
Command: enable hol_prevention
Success.
DGS-3400:4#
disable hol_prevention
Purpose
Syntax
Used to disable HOL prevention. disable hol_prevention
Description The disable hol_prevention command disables Head of Line prevention.
Parameters None.
Restrictions You must have administrator privileges.
Example usage:
To disable HOL prevention:
DGS-3400:4#disable hol_prevention
Command: disable hol_prevention
Success.
DGS-3400:4#
show hol_prevention
Purpose Used to show HOL prevention.
Syntax show hol_prevention
Description The command displays the Head of Line prevention state.
Parameters None.
Restrictions None.
Example usage:
To view the HOL prevention status:
DGS-3400:4#show hol_prevention
Command: show hol_prevention
Device HOL Prevention State Enabled
DGS-3400:4#
99
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
14
P
ORT
M
IRRORING
C
OMMANDS
The port mirroring commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config mirror port enable mirror disable mirror show mirror
<port> [add | delete] source ports <portlist> [rx | tx | both]
Each command is listed, in detail, in the following sections.
config mirror port
Purpose
Syntax
Description
Parameters
Restrictions
Used to configure a mirror port − source port pair on the Switch.
Traffic from any source port to a target port can be mirrored for realtime analysis. A logic analyzer or an RMON proble can then be attached to study the traffic crossing the source port in a completely obtrusive manner. config mirror port <port> [add | delete] source ports <portlist> [rx
| tx | both]
This command allows a range of ports to have all of their traffic also sent to a designated port, where a network sniffer or other device can monitor the network traffic. In addition, you can specify that only traffic received by or sent by one or both is mirrored to the Target port.
<port> − This specifies the Target port (the port where mirrored packets will be received). The target port must be configured in the same VLAN and must be operationg at the same speed a s the source port. If the target port is operating at a lower speed, the source port will be forced to drop its operating speed to match that of the target port.
[add | delete] – Specifies if the user wishes to add or delete ports to be mirrored that are specified in the source ports parameter. source ports – The port or ports being mirrored. This cannot include the Target port.
<portlist> − This specifies a port or range of ports that will be mirrored.
That is, the range of ports in which all traffic will be copied and sent to the Target port. rx − Allows the mirroring of only packets received by (flowing into) the port or ports in the port list. tx − Allows the mirroring of only packets sent to (flowing out of) the port or ports in the port list. both − Mirrors all the packets received or sent by the port or ports in the port list.
The Target port cannot be listed as a source port. Only administratorlevel users can issue this command.
Example usage:
To add the mirroring ports:
100
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# config mirror port 1 add source ports 2-7 both
Command: config mirror port 1 add source ports 2-7 both
Success.
DGS-3400:4#
Example usage:
To delete the mirroring ports:
DGS-3400:4#config mirror port 1 delete source port 2-4
Command: config mirror 1 delete source 2-4
Success.
DGS-3400:4#
enable mirror
Purpose
Syntax
Description
Used to enable a previously entered port mirroring configuration. enable mirror
This command, combined with the disable mirror command below, allows you to enter a port mirroring configuration into the Switch, and then turn the port mirroring on and off without having to modify the port mirroring configuration.
Parameters None.
Example usage:
To enable mirroring configurations:
DGS-3400:4#enable mirror
Command: enable mirror
Success.
DGS-3400:4#
disable mirror
Purpose
Syntax
Used to disable a previously entered port mirroring configuration. disable mirror
Description This command, combined with the enable mirror command above, allows you to enter a port mirroring configuration into the Switch, and then turn the port mirroring on and off without having to modify the port mirroring configuration.
Parameters None.
Example usage:
To disable mirroring configurations:
101
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#disable mirror
Command: disable mirror
Success.
DGS-3400:4#
show mirror
Purpose
Syntax
Description
Used to show the current port mirroring configuration on the Switch.
show mirror
This command displays the current port mirroring configuration on the Switch.
Parameters None
Restrictions None.
Example usage:
To display mirroring configuration:
DGS-3400:4#show mirror
Command: show mirror
Current Settings
Mirror Status : Enabled
Target Port : 1
Mirrored Port :
RX :
TX : 5-7
DGS-3400:4#
102
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
15
VLAN C
OMMANDS
The VLAN commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create vlan delete vlan config vlan config gvrp enable gvrp disable gvrp show vlan show gvrp
<vlan_name 32> {tag <vlanid 2-4094> | advertisement}
<vlan_name 32>
<vlan_name 32> {[add [tagged | untagged | forbidden] | delete]
<portlist> | advertisement [enable | disable]}
[<portlist> | all] {state [enable | disable] | ingress_checking [enable
| disable] | acceptable_frame [tagged_only | admit_all] | pvid
<vlanid 1-4094>}
{<vlan_name 32>}
{<portlist>}
Each command is listed, in detail, in the following sections.
NOTE: If you are plan to use access control, read the discussion of the access profile rule limitations in Access Control List (ACL) Commands below.
create vlan
Purpose
Syntax
Description
Parameters
Restrictions
Used to create a VLAN on the Switch. create vlan <vlan_name 32> {tag <vlanid 2-4094> | advertisement}
This command allows you to create a VLAN on the Switch.
<vlan_name 32> − The name of the VLAN to be created.
<vlanid 2-4094> − The VLAN ID of the VLAN to be created. Allowed values = 2-4094 advertisement − Specifies that the VLAN is able to join GVRP. If this parameter is not set, the VLAN cannot be configured to have forbidden ports.
Each VLAN name can be up to 32 characters. If the VLAN is not given a tag, it will be a port-based VLAN. Up to 4094 static VLANs may be created per configuration. Only administrator-level users can issue this command.
Example usage:
To create a VLAN v1, tag 2:
DGS-3400:4#create vlan v1 tag 2
Command: create vlan v1 tag 2
Success.
DGS-3400:4#
103
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete vlan
Purpose
Syntax
Description
Parameters
Used to delete a previously configured VLAN on the Switch. delete vlan <vlan_name 32>
This command will delete a previously configured VLAN on the
Switch.
<vlan_name 32> − The VLAN name of the VLAN to delete.
Example usage:
To remove the VLAN “v1”:
DGS-3400:4#delete vlan v1
Command: delete vlan v1
Success.
DGS-3400:4#
config vlan
Purpose
Syntax
Description
Parameters
Used to add additional ports to a previously configured VLAN. config vlan <vlan_name 32> {[add [tagged | untagged | forbidden] | delete] <portlist> | advertisement [enable | disable]}
This command allows you to add ports to the port list of a previously configured VLAN. You can specify the additional ports as tagging, untagging, or forbidden. The default is to assign the ports as untagging.
<vlan_name 32> − The name of the VLAN you want to add ports to. add − Entering the add parameter will add ports to the VLAN. There are three types of ports to add:
•
• tagged − Specifies the additional ports as tagged. untagged − Specifies the additional ports as untagged.
• forbidden − Specifies the additional ports as forbidden delete − Deletes ports from the specified VLAN.
<portlist> − A port or range of ports to add to, or delete from the specified VLAN. advertisement [enable | disable] − Enables or disables GVRP on the specified VLAN.
Example usage:
To add 4 through 8 as tagged ports to the VLAN v1:
DGS-3400:4#config vlan v1 add tagged 4-8
Command: config vlan v1 add tagged 4-8
Success.
DGS-3400:4#
To delete ports from a VLAN:
104
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config vlan v1 delete 6-8
Command: config vlan v1 delete 6-8
Success.
DGS-3400:4#
config gvrp
Purpose
Syntax
Description
Parameters
Used to configure GVRP on the Switch. config gvrp [<portlist> | all] {state [enable | disable] | ingress_checking [enable | disable] | acceptable_frame
[tagged_only | admit_all] | pvid <vlanid 1-4094>}
This command is used to configure the Group VLAN Registration
Protocol on the Switch. You can configure ingress checking, the sending and receiving of GVRP information, and the Port VLAN ID
(PVID).
<portlist> − A port or range of ports for which you want to enable
GVRP for. all − Specifies all of the ports on the Switch. state [enable | disable] − Enables or disables GVRP for the ports specified in the port list. ingress_checking [enable | disable] − Enables or disables ingress checking for the specified port list. acceptable_frame [tagged_only | admit_all] – This parameter states the frame type that will be accepted by the Switch for this function. tagged_only implies that only VLAN tagged frames will be accepted, while admit_all implies tagged and untagged frames will be accepted byt the Switch. pvid <vlanid 1-4094> – Specifies the default VLAN associated with the port.
Example usage:
To set the ingress checking status, the sending and receiving GVRP information :
DGS-3400:4#config gvrp 1-4 state enable ingress_checking enable acceptable_frame tagged_only pvid 2
Command: config gvrp 1-4 state enable ingress_checking enable acceptable_frame tagged_only pvid 2
Success.
DGS-3400:4#
105
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable gvrp
Purpose
Syntax
Used to enable GVRP on the Switch. enable gvrp
Description This command, along with disable gvrp below, is used to enable and disable GVRP on the Switch, without changing the GVRP configuration on the Switch.
Parameters None.
Example usage:
To enable the generic VLAN Registration Protocol (GVRP):
DGS-3400:4#enable gvrp
Command: enable gvrp
Success.
DGS-3400:4#
disable gvrp
Purpose
Syntax
Used to disable GVRP on the Switch. disable gvrp
Description This command, along with enable gvrp , is used to enable and disable GVRP on the Switch, without changing the GVRP configuration on the Switch.
Parameters None.
Example usage:
To disable the Generic VLAN Registration Protocol (GVRP):
DGS-3400:4#disable gvrp
Command: disable gvrp
Success.
DGS-3400:4#
show vlan
Purpose
Syntax
Used to display the current VLAN configuration on the Switch show vlan {<vlan_name 32>}
Description This command displays summary information about each VLAN including the VLAN ID, VLAN name, the Tagging/Untagging status, and the Member/Non-member/Forbidden status of each port that is a member of the VLAN.
Parameters <vlan_name 32> − The VLAN name of the VLAN for which you want to display a summary of settings.
Restrictions None.
Example usage:
106
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To display the Switch’s current VLAN settings:
DGS-3400:4#show vlan
Command: show vlan
VID : 1 VLAN Name : default
VLAN TYPE : static Advertisement : Enabled
Member ports : 32,49-50
Static ports : 32
Untagged ports : 32
Forbidden ports :
VID : 2 VLAN Name : 1
VLAN TYPE : static Advertisement : Enabled
Member ports : 33-40,49-50
Static ports : 33-40
Untagged ports : 33,35,37,39
Forbidden ports :
Total Entries : 2
DGS-3400:4#
show gvrp
Purpose
Syntax
Used to display the GVRP status for a port list on the Switch. show gvrp {<portlist>}
Description
Parameters
This command displays the GVRP status for a port list on the Switch
<portlist> − Specifies a port or range of ports for which the GVRP status is to be displayed.
Restrictions None.
Example usage:
To display GVRP port status:
107
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show gvrp
Command: show gvrp
Global GVRP : Disabled
Port PVID GVRP Ingress Checking Acceptable Frame Type
------ ---- -------- ---------------- ---------------------------
1 1 Disabled Enabled All Frames
2 1 Disabled Enabled All Frames
3 1 Disabled Enabled All Frames
4 1 Disabled Enabled All Frames
5 1 Disabled Enabled All Frames
6 1 Disabled Enabled All Frames
7 1 Disabled Enabled All Frames
8 1 Disabled Enabled All Frames
9 1 Disabled Enabled All Frames
10 1 Disabled Enabled All Frames
11 1 Disabled Enabled All Frames
12 1 Disabled Enabled All Frames
13 1 Disabled Enabled All Frames
14 1 Disabled Enabled All Frames
15 1 Disabled Enabled All Frames
16 1 Disabled Enabled All Frames
17 1 Disabled Enabled All Frames
18 1 Disabled Enabled All Frames
19 1 Disabled Enabled All Frames
20 1 Disabled Enabled All Frames
21 1 Disabled Enabled All Frames
22 1 Disabled Enabled All Frames
23 1 Disabled Enabled All Frames
24 1 Disabled Enabled All Frames
25 1 Disabled Enabled All Frames
26 1 Disabled Enabled All Frames
Total Entries : 26
DGS-3400:4#
108
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
16
L
INK
A
GGREGATION
C
OMMANDS
The link aggregation commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create link_aggregation group_id
<value 1-32> {type [lacp | static]}
<value 1-32> delete link_aggregation group_id config link_aggregation group_id config link_aggregation algorithm
<value1-32> {master_port <port> | ports <portlist> state [enable
| disable]}
[mac_source | mac_destination | mac_source_dest | ip_source
| ip_destination | ip_source_dest] show link_aggregation {group_id <value 1-32> | algorithm} config lacp_port <portlist> mode [active | passive] show lacp_port {<portlist>}
Each command is listed, in detail, in the following sections.
create link_aggregation
Purpose
Syntax
Description
Parameters
Used to create a link aggregation group on the Switch. create link_aggregation group_id <value 1-32> {type[lacp | static]}
This command will create a link aggregation group with a unique identifier.
<value> − Specifies the group ID. The Switch allows up to 32 link aggregation groups to be configured. The group number identifies each of the groups. type – Specify the type of link aggregation used for the group. If the type is not specified the default type is static .
• lacp – This designates the port group as LACP compliant.
LACP allows dynamic adjustment to the aggregated port group.
LACP compliant ports may be further configured (see config lacp_ports). LACP compliant must be connected to LACP compliant devices.
• static – This designates the aggregated port group as static.
Static port groups can not be changed as easily as LACP compliant port groups since both linked devices must be manually configured if the configuration of the trunked group is changed. If static link aggregation is used, be sure that both ends of the connection are properly configured and that all ports have the same speed/duplex settings.
Example usage:
To create a link aggregation group:
109
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create link_aggregation group_id 1
Command: create link_aggregation group_id 1
Success.
DGS-3400:4#
delete link_aggregation group_id
Purpose
Syntax
Description
Parameters
Used to delete a previously configured link aggregation group. delete link_aggregation group_id <value 1-32>
This command is used to delete a previously configured link aggregation group.
<value 1-32> − Specifies the group ID. The Switch allows up to 32 link aggregation groups to be configured. The group number identifies each of the groups.
Example usage:
To delete link aggregation group:
DGS-3400:4#delete link_aggregation group_id 6
Command: delete link_aggregation group_id 6
Success.
DGS-3400:4#
config link_aggregation
Purpose
Syntax
Description
Parameters
Used to configure a previously created link aggregation group. config link_aggregation group_id <value 1-32> {master_port <port>
| ports <portlist> | state [enable | disable]
This command allows you to configure a link aggregation group that was created with the create link_aggregation command above. The DGS-
3400 supports link aggregation cross box which specifies that link aggregation groups may be spread over multiple switches in the switching stack. group _id <value 32> − Specifies the group ID. The Switch allows up to
32 link aggregation groups to be configured. The group number identifies each of the groups. master_port <port> − Master port ID. Specifies which port (by port number) of the link aggregation group will be the master port. All of the ports in a link aggregation group will share the port configuration with the master port. ports <portlist> − Specifies a port or range of ports that will belong to the link aggregation group. state [enable | disable] − Allows you to enable or disable the specified link aggregation group. administrator-level users can issue this command. Link aggregation groups may not overlap.
Example usage:
To define a load-sharing group of ports, group-id 1,master port 5 with group members ports 5-7 plus port 9:
110
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config link_aggregation group_id 1 master_port 5 ports 5-7, 9
Command: config link_aggregation group_id 1 master_port 5 ports 5-7, 9
Success.
DGS-3400:4#
config link_aggregation algorithm
Purpose
Syntax
Used to configure the link aggregation algorithm. config link_aggregation algorithm [mac_source | mac_destination | mac_source_dest | ip_source | ip_destination | ip_source_dest]
Description This command configures the part of the packet examined by the Switch when selecting the egress port for transmitting load-sharing data. This feature is only available using the address-based load-sharing algorithm.
Parameters mac_source − Indicates that the Switch should examine the MAC source address. mac_destination − Indicates that the Switch should examine the MAC destination address. mac_source_dest − Indicates that the Switch should examine the MAC source and destination addresses ip_source − Indicates that the Switch should examine the IP source address. ip_destination − Indicates that the Switch should examine the IP destination address. ip_source_dest − Indicates that the Switch should examine the IP source address and the destination address.
Example usage:
To configure link aggregation algorithm for mac-source-dest:
DGS-3400:4#config link_aggregation algorithm mac_source_dest
Command: config link_aggregation algorithm mac_source_dest
Success.
DGS-3400:4#
show link_aggregation
Purpose
Syntax
Description
Used to display the current link aggregation configuration on the
Switch. show link_aggregation {group_id <value 1-32> | algorithm}
This command will display the current link aggregation configuration of the Switch.
Parameters <value 1-32> − Specifies the group ID. The Switch allows up to 32 link aggregation groups to be configured. The group number identifies each of the groups. algorithm − Allows you to specify the display of link aggregation by the algorithm in use by that group.
Restrictions None.
111
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To display Link Aggregation configuration:
DGS-3400:4#show link_aggregation
Command: show link_aggregation
Link Aggregation Algorithm = MAC-source-dest
Group ID : 1
Type : LACP
Master Port : 50
Member Port : 49-50
Active Port :
Status : Disabled
Flooding Port : 0
DGS-3400:4#
config lacp_port
Purpose
Syntax
Description
Parameters
Used to configure settings for LACP compliant ports. config lacp_port <portlist> mode [active | passive]
This command is used to configure ports that have been previously designated as LACP ports (see create link_aggregation ).
<portlist> − Specifies a port or range of ports to be configured. mode – Select the mode to determine if LACP ports will process
LACP control frames.
• active – Active LACP ports are capable of processing and sending LACP control frames. This allows LACP compliant devices to negotiate the aggregated link so the group may be changed dynamically as needs require. In order to utilize the ability to change an aggregated port group, that is, to add or subtract ports from the group, at least one of the participating devices must designate
LACP ports as active. Both devices must support LACP.
• passive – LACP ports that are designated as passive cannot process LACP control frames. In order to allow the linked port group to negotiate adjustments and make changes dynamically, at one end of the connection must have “active” LACP ports (see above).
Example usage:
To configure LACP port mode settings:
DGS-3400:4#config lacp_port 1-12 mode active
Command: config lacp_port 1-12 mode active
Success.
DGS-3400:4#
112
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show lacp_port
Purpose
Syntax
Description
Used to display current LACP port mode settings. show lacp_port {<portlist>}
This command will display the LACP mode settings as they are currently configured.
Parameters <portlist> - Specifies a port or range of ports to be configured.
If no parameter is specified, the system will display the current LACP status for all ports.
Restrictions None.
Example usage:
To display LACP port mode settings:
DGS-3400:4#show lacp_port 1-10
Command: show lacp_port 1-10
Port Activity
------ --------
1 Active
2 Active
3 Active
4 Active
5 Active
6 Active
7 Active
8 Active
9 Active
10 Active
DGS-3400:4#
113
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
17
IP-MAC B
INDING
C
OMMANDS
The IP-MAC Binding commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create address_binding ip_mac ipaddress config address_binding ip_mac ipaddress
<ipaddr> mac_address <macaddr> {ports [ portlist | all]}
<ipaddr> mac_address <macaddr> {ports [ portlist | all]} config address_binding ip_mac ports [<portlist> | all] state [enable | disable] show address_binding delete address-binding
[ip_mac {[all | ipaddress <ipaddr> mac_address
<macaddr>]} | blocked {[all | vlan_name <vlan_name> mac_address <macaddr>]} | ports]
[ip-mac [ipaddress <ipaddr> mac_address <macaddr>
|all] | blocked [all | vlan_name <vlan_name> mac_address <macaddr>]]
Each command is listed, in detail, in the following sections.
create address_binding ip_mac ipaddress
Purpose
Syntax
Description
Parameters
Used to create an IP-MAC Binding entry. create address_binding ip_mac ipaddress <ipaddr> mac_address <macaddr> { ports [ portlist | all]}
This command will create an IP-MAC Binding entry.
<ipaddr> The IP address of the device where the IP-MAC binding is made.
<macaddr> The MAC address of the device where the IP-MAC binding is made. ports [portlist | all] - Used to specify the ports where the IP-MAC binding entry applies. If no ports are specified the binding applies to all ports.
Example usage:
To create address binding on the Switch:
DGS-3400:4#create address_binding ip_mac ipaddress 10.1.1.3 mac_address 00-00-00-00-00-04
Command: create address_binding ip_mac ipaddress 10.1.1.3 mac_address 00-00-00-00-00-04
Success.
DGS-3400:4#
114
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config address_binding ip_mac ipaddress
Purpose Used to Configure a IP-MAC Binding entry.
Syntax
Description
Parameters config address_binding ip_mac ipaddress <ipaddr> mac_address
<macaddr> {ports [ portlist | all]}
This command will configure an IP-MAC Binding entry.
<ipaddr> The IP address of the device where the IP-MAC binding is made.
<macaddr> The MAC address of the device where the IP-MAC binding is made. ports [portlist | all] – Used to specify the ports where the IP-MAC binding entry applies. If no ports are specified the binding applies to all ports.
Example usage:
To configure address binding on the Switch:
DGS-3400:4#config address_binding ip_mac ipaddress 10.1.1.3 mac_address 00-00-00-00-00-05
Command: config address_binding ip_mac ipaddress 10.1.1.3 mac_address 00-00-00-00-00-05
Success.
DGS-3400:4#
config address_binding ip_mac ports
Purpose
Syntax
Description
Parameters
Used to configure an IP-MAC state to enable or disable for specified ports. config address_binding ip_mac ports [<portlist> | all] state
[enable | disable]
This command will configure IP-MAC state to enable or disable for specified ports.
<portlist> − Specifies a port or range of port to be configureds. all – specifies all ports on the switch. state [enable | disable] – Enables or disables the specified range of ports.
Example usage:
To configure address binding on the Switch:
DGS-3400:4#config address_binding ip_mac ports 2 state enable
Command: config address_binding ip_mac ports 2 state enable
Success.
DGS-3400:4#
115
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show address_binding
Purpose Used to display IP-MAC Binding entries.
Syntax
Description show address_binding [ip_mac {[all | ipaddress <ipaddr> mac_address <macaddr>]} | blocked {[all | vlan_name <vlan_name> mac_address <macaddr>]} | ports]
This command will display IP-MAC Binding entries. Three different kinds of information can be viewed.
• IP_MAC – Address Binding enties can be viewed by entering the physical and IP addresses of the device.
• Blocked – Blocked address binding entries (bindings between
VLAN names and MAC addresses) can be viewed by entering the
VLAN name and the physical address of the device.
• Ports - The number of enabled ports on a device.
Parameters all – For IP_MAC binding all specifies all the IP-MAC binding entries; for
Blocked Address Binding entries all specifies all the blocked VLANs and their bound phsical addresses.
<ipaddr> The IP address of the device where the IP-MAC binding is made.
<macaddr> The MAC address of the device where the IP-MAC binding is made.
<vlan_name> The VLAN name of the VLAN that is bound to a MAC address in order to block a specific device on a known VLAN.
Restrictions None.
Example usage:
To show IP-MAC Binding on the Switch:
DGS-3400:4#show address_binding ip_mac ipaddress 10.1.1.8 mac_address 00-00-00-00-00-12
Command: show address_binding ip_mac ipaddress 10.1.1.8 mac_address 00-00-00-00-00-12
Enabled ports: 2
Enabled ports:
IP Address MAC Address Ports
--------------- ----------------- ------------
10.1.1.8 00-00-00-00-00-12 all
Total entries : 1
DGS-3400:4#
116
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete address-binding
Purpose
Syntax
Description
Parameters
Used to delete IP-MAC Binding entries. delete address-binding [ip-mac [ipaddress <ipaddr> mac_address
<macaddr> | all] | blocked [all | vlan_name <vlan_name> mac_address <macaddr>]]
This command will delete IP-MAC Binding entries. Two different kinds of information can be deleted.
• IP_MAC – Individual Address Binding enties can be deleted by entering the physical and IP addresses of the device.
Toggleing to all will delete all the Address Binding entries.
• Blocked – Blocked address binding entries (bindings between
VLAN names and MAC addresses) can be deleted by entering the VLAN name and the physical address of the device. To delete all the Blocked Address Binding entries, toggle all.
<ipaddr> The IP address of the device where the IP-MAC binding is made.
<macaddr> The MAC address of the device where the IP-MAC binding is made.
<vlan_name> The VLAN name of the VLAN that is bound to a MAC address in order to block a specific device on a known VLAN. all – For IP_MAC binding all specifies all the IP-MAC binding entries; for Blocked Address Binding entries all specifies all the blocked VLANs and their bound phsical addresses.
Example usage:
To delete an IP-MAC Binding on the switch:
DGS-3400:4#delete address-binding ip-mac ipaddress
10.1.1.1 mac_address 00-00-00-00-00-06
Command: delete address-binding ip-mac ipaddress
10.1.1.1 mac_address 00-00-00-00-00-06
Success.
DGS-3400:4#
117
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
18
B
ASIC
IP C
OMMANDS
The IP interface commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config ipif show ipif
<ipif_name 12> [{ipaddress <network_address> | vlan <vlan_name 32> | state [enable | disable]} bootp | dhcp]
{<ipif_name 12>} enable autoconfig*
Each command is listed, in detail, in the following sections.
*See Switch Utility Commands for descriptions of all autoconfig commands.
config ipif
Purpose
Syntax
Description
Parameters
Used to configure the System IP interface. config ipif <ipif_name 12> [{ipaddress <network_address> [vlan
<vlan_name 32> | state [enable | disable]} | bootp | dhcp]
This command is used to configure the System IP interface on the
Switch.
<ipif_name 12> - Enter an alphanumeric string of up to 12 characters to identify this IP interface. ipaddress <network_address> − IP address and netmask of the IP interface to be created. You can specify the address and mask information using the traditional format (for example,
10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<vlan_name 32> − The name of the VLAN corresponding to the
System IP interface. state [enable | disable] − Allows you to enable or disable the IP interface. bootp − Allows the selection of the BOOTP protocol for the assignment of an IP address to the Switch’s System IP interface. dhcp − Allows the selection of the DHCP protocol for the assignment of an IP address to the Switch’s System IP interface. If you are using the autoconfig feature, the Switch becomes a DHCP client automatically so it is not necessary to change the ipif settings.
Example usage:
To configure the IP interface System:
DGS-3400:4#config ipif System ipaddress 10.48.74.122/8
Command: config ipif System ipaddress 10.48.74.122/8
Success.
DGS-3400:4#
118
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show ipif
Purpose
Syntax
Used to display the configuration of an IP interface on the Switch. show ipif {<ipif_name 12>}
Description This command will display the configuration of an IP interface on the Switch.
Parameters <ipif_name 12> − The name created for the IP interface.
Restrictions None.
Example usage:
To display IP interface settings.
DGS-3400:4#show ipif System
Command: show ipif System
IP Interface Settings
Interface Name : System
IP Address : 10.48.74.122 (MANUAL)
Subnet Mask : 255.0.0.0
VLAN Name : default
Admin. State : Disabled
Link Status : Link UP
Member Ports : 1-26
Total Entries : 1
DGS-3400:4#
enable autoconfig
Purpose
Syntax
Description
Used to activate the autoconfiguration function for the Switch. This will load a configuration file for current use. enable autoconfig
When autoconfig is enabled on the Switch, the DHCP reply will contain a configuration file and path name. It will then request the file from the TFTP server specified in the reply. When autoconfig is enabled, the ipif settings will automatically become DHCP client.
Parameters None.
Restrictions When autoconfig is enabled, the Switch becomes a DHCP client automatically
(same as: config ipif System dhcp). The DHCP server must have the TFTP server
IP address and configuration file name, and be configured to deliver this information in the data field of the DHCP reply packet. The TFTP server must be running and have the requested configuration file in its base directory when the request is received from the Switch. Consult the DHCP server and TFTP server software instructions for information on loading a configuration file.
Example usage:
To enable autoconfiguration on the Switch:
119
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#enable autoconfig
Command: enable autoconfig
Success.
DGS-3400:4#
NOTE: More detailed information for this command and related commands can be found in the section titled Switch Utility Commands.
120
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
19
IGMP S
NOOPING
C
OMMANDS
The IGMP Snooping commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config igmp_snooping [vlan <vlan_name 32> | all] {host_timeout <sec 1-16711450> | router_timeout <sec 1-16711450> | leave_timer <sec 1-16711450> | state
[enable | disable] | fast_leave [enable | disable]} config igmp_snooping querier [vlan <vlan_name 32> | all] {query_interval <sec 1-65535> | max_response_time <sec 1-25> | robustness_variable <value 1-255> | last_member_query_interval <sec 1-25> | state [enable | disable]} config router_ports <vlan_name 32> [add | delete] <portlist> config router_ports_forbidden < vlan_name 32> [add | delete] <portlist> enable igmp_snooping {forward_mcrouter_only} show igmp_snooping disable igmp_snooping show igmp snooping group show router_ports
{vlan <vlan_name 32>}
{forward_mcrouter_only} vlan <vlan_name 32>
{vlan <vlan_name 32> } {[static | dynamic | forbidden]}
Each command is listed, in detail, in the following sections.
config igmp_snooping
Purpose
Syntax
Description
Parameters
Used to configure IGMP snooping on the Switch. config igmp_snooping [vlan <vlan_name 32> | all]
{host_timeout <sec 1-16711450> | router_timeout <sec 1-16711450> | leave_timer <sec 1-16711450> | state [enable | disable] | fast_leave [enable | disable]}
This command allows you to configure IGMP snooping on the Switch. vlan <vlan_name 32> − The name of the VLAN for which IGMP snooping is to be configured. host_timeout <sec 1-16711450> − Specifies the maximum amount of time a host can be a member of a multicast group without the Switch receiving a host membership report. The default is 260 seconds. router_timeout <sec 1-16711450> − Specifies the maximum amount of time a route can be a member of a multicast group without the Switch receiving a host membership report. The default is 260 seconds. leave_timer <sec 1-16711450> − Specifies the amount of time a Multicast address will stay in the database before it is deleted, after it has sent out a leave group message. The default is 2 seconds. state [enable | disable] − Allows you to enable or disable IGMP snooping for the specified VLAN. fast_leave [enable | disable] – This parameter allows the user to enable the fast leave function. Enabled, this function will allow members of a multicast group to leave the group immediately (without the implementation of the Last
Member Query Timer) when an IGMP Leave Report Packet is received by the
Switch.
Example usage:
121
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To configure IGMP snooping:
DGS-3400:4# config igmp_snooping vlan default host_timeout 250 state enable
Command: config igmp_snooping vlan default host_timeout 250 state enable
Success.
DGS-3400:4#
NOTE: The Fast Leave function in the config igmp_snooping command can only be implemented if
IGMP is disabled for all IP interfaces on the Switch. Configuring this function when IGMP is enabled will produce the error message “ Cannot set Fast leave when IGMP is running ” and consequently will not be implemented.
config igmp_snooping querier
Purpose
Syntax
Description
Parameters
This command configures IGMP snooping querier. config igmp_snooping querier [ vlan <vlan_name 32> | all] { query_interval <sec 1-
65535> | max_response_time <sec 1-25> | robustness_variable <value 1-255> | last_member_query_interval <sec 1-25> | state [enable | disable]
Used to configure the time in seconds between general query transmissions, the maximum time in seconds to wait for reports from members and the permitted packet loss that guarantees IGMP snooping. vlan <vlan_name 32> − The name of the VLAN for which IGMP snooping querier is to be configured. query_interval <sec 1-65535> − Specifies the amount of time in seconds between general query transmissions. The default setting is 125 seconds. max_response_time <sec 1-25> − Specifies the maximum time in seconds to wait for reports from members. The default setting is 10 seconds. robustness_variable <value 1-255> − Provides fine-tuning to allow for expected packet loss on a subnet. The value of the robustness variable is used in calculating the following IGMP message intervals:
• Group member interval—Amount of time that must pass before a multicast router decides there are no more members of a group on a network. This interval is calculated as follows: (robustness variable x query interval) + (1 x query response interval).
• Other querier present interval—Amount of time that must pass before a multicast router decides that there is no longer another multicast router that is the querier.
This interval is calculated as follows: (robustness variable x query interval) + (0.5 x query response interval).
• Last member query count—Number of group-specific queries sent before the router assumes there are no local members of a group. The default number is the value of the robustness variable.
• By default, the robustness variable is set to 2. You might want to increase this value if you expect a subnet to be lossy. Although 1 is specified as a valid entry, the roubustness variable should not be one or problems may arise. last_member_query_interval <sec 1-25> − The maximum amount of time between groupspecific query messages, including those sent in response to leave-group messages. You might lower this interval to reduce the amount of time it takes a router to detect the loss of the last member of a group. state [enable | disable] − Allows the Switch to be specified as an IGMP Querier or Nonquerier.
122
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure IGMP snooping:
DGS-3400:4#config igmp_snooping querier vlan default query_interval 125 state enable
Command: config igmp_snooping querier vlan default query_interval 125 state enable
Success.
DGS-3400:4#
config router_ports
Purpose
Syntax
Description
Parameters
Used to configure ports as router ports. config router_ports <vlan_name 32> [add | delete] <portlist>
This command allows you to designate a range of ports as being connected to multicast-enabled routers. This will ensure that all packets with such a router as its destination will reach the multicastenabled router − regardless of protocol, etc.
<vlan_name 32> − The name of the VLAN on which the router port resides.
<portlist> − Specifies a port or range of ports that will be configured as router ports.
Example usage:
To set up static router ports:
DGS-3400:4#config router_ports default add 1-10
Command: config router_ports default add 1-10
Success.
DGS-3400:4#
config router_ports_forbidden
Purpose
Syntax
Description
Parameters
Used to configure ports as forbidden multicast router ports. config router_ports_forbidden <vlan_name 32> [add | delete]
<portlist>
This command allows designation of a port or range of ports as being forbidden to multicast-enabled routers. This will ensure that multicast packets will not be forwarded to this port − regardless of protocol, etc.
<vlan_name 32> − The name of the VLAN on which the router port resides.
[add | delete] - Specifies whether to add or delete forbidden ports of the specified VLAN.
<portlist> − Specifies a range of ports that will be configured as forbidden router ports.
Example usage:
To set up forbidden router ports:
123
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config router_ports_forbidden default add 2-10
Command: config router_ports_forbidden default add 2-10
Success.
DGS-3400:4#
enable igmp_snooping
Purpose
Syntax
Description
Parameters
Used to enable IGMP snooping on the Switch. enable igmp_snooping {forward_mcrouter_only}
This command allows you to enable IGMP snooping on the Switch. If forward_mcrouter_only is specified, the Switch will only forward all multicast traffic to the multicast router, only. Otherwise, the Switch forwards all multicast traffic to any IP router. forward_mcrouter_only − Specifies that the Switch should only forward all multicast traffic to a multicast-enabled router. Otherwise, the Switch will forward all multicast traffic to any IP router.
Example usage:
To enable IGMP snooping on the Switch:
DGS-3400:4#enable igmp_snooping
Command: enable igmp_snooping
Success.
DGS-3400:4#
disable igmp_snooping
Purpose
Syntax
Description
Parameters
Used to enable IGMP snooping on the Switch. disable igmp_snooping {forward_mcrouter_only}
This command disables IGMP snooping on the Switch. IGMP snooping can be disabled only if IP multicast routing is not being used. Disabling IGMP snooping allows all IGMP and IP multicast traffic to flood within a given IP interface. forward_mcrouter_only – Adding this parameter to this command will disable forwarding all multicast traffic to a multicast-enabled routers.
The Switch will then forward all multicast traffic to any IP router.
Entering this command without the parameter will disable igmp snooping on the Switch.
Example usage:
To disable IGMP snooping on the Switch:
124
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#disable igmp_snooping
Command: disable igmp_snooping
Success.
DGS-3400:4#
Example usage:
To disable forwarding all multicast traffic to a multicast-enabled router:
DGS-3400:4#disable igmp_snooping forward_mcrouter_only
Command: disable igmp_snooping forward_mcrouter_only
Success.
DGS-3400:4#
show igmp_snooping
Purpose
Syntax
Description
Parameters
Used to show the current status of IGMP snooping on the Switch. show igmp_snooping {vlan <vlan_name 32>}
This command will display the current IGMP snooping configuration on the Switch.
<vlan_name 32> − The name of the VLAN to view the IGMP snooping configuration for.
Restrictions None.
Example usage:
To show IGMP snooping:
DGS-3400:4#show igmp_snooping
Command: show igmp_snooping
IGMP Snooping Global State : Enabled
Multicast router Only : Enabled
VLAN Name : default
Query Interval : 125
Max Response Time : 10
Robustness Value : 2
Last Member Query Interval : 1
Host Timeout : 250
Route Timeout : 260
Leave Timer : 2
Querier State : Enabled
Querier Router Behavior : Non-Querier
State : Enabled
Fast Leave : Disabled
Total Entries: 1
DGS-3400:4#
125
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show router_ports
Purpose
Syntax
Used to display the currently configured router ports on the Switch. show router_ports [static | dynamic | forbidden]
Description
Parameters
This command will display the router ports currently configured on the
Switch.
<vlan_name 32> − The name of the VLAN on which the router port resides. static − Displays router ports that have been statically configured. dynamic − Displays router ports that have been dynamically configured. forbidden – Displays ports that are forbidden from becoming router ports.
Restrictions None.
Example usage:
To display the router ports.
DGS-3400:4#show router_ports
Command: show router_ports
VLAN Name : default
Static router port :
Dynamic router port: 32
Forbidden router port:
DGS-3400:4#
show igmp_snooping group
Purpose Used to display the current IGMP snooping configuration on the
Switch. show igmp_snooping group {vlan <vlan_name 32>} Syntax
Description
Parameters
This command will display the current IGMP setup currently configured on the Switch.
<vlan_name 32> − The name of the VLAN for which to view IGMP snooping group information.
Restrictions None.
Example usage:
To view the current IGMP snooping group:
126
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show igmp_snooping group
Command: show igmp_snooping group
VLAN Name : default
Multicast group : 224.0.0.2
MAC address : 01-00-5E-00-00-02
Reports : 1
Port Member : 2,4
VLAN Name : default
Multicast group : 224.0.0.9
MAC address : 01-00-5E-00-00-09
Reports : 1
Port Member : 6,8
VLAN Name : default
Multicast group : 234.5.6.7
MAC address : 01-00-5E-05-06-07
Reports : 1
Port Member : 10,12
VLAN Name : default
Multicast group : 236.54.63.75
MAC address : 01-00-5E-36-3F-4B
Reports : 1
Port Member : 14,16
VLAN Name : default
Multicast group : 239.255.255.250
MAC address : 01-00-5E-7F-FF-FA
Reports : 2
Port Member : 18,20
VLAN Name : default
Multicast group : 239.255.255.254
MAC address : 01-00-5E-7F-FF-FE
Reports : 1
Port Member : 22,24
Total Entries : 6
DGS-3400:4#
127
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
20
MLD S
NOOPING
C
OMMANDS
Multicast Listener Discovery (MLD) Snooping is an IPv6 function used similarly to IGMP snooping in IPv4. It is used to discover ports on a VLAN that are requesting multicast data. Instead of flooding all ports on a selected VLAN with multicast traffic, MLD snooping will only forward multicast data to ports that wish to receive this data through the use of queries and reports produced by the requesting ports and the source of the multicast traffic.
MLD snooping is accomplished through the examination of the layer 3 part of an MLD control packet transferred between end nodes and a MLD router. When the switch discovers that this route is requesting multicast traffic, it adds the port directly attached to it into the correct IPv6 multicast table, and begins the process of forwarding multicast traffic to that port. This entry in the multicast routing table records the port, the VLAN ID and the associated multicast IPv6 multicast group address and then considers this port to be a active listening port. The active listening ports are the only ones to receive multicast group data.
MLD Control Messages
Three types of messages are transferred between devices using MLD snooping. These three messages are all defined by three
ICMPv6 packet headers, labeled 130, 131 and 132.
1. Multicast Listener Query – Similar to the IGMPv2 Host Membership Query for IPv4, and labeled as 130 in the
ICMPv6 packet header, this message is sent by the router to ask if any link is requesting multicast data. There are two types of MLD query messages emitted by the router. The General Query is used to advertise all multicast addresses that are ready to send multicast data to all listening ports, and the Multicast Specific query, which advertises a specific multicast address that is also ready. These two types of messages are distinguished by a multicast destination address located in the IPv6 header and a multicast address in the Multicast Listener Query Message.
2. Multicast Listener Report – Comparable to the Host Membership Report in IGMPv2, and labeled as 131 in the ICMP packet header, this message is sent by the listening port to the Switch stating that it is interested in receiving multicast data from a multicast address in response to the Multicast Listener Query message.
3. Multicast Listener Done – Akin to the Leave Group Message in IGMPv2, and labeled as 132 in the ICMPv6 packet header, this message is sent by the multicast listening port stating that it is no longer interested in receiving multicast data from a specific multicast group address, therefore stating that it is “done” with the multicast data from this address. Once this message is received by the Switch, it will no longer forward multicast traffic from a specific multicast group address to this listening port.
The MLD Snooping commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable mld_snooping disable mld_snooping config mld_snooping
{forward_mcrouter_only}
{forward_mcrouter_only}
[vlan <vlan_name 32> | all] {node_timeout <sec 1-16711450> | router_timeout <sec 1-16711450> | done_timer <sec 1-16711450> | state
[enable | disable] | fast_done [enable | disable]}
<vlan_name 32> [add | delete] <portlist> config mld_snooping mrouter_ports config mld_snooping mrouter_ports_forbidden config mld_snooping querier show mld_snooping show mld_snooping group show mld_snooping mrouter_ports
<vlan_name 32> [add | delete] <portlist>
[vlan <vlan_name 32> | all] {query_interval <sec 1-65535> | max_response_time <sec 1-25> | robustness_variable <value 1-255> | last_listenener_query_interval <sec 1-25> | state [enable | disable]}
{vlan <vlan_name 32>}
{vlan <vlan_name 32>}
{vlan <vlan_name 32>} {[static | dynamic | forbidden]}
128
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Each command is listed, in detail, in the following sections.
enable mld_snooping
Purpose
Syntax
Description
Parameters
Used to enable MLD snooping globally on the switch. enable mld_snooping {forward_mcrouter_only}
This command, in conjunction with the disable mld_snooping will enable and disable MLD snooping globally on the Switch without affecting configurations. forward_mcrouter_only - Specifies that the Switch should only forward all multicast traffic to a multicast-enabled router. Otherwise, the Switch will forward all multicast traffic to any IP router.
Example usage:
To enable MLD snooping globally on the Switch:
DGS-3400:4#enable mld_snooping
Command: enable mld_snooping
Success.
DGS-3400:4#
disable mld_snooping
Purpose
Syntax
Description
Parameters
Used to disable MLD snooping globally on the switch. disable mld_snooping {forward_mcrouter_only}
This command, in conjunction with the enable mld_snooping will enable and disable MLD snooping globally on the switch without affecting configurations. forward_mcrouter_only – Specify to disable the Switch from forwarding all multicast traffic to a multicast-enabled router. Otherwise, the Switch will forward all multicast traffic to any IP router.
Example usage:
To disable MLD snooping globally on the Switch:
DGS-3400:4#disable mld_snooping
Command: disable mld_snooping
Success.
DGS-3400:4#
config mld_snooping
Purpose
Syntax
Description
Parameters
Used to configure MLD snooping on the Switch. config igmp_snooping [vlan <vlan_name 32> | all]
{node_timeout <sec 1-16711450> | router_timeout <sec 1-16711450> | done_timer <sec 1-16711450> | state [enable | disable] | fast_done [enable | disable]}
This command allows you to configure IGMP snooping on the Switch. vlan <vlan_name 32> − The name of the VLAN for which MLD snooping is to b fi d
129
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config mld_snooping
be configured. all – Entering this parameter will configure MLD snooping for all VLANs on the switch. node_timeout <sec 1-16711450> − Specifies the link node timeout, in seconds. After this timer expires, this node will no longer be considered as listening node. The user may specify a time between 1 and 16711450 with a default setting of 260 seconds. router_timeout <sec 1-16711450> − Specifies the maximum amount of time a router can remain in the Switch’s routing table as a listening node of a multicast group without the Switch receiving a node listener report. The user may specify a time between 1 and 16711450 with a default setting of 260 seconds. done_timer <sec 1-16711450> − Specifies the maximum amount of time a router can remain in the Switch after receiving a done message from the group without receiving a node listener report. The user may specify a time between
1 and 16711450 with a default setting of 2 seconds. state [enable | disable] − Allows you to enable or disable MLD snooping for the specified VLAN. fast_done [enable | disable] – This parameter allows the user to enable the fast done function. Enabled, this function will allow members of a multicast group to leave the group immediately when a done message is received by the
Switch.
Example usage:
To configure MLD snooping:
DGS-3400:4#config mld_snooping vlan default node_timeout 250 state enable
Command : config mld_snooping vlan default node_timeout 250 state enable
Success.
DGS-3400:4#
config mld_snooping mrouter_ports
Purpose
Syntax
Description
Parameters
Used to configure ports as router ports on the Switch. config mld_snooping mrouter_ports <vlan_name 32> [add | delete]
<portlist>
This command allows you to designate a range of ports as being connected to a multicast-enabled router. This command will ensure that all packets with this router as its destination will reach the multicast-enabled router. vlan <vlan_name 32> − The name of the VLAN on which the router port resides. add | delete – Specify to add or delete ports as router ports.
<portlist> - Specify a port or range of ports to be configured as router ports.
Example usage:
To configure MLD snooping multicast router ports:
130
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config mld_snooping mrouter_ports default add 1-10
Command : config mld_snooping mrouter_ports default add 1-10
Success.
DGS-3400:4#
config mld_snooping mrouter_ports_forbidden
Purpose
Syntax
Description
Parameters
Used to configure ports on the Switch as forbidden router ports. config mld_snooping mrouter_ports_forbidden <vlan_name 32> [add | delete] <portlist>
This command allows you to designate a port or range of ports as being forbidden from being connected to multicast enabled routers. This ensures that these configured forbidden ports will not send out routing packets. vlan <vlan_name 32> − The name of the VLAN on which the router port will be forbidden. add | delete – Specify to add or delete ports as forbidden router ports.
<portlist> - Specify a port or range of ports to be configured as forbidden router ports.
Example usage:
To configure MLD snooping forbidden multicast router ports:
DGS-3400:4#config mld_snooping mrouter_ports_forbidden default add 11-20
Command : config mld_snooping mrouter_ports_forbidden default add 11-20
Success
DGS-3400:4#
config mld_snooping querier
Purpose
Syntax
Description
Parameters
Used to configure the timers and settings for the MLD snooping querier for the Switch. config mld_snooping querier [vlan <vlan_name 32> | all] {query_interval <sec 1-
65535> | max_response_time <sec 1-25> | robustness_variable <value 1-255> | last_listener_query_interval <sec 1-25> | state [enable | disable]}
This command allows you to configure the time between general query transmissions, the maximum time to wait for reports from listeners and the permitted packet loss guaranteed by MLD snooping. vlan <vlan_name 32> − The name of the VLAN for which to configure the MLD querier. all – Specifies all VLANs are to be configured for the MLD querier. query_interval <sec 1-65535> - Specifies the amount of time between general query transmissions. The user may specify a time between 1 and 65535 seconds with a default setting of 125 seconds. max_response_time <sec 1-25> - The maximum time to wait for reports from listeners.
The user may specify a time between 1 and 25 seconds with a default setting of 10 seconds. robustness_variable <value 1-255> - Provides fine-tuning to allow for expected packet loss on a subnet. The user may choose a value between 1 and 255 with a default setting of 2. If a subnet is expected to be lossy, the user may wish to increase this interval. last_listener_query_interval <sec 1-25> - The maximum amount of time to be set
131
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config mld_snooping querier
between group-specific query messages. This interval may be reduced to lower the amount of time it takes a router to detect the loss of a last listener group. The user may set this interval between 1 and 25 seconds with a default setting of 1 second.
state [enable | disable] – Enabling the querier state will set the Switch as a MLD querier and disabling it will set it as a Non-querier. The default setting is enabled.
Example usage:
To configure the MLD snooping querier:
DGS-3400:4#config mld_snooping querier vlan default query_interval 125 state enable
Command : config mld_snooping querier vlan default query_interval 125 state enable
Success.
DGS-3400:4#
NOTE: The robustness variable of the MLD snooping querier is used in creating the following
MLD message intervals:
Group Listener Interval – This is the amount of time that must pass before a multicast router decides that there are no more listeners present of a group on a network. Calculated as
(robustness variable * query interval ) + (1 * query interval).
Querier Present Interval - This is the amount of time that must pass before a multicast router decides that there are no other querier devices present. Calculated as (robustness variable * query interval) + (0.5 * query response interval).
Last Listener Query Count – This is the amount of group-specific queries sent before the router assumes there are no local listeners in this group. The default value is the value of the robustness variable.
show mld_snooping
Purpose
Syntax
Description
Parameters
Used to display the current status of the MLD snooping function on the Switch. show mld_snooping {vlan<vlan_name 32}
This command allows you to display the current status of the MLD snooping function on the Switch. vlan <vlan_name 32> − The name of the VLAN for which to view the MLD snooping configurations.
If no parameter is specified, the Switch will display all current MLD snooping configurations.
Example usage:
To display the MLD snooping settings
132
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show mld_snooping
Command: show mld_snooping
MLD Snooping Global State : Disabled
Multicast Router Only : Disabled
VLAN Name : default
Query Interval : 125
Max Response Time : 10
Robustness Value : 2
Last Listener Query Interval : 1
Node Timeout : 260
Router Timeout : 260
Done Timer : 2
Querier State : Disabled
Querier Router Behavior : Non-Querier
State : Disabled
Fast Done : Disabled
Total Entries : 1
DGS-3400:4#
show mld_snooping group
Purpose
Syntax
Description
Parameters
Used to display MLD snooping group configurations on the Switch. show mld_snooping group {vlan <vlan_name 32}
This command display MLD snooping group configurations on the Switch. vlan <vlan_name 32> − The name of the VLAN for which to view the MLD snooping group configurations.
If no parameter is specified, the Switch will display all current MLD snooping group configurations.
Example usage:
To display the MLD snooping group settings:
133
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show mld_snooping group
Command : show mld_snooping group
VLAN Name : default
Multicast Group : FF02 ::13
MAC Address : 33-33-00-00-00-13
Reports : 1
Listening Port : 1,7
VLAN Name : default
Multicast Group : FF02 ::14
MAC Address : 33-33-00-00-00-14
Reports : 1
Listening Port : 2,7
VLAN Name : default
Multicast Group : FF02 ::15
MAC Address : 33-33-00-00-00-15
Reports : 1
Listening Port : 2,9
VLAN Name : default
Multicast Group : FF02 ::16
MAC Address : 33-33-00-00-00-16
Reports : 1
Listening Port : 2,7
VLAN Name : default
Multicast Group : FF02 ::17
MAC Address : 33-33-00-00-00-17
Reports : 1
Listening Port : 2,7
Total Entries :5
DGS-3400:4#
show mld_snooping mrouter_ports
Purpose
Syntax
Used to display the current router ports set on the Switch. show mld_snooping group {vlan<vlan_name 32} {[static | dynamic | forbidden]}
This command display the current router ports set on the Switch. Description
Parameters vlan <vlan_name 32> − The name of the VLAN on which the router port resides. static – Displays router ports that have been statically configured. dynamic – Displays router ports that have been dynamically configured. forbidden – Displays router ports that have been configured as forbidden.
If no parameter is specified, the Switch will display all currently configured router ports on the Switch.
Restrictions Only
Example usage:
To display the MLD snooping multicast router port settings:
134
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show mld_snooping mrouter_ports
Commands : show mld_snooping mrouter_ports
VLAN Name : default
Static mrouter port : 1-10
Dynamic mrouter port :
Forbidden mrouter port :
Total Entries : 1
DGS-3400:4#
135
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
20
802.1X C
OMMANDS
The DGS-3400 implements the server-side of the IEEE 802.1x Port-based and MAC-based Network Access Control. This mechanism is intended to allow only authorized users, or other network devices, access to network resources by establishing criteria for each port on the Switch that a user or network device must meet before allowing that port to forward or receive frames.
The 802.1X commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable 802.1x disable 802.1x show 802.1x auth_state {ports <portlist>} config 802.1x auth_protocol create 802.1x user delete 802.1x user show 802.1x user show auth_statistics show auth_diagnostics show auth_session_statistics
[local | radius_eap]
<username 15>
<username 15>
{ports <portlist | all>}
{ports <portlist | all>}
{ports <portlist | all>} show auth_client show acct_client config 802.1x capability ports [<portlist> | all] [authenticator | none] config 802.1x auth_parameter ports [<portlist> | all] [default | {direction [both | in] | port_control
[force_unauth | auto | force_auth] | quiet_period <sec 0-
65535> | tx_period <sec 1-65535> | supp_timeout <sec 1-
65535> | server_timeout <sec 1-65535> | max_req <value 1-
10> | reauth_period <sec 1-65535> | enable_reauth [enable | disable]}] config 802.1x init config 802.1x auth_mode config 802.1x reauth
[port_based ports [<portlist> | all] | mac_based [ports]
[<portlist> |all] {mac_address <macaddr>}]
[port_based | mac_based] config radius add config radius delete config radius
{port_based ports [<portlist> | all] | mac_based [ports]
[<portlist> | all] {mac_address <macaddr>}]
<server_index 1-3> <server_ip> key <passwd 32> [default |
{auth_port <udp_port_number 1-65535> | acct_port
<udp_port_number 1-65535>}]
<server_index 1-3> show radius
<server_index 1-3> {ipaddress <server_ip> | key <passwd
32> [auth_port <udp_port_number 1-65535> acct_port
<udp_port_number 1-65535>]}
Each command is listed, in detail, in the following sections
136
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable 802.1x
Purpose
Syntax
Used to enable the 802.1x server on the Switch. enable 802.1x
Description The command enables the 802.1x Network Access control server application on the Switch. To select between portbased or MAC-based, use the config 802.1x auth_mode command.
Parameters None.
Example usage:
To enable 802.1x switch wide:
DGS-3400:4#enable 802.1x
Command: enable 802.1x
Success.
DGS-3400:4#
disable 802.1x
Purpose
Syntax
Used to disable the 802.1x server on the Switch. disable 802.1x
Description The command is used to disable the 802.1x Network
Access control server application on the Switch. To select between portbased or MAC-based, use the config 802.1x auth_mode command.
Parameters None.
Example usage:
To disable 802.1x on the Switch:
DGS-3400:4#disable 802.1x
Command: disable 802.1x
Success.
DGS-3400:4#
show 802.1x auth_configuration
Purpose Used to display the current configuration of the 802.1x server on the
Switch. show 802.1x auth_configuration {ports <portlist>} Syntax
Description The command is used to display the 802.1x Portbased or MAC-based Network Access control local users currently configured on the Switch.
Parameters ports <portlist> − Specifies a port or range of ports to view.
The following details are displayed:
802.1x Enabled / Disabled − Shows the current status of 802.1x functions on the Switch.
Authentication Mode – Shows the authentication mode, whether it be by
137
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show 802.1x auth_configuration
MAC address or by port.
Authentication Protocol: Radius_Eap/Local − Shows the authentication protocol suite in use between the Switch and a RADIUS server.
Port number − Shows the physical port number on the Switch.
Capability: Authenticator|None − Shows the capability of 802.1x functions on the port number displayed above. There are two 802.1x capabilities that can be set on the Switch: Authenticator and None.
AdminCtlDir: Both / In − Shows whether a controlled Port that is unauthorized will exert control over communication in both receiving and transmitting directions, or just the receiving direction.
OpenCtlDir: Both / In − Shows whether a controlled Port that is unauthorized will exert control over communication in both receiving and transmitting directions, or just the receiving direction.
Port Control: ForceAuth / ForceUnauth / Auto − Shows the administrative control over the port’s authorization status. ForceAuth forces the
Authenticator of the port to become Authorized. ForceUnauth forces the port to become Unauthorized.
QuietPeriod − Shows the time interval between authentication failure and the start of a new authentication attempt.
TxPeriod − Shows the time to wait for a response from a supplicant
(user) to send EAP Request / Identiy packets.
SuppTimeout − Shows the time to wait for a response from a supplicant
(user) for all EAP packets, except for the Request / Identity packets.
ServerTimeout − Shows the length of time to wait for a response from a
Radius server.
MaxReq − Shows the maximum number of times to retry sending packets to the supplicant.
ReAuthPeriod − Shows the time interval between successive reauthentications.
ReAuthenticate: Enabled / Disabled − Shows whether or not to reauthenticate.
Restrictions None.
Example usage:
To display the 802.1x authentication states:
DGS-3400:4#show 802.1x auth_configuration ports 1
Command: show 802.1x auth_configuration ports 1
802.1X : Enabled
Authentication Mode : Port_based
Authentication Protocol : Radius_Eap
Port number : 1
Capability : None
AdminCrlDir : Both
OpenCrlDir : Both
Port Control : Auto
QuietPeriod : 60 sec
TxPeriod : 30 sec
SuppTimeout : 30 sec
ServerTimeout : 30 sec
MaxReq : 2 times
ReAuthPeriod : 3600 sec
ReAuthenticate : Disabled
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
138
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show 802.1x auth_state
Purpose
Syntax
Description
Parameters
Used to display the current authentication state of the 802.1x server on the
Switch. show 802.1x auth_state {ports <portlist>}
The show 802.1x
auth_state command is used to display the current authentication state of the 802.1x Port-based or MAC-based Network
Access Control server application on the Switch. ports <portlist> − Specifies a port or range of ports to be viewed.
The following details what is displayed:
Port number − Shows the physical port number on the Switch.
Auth PAE State: Initalize / Disconnected / Connecting / Authenticating /
Authenticated / Held / ForceAuth / ForceUnauth − Shows the current state of the Authenticator PAE.
Backend State: Request / Response / Fail / Idle / Initalize / Success /
Timeout − Shows the current state of the Backend Authenticator.
Port Status: Authorized / Unauthorized − Shows the result of the authentication process. Authorized means that the user was authenticated, and can access the network. Unauthorized means that the user was not authenticated, and cannot access the network.
Restrictions None.
Example usage:
To display the 802.1x auth state for Port-based 802.1x:
DGS-3400:4#show 802.1x auth_state
Command: show 802.1x auth_state
Port Auth PAE State Backend State Port Status
------ ----------------------- --------------------- -----------------
1 ForceAuth Success Authorized
2 ForceAuth Success Authorized
3 ForceAuth Success Authorized
4 ForceAuth Success Authorized
5 ForceAuth Success Authorized
6 ForceAuth Success Authorized
7 ForceAuth Success Authorized
8 ForceAuth Success Authorized
9 ForceAuth Success Authorized
10 ForceAuth Success Authorized
11 ForceAuth Success Authorized
12 ForceAuth Success Authorized
13 ForceAuth Success Authorized
14 ForceAuth Success Authorized
15 ForceAuth Success Authorized
16 ForceAuth Success Authorized
17 ForceAuth Success Authorized
18 ForceAuth Success Authorized
19 ForceAuth Success Authorized
20 ForceAuth Success Authorized
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
Example usage:
To display the 802.1x auth state for MAC-based 802.1x:
139
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show 802.1x auth_state
Command: show 802.1x auth_state
Port number : 1
Index MAC Address Auth PAE State Backend State Port Status
------ ------------------- ----------------------- --------------------- -----------------
1 00-08-02-4E-DA-FA Authenticated Idle Authorized
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
config 802.1x auth_mode
Purpose
Syntax
Description
Parameters
Used to configure the 802.1x authentication mode on the Switch. config 802.1x auth_mode {port_based | mac_based]
The config 802.1x authentication mode command is used to enable either the port-based or MAC-based 802.1x authentication feature on the Switch.
[port_based | mac_based] − The Switch allows you to authenticate 802.1x by either port or MAC address.
Example usage:
To configure 802.1x authentication by MAC address:
DGS-3400:4#config 802.1x auth_mode mac_based
Command: config 802.1x auth_mode mac_based
Success.
DGS-3400:4#
config 802.1x capability ports
Purpose
Syntax
Used to configure the 802.1x capability of a range of ports on the
Switch. config 802.1x capability ports [<portlist> | all] [authenticator | none]
Description The command has four capabilities that can be set for each port. Authenticator, Supplicant, Authenticator and Supplicant, and None.
Parameters <portlist> − Specifies a port or range of ports to be configured.
140
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1x capability ports
all − Specifies all of the ports on the Switch. authenticator − A user must pass the authentication process to gain access to the network. none − The port is not controlled by the 802.1x functions.
Example usage:
To configure 802.1x capability on ports 1-10:
DGS-3400:4#config 802.1x capability ports 1 – 10 authenticator
Command: config 802.1x capability ports 1 – 10 authenticator
Success.
DGS-3400:4#
config 802.1x auth_parameter
Purpose
Syntax
Description
Parameters
Used to configure the 802.1x Authentication parameters on a range of ports.
The default parameter will return all ports in the specified range to their default
802.1x settings. config 802.1x auth_parameter ports [<portlist> | all] [default | {direction
[both | in] | port_control [force_unauth | auto | force_auth] | quiet_period
<sec 0-65535> | tx_period <sec 1-65535> | supp_timeout <sec 1-65535> | server_timeout <sec 1-65535> | max_req <value 1-10> | reauth_period
<sec 1-65535> | enable_reauth [enable | disable]}]
The config 802.1x auth_parameter command is used to configure the 802.1x
Authentication parameters on a range of ports. The default parameter will return all ports in the specified range to their default 802.1x settings.
<portlist> − Specifies a port or range of ports to be configured. all − Specifies all of the ports on the Switch. default − Returns all of the ports in the specified range to their 802.1x default settings. direction [both | in] − Determines whether a controlled port blocks communication in both the receiving and transmitting directions, or just the receiving direction. port_control − Configures the administrative control over the authentication process for the range of ports. The user has the following authentication options:
•
• force_auth − Forces the Authenticator for the port to become authorized. Network access is allowed. auto − Allows the port’s status to reflect the outcome of the authentication process.
• force_unauth − Forces the Authenticator for the port to become unauthorized. Network access will be blocked. quiet_period <sec 0-65535> − Configures the time interval between authentication failure and the start of a new authentication attempt. tx_period <sec 1-65535> - Configures the time to wait for a response from a supplicant (user) to send EAP Request/Identity packets. supp_timeout <sec 1-65535> - Configures the time to wait for a response from a supplicant (user) for all EAP packets, except for the Request/Identity packets. server_timeout <sec 1-65535> - Configure the length of time to wait for a
141
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1x auth_parameter
Restrictions response from a RADIUS server. max_req <value 1-10> − Configures the number of times to retry sending packets to a supplicant (user). reauth_period <sec 1-65535> − Configures the time interval between successive re-authentications. enable_reauth [enable | disable] − Determines whether or not the Switch will re-authenticate. Enabled causes re-authentication of users at the time interval specified in the Re-authentication Period field, above.
Only administrator-level users can issue this command.
Example usage:
To configure 802.1x authentication parameters for ports 1 – 20:
DGS-3400:4#config 802.1x auth_parameter ports 1–20 direction both
Command: config 802.1x auth_parameter ports 1–20 direction both
Success.
DGS-3400:4#
config 802.1x init
Purpose
Syntax
Used to initialize the 802.1x function on a range of ports. config 802.1x init {port_based ports [<portlist> | all] | mac_based [ports] [<portlist> | all] {mac_address <macaddr>}]
Description The command is used to immediately initialize the
802.1x functions on a specified range of ports or for specified MAC addresses operating from a specified range of ports.
Parameters port_based – This instructs the Switch to initialize 802.1x functions based only on the port number. Ports approved for initialization can then be specified. mac_based − This instructs the Switch to initialize 802.1x functions based only on the MAC address. MAC addresses approved for initialization can then be specified. ports <portlist> − Specifies a port or range of ports to be configured. all − Specifies all of the ports on the Switch. mac_address <macaddr> - Enter the MAC address to be initialized.
Example usage:
To initialize the authentication state machine of all ports:
DGS-3400:4# config 802.1x init port_based ports all
Command: config 802.1x init port_based ports all
Success.
DGS-3400:4#
142
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1x reauth
Purpose
Syntax
Description
Parameters
Used to configure the 802.1x re-authentication feature of the Switch. config 802.1x reauth {port_based ports [<portlist> | all] | mac_based [ports] [<portlist> | all] {mac_address <macaddr>}]
The config 802.1x reauth command is used to re-authenticate a previously authenticated device based on port number. port_based – This instructs the Switch to re-authorize 802.1x functions based only on the port number. Ports approved for re-authorization can then be specified. mac_based − This instructs the Switch to re-authorize 802.1x functions based only on the MAC address. MAC addresses approved for reauthorization can then be specified. ports <portlist> − Specifies a port or range of ports to be re-authorized. all − Specifies all of the ports on the Switch. mac_address <macaddr> - Enter the MAC address to be reauthorized.
Example usage:
To configure 802.1x reauthentication for ports 1-18:
DGS-3400:4#config 802.1x reauth port_based ports 1-18
Command: config 802.1x reauth port_based ports 1-18
Success.
DGS-3400:4#
config radius add
Purpose
Syntax
Used to configure the settings the Switch will use to communicate with a
RADIUS server. config radius add <server_index 1-3> <server_ip> key <passwd 32>
[default | {auth_port <udp_port_number 1-65535> | acct_port
<udp_port_number 1-65535>}]
Description The command is used to configure the settings the
Switch will use to communicate with a RADIUS server.
Parameters <server_index 1-3> − Assigns a number to the current set of RADIUS server settings. Up to 3 groups of RADIUS server settings can be entered on the Switch.
<server_ip> − The IP address of the RADIUS server. key − Specifies that a password and encryption key will be used between the Switch and the Radius server.
<passwd 32> − The shared-secret key used by the RADIUS server and the Switch. Up to 32 characters can be used. default − Uses the default udp port number in both the “auth_port” and
“acct_port” settings. auth_port <udp_port_number 1-65535> − The UDP port number for authentication requests. The default is 1812. acct_port <udp_port_number 1-65535> − The UDP port number for accounting requests. The default is 1813.
143
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure the RADIUS server communication settings:
DGS-3400:4#config radius add 1 10.48.74.121 key dlink default
Command: config radius add 1 10.48.74.121 key dlink default
Success.
DGS-3400:4#
config radius delete
Purpose
Syntax
Used to delete a previously entered RADIUS server configuration. config radius delete <server_index 1-3>
Description The command is used to delete a previously entered RADIUS server configuration.
Parameters <server_index 1-3> − Assigns a number to the current set of
RADIUS server settings. Up to 3 groups of RADIUS server settings can be entered on the Switch.
Example usage:
To delete previously configured RADIUS server communication settings:
DGS-3400:4#config radius delete 1
Command: config radius delete 1
Success.
DGS-3400:4#
config radius
Purpose
Syntax
Used to configure the Switch’s RADIUS settings. config radius <server_index 1-3> {ipaddress <server_ip> | key
<passwd 32> | auth_port <udp_port_number 1-65535> | acct_port <udp_port_number 1-65535>}
Description The command is used to configure the Switch’s
RADIUS settings.
Parameters <server_index 1-3> − Assigns a number to the current set of
RADIUS server settings. Up to 3 groups of RADIUS server settings can be entered on the Switch. ipaddress <server_ip> − The IP address of the RADIUS server. key − Specifies that a password and encryption key will be used between the Switch and the RADIUS server.
• <passwd 32> − The shared-secret key used by the
RADIUS server and the Switch. Up to 32 characters can be used. auth_port <udp_port_number 1-65535> − The UDP port number for authentication requests. The default is 1812. acct_port <udp_port_number 1-65535> − The UDP port number for accounting requests. The default is 1813.
144
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To configure the RADIUS settings:
DGS-3400:4#config radius 1 10.48.74.121 key dlink default
Command: config radius 1 10.48.74.121 key dlink default
Success.
DGS-3400:4#
show radius
Purpose
Syntax
Used to display the current RADIUS configurations on the Switch. show radius
Description The command is used to display the current RADIUS configurations on the Switch.
Parameters None.
Restrictions None.
Example usage:
To display RADIUS settings on the Switch:
DGS-3400:4#show radius
Command: show radius
Index IP Address Auth-Port Acct-Port Status Key
Number Number
----- ------------------ --------- --------- ----------- ------------
1 10.1.1.1 1812 1813 Active switch
2 20.1.1.1 1800 1813 Active des3226
3 30.1.1.1 1812 1813 Active dlink
Total Entries : 3
DGS-3400:4#
create 802.1x user
Purpose
Syntax
Description
Parameters
Used to create a new 802.1x user. create 802.1x user <username 15>
The create 802.1x user command is used to create new 802.1x users.
<username 15> − A username of up to 15 alphanumeric characters in length.
Example usage:
To create an 802.1x user:
145
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create 802.1x user dtremblett
Command: create 802.1x user dtremblett
Enter a case-sensitive new password:******
Enter the new password again for confirmation:******
Success.
DGS-3400:4#
show 802.1x user
Purpose
Syntax
Description
Used to display the 802.1x user accounts on the Switch. show 802.1x user
The show 802.1x user command is used to display the 802.1x
Port-based or MAC-based Network Access control local users currently configured on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view 802.1X users currently configured on the Switch:
DGS-3400:4#show 802.1x user
Command: show 802.1x user
Current Accounts:
Username Password
-------------- --------------
Darren Trinity
Total entries: 1
DGS-3400:4#
delete 802.1x user
Purpose
Syntax
Description
Parameters
Used to delete an 802.1x user account on the Switch. delete 802.1x user <username 15>
The delete 802.1x user command is used to delete the 802.1x Portbased or MAC-based Network Access control local users currently configured on the Switch.
<username 15> − A username can be as many as 15 alphanumeric characters.
Example usage:
To delete 802.1x users:
DGS-3400:4# delete 802.1x user dtremblett
Command: delete 802.1x user dtremblett
Success.
DGS-3400:4#
146
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config 802.1x auth_protocol
Purpose Used to configure the 802.1x authentication protocol on the
Switch. config 802.1x auth_protocol [local | radius_eap] Syntax
Description The command enables configuration of the authentication protocol.
Parameters [local | radius_eap] – Specify the type of authentication protocol desired.
Restrictions Only
Example usage:
To configure the authentication protocol on the Switch:
DGS-3400:4# config 802.1x auth_protocol local
Command: config 802.1x auth_protocol local
Success.
DGS-3400:4#
show acct_client
Purpose
Syntax
Used to display the current RADIUS accounting client. show acct_client
Description The command is used to display the current
RADIUS accounting client currently configured on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the current RADIUS accounting client:
DGS-3400:4#show acct_client
Command: show acct_client
radiusAcctClient
---------------------------------------------------------------------------------------
radiusAcctClientInvalidServerAddresses 0
radiusAcctClientIdentifier D-Link
radiusAuthServerEntry 0
---------------------------------------------------------------------------------------
radiusAccServerIndex 1
radiusAccServerAddress 10.53.13.199
radiusAccClientServerPortNumber 0
radiusAccClientRoundTripTime 0
radiusAccClientRequests 0
radiusAccClientRetransmissions 0
radiusAccClientResponses 0
radiusAccClientMalformedResponses 0
radiusAccClientBadAuthenticators 0
radiusAccClientPendingRequests 0
radiusAccClientTimeouts 0
radiusAccClientUnknownTypes 0
radiusAccClientPacketsDropped 0
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
147
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show auth_client
Purpose
Syntax
Used to display the current RADIUS authentication client. show auth_client
Description The command is used to display the current
RADIUS authentication client currently configured on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the current RADIUS authentication client:
DGS-3400:4#show auth_client
Command: show auth_client radiusAuthClient
---------------------------------------------------------------------------------------- radiusAuthClientInvalidServerAddresses 0 radiusAuthClientIdentifier D-Link radiusAuthServerEntry 0
---------------------------------------------------------------------------------------- radiusAuthServerIndex : 1 radiusAuthServerAddress : 0.0.0.0 radiusAuthClientServerPortNumber 0 radiusAuthClientRoundTripTime 0 radiusAuthClientAccessRequests 0 radiusAuthClientAccessRetransmissions 0 radiusAuthClientAccessAccepts 0 radiusAuthClientAccessRejects 0 radiusAuthClientAccessChallenges 0 radiusAuthClientMalformedAccessResponses 0 radiusAuthClientBadAuthenticators 0 radiusAuthClientPendingRequests 0 radiusAuthClientTimeouts 0 radiusAuthClientUnknownTypes 0 radiusAuthClientPacketsDropped 0
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
show auth_diagnostics
Purpose
Syntax
Used to display the current authentication diagnostics. show auth_diagnostics {ports [<portlist> | all]}
Description The command is used to display the current authentication diagnostics of the Switch on a per port basis.
Parameters ports <portlist> − Specifies a range of ports. all – Specifies that all ports will be viewed.
Restrictions None.
Example usage:
To display the current authentication diagnostics for port 16:
148
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show auth_diagnostics ports 16
Command: show auth_diagnostics ports 16
Port number : 16
EntersConnecting 0
EapLogoffsWhileConnecting 0
EntersAuthenticating 0
SuccessWhileAuthenticating 0
TimeoutsWhileAuthenticating 0
FailWhileAuthenticating 0
ReauthsWhileAuthenticating 0
EapStartsWhileAuthenticating 0
EapLogoffWhileAuthenticating 0
ReauthsWhileAuthenticated 0
EapStartsWhileAuthenticated 0
EapLogoffWhileAuthenticated 0
BackendResponses 0
BackendAccessChallenges 0
BackendOtherRequestsToSupplicant 0
BackendNonNakResponsesFromSupplicant 0
BackendAuthSuccesses 0
BackendAuthFails 0
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
show auth_session_statistics
Purpose
Syntax
Used to display the current authentication session statistics. show auth_session_statistics {ports <portlist | all>}
Description The statistics command is used to display the current authentication session statistics of the Switch on a per port basis.
Parameters ports <portlist> − Specifies a range of ports. all – Specifies that all ports will be viewed.
Restrictions None.
Example usage:
To display the current authentication session statistics for port 16:
DGS-3400:4#show auth_session_statistics ports 16
Command: show auth_session_statistics ports 16
Port number : 16
SessionOctetsRx 0
SessionOctetsTx 0
SessionFramesRx 0
SessionFramesTx 0
SessionId
SessionAuthenticMethod Remote Authentication Server
SessionTime 0
SessionTerminateCause SupplicantLogoff
SessionUserName Trinity
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
149
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show auth_statistics
Purpose
Syntax
Used to display the current authentication statistics. show auth_statistics {ports <portlist> | all]}
Description The command is used to display the current authentication statistics of the Switch on a per port basis.
Parameters ports <portlist> − Specifies a range of ports. all – Specifies that all ports will be viewed.
Restrictions None.
Example usage:
To display the current authentication statistics for port 16:
DGS-3400:4#show auth_statistics ports 16
Command: show auth_statistics ports 16
Port number : 16
EapolFramesRx 0
EapolFramesTx 0
EapolStartFramesRx 0
EapolReqIdFramesTx 0
EapolLogoffFramesRx 0
EapolReqFramesTx 0
EapolRespIdFramesRx 0
EapolRespFramesRx 0
InvalidEapolFramesRx 0
EapLengthErrorFramesRx 0
LastEapolFrameVersion 0
LastEapolFrameSource 00-00-00-00-00-00
CTRL+C ESC q Quit SPACE n Next Page Enter Next Entry a All
150
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
21
A
CCESS
C
ONTROL
L
IST
(ACL) C
OMMANDS
The DGS-3400 implements Access Control Lists that enable the Switch to deny network access to specific devices or device groups based on IP settings and MAC address.
Access profiles allow you to establish criteria to determine whether or not the Switch will forward packets based on the information contained in each packet’s header. These criteria can be specified on a VLAN-by-VLAN basis.
Creating an access profile is divided into two basic parts. First, an access profile must be created using the create access_profile command. For example, if you want to deny all traffic to the subnet 10.42.73.0 to 10.42.73.255, you must first create an access profile that instructs the Switch to examine all of the relevant fields of each frame:
CREATE ACCESS_PROFILE PROFILE_ID 1 IP SOURCE_IP_MASK 255.255.255.0
Here we have created an access profile that will examine the IP field of each frame received by the Switch. Each source IP address the Switch finds will be combined with the source_ip_mask with a logical AND operation. The profile_id parameter is used to give the access profile an identifying number − in this case, 1 . The deny parameter instructs the Switch to filter any frames that meet the criteria − in this case, when a logical AND operation between an IP address specified in the next step and the ip_source_mask match.
The default for an access profile on the Switch is to permit traffic flow. If you want to restrict traffic, you must use the deny parameter.
Now that an access profile has been created, you must add the criteria the Switch will use to decide if a given frame should be forwarded or filtered. Here, we want to filter any packets that have an IP source address between 10.42.73.0 and 10.42.73.255: config access_profile profile_id 1 add access_id 1 ip source_ip 10.42.73.1 port 1 deny
Here we use the profile_id 1 which was specified when the access profile was created. The add parameter instructs the Switch to add the criteria that follows to the list of rules that are associated with access profile 1. For each rule entered into the access profile, you can assign an access_id that both identifies the rule and establishes a priority within the list of rules. A lower access_id gives the rule a higher priority. In case of a conflict in the rules entered for an access profile, the rule with the highest priority (lowest access_id ) will take precedence.
The ip parameter instructs the Switch that this new rule will be applied to the IP addresses contained within each frame’s header. source_ip tells the Switch that this rule will apply to the source IP addresses in each frame’s header. Finally, the IP address
10.42.73.1
will be combined with the source_ip_mask 255.255.255.0 to give the IP address 10.42.73.0 for any source IP address between 10.42.73.0 to 10.42.73.255.
Due to a chipset limitation, the Switch supports a maximum of 6 access profiles. The rules used to define the access profiles are limited to a total of 768 rules for the Switch. One rule can support ACL per port or per portmap.
The access profile commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create access_profile profile_id
<value 1-6> [ethernet {vlan | source_mac <macmask 000000000000-ffffffffffff> | destination_mac <macmask 000000000000-ffffffffffff> | 802.1p | ethernet_type} | ip
{source_ip_mask <netmask> | destination_ip_mask <netmask> | dscp | [icmp | igmp | tcp {src_port_mask <hex 0x0-0xffff> | dst_port_mask <hex 0x0-0xffff> | flag_mask [all |
{urg | ack | psh | rst | syn | fin}]} | udp {src_port_mask <hex 0x0-0xffff> | dst_port_mask
<hex 0x0-xffff>} | protocol_id_mask <hex 0x0-0xffff> {user_define_mask <hex 0x0-
0xffffffff>}]} | ipv6 {[class | flowlabel} | source_ipv6_mask <ipv6mask> | destination_ipv6_mask <ipv6mask>]}]
<value 1-6> delete access_profile profile_id config access_profile profile_id
<value 1-6> [add access_id [auto_assign | <value 1-128>] [ethernet {vlan <vlan_name
32> | source_mac <macaddr 000000000000-ffffffffffff> | destination_mac <macaddr
000000000000-ffffffffffff> | 802.1p <value 0-7> | ethernet_type <hex 0x0-0xffff>} port
[<portlist> | all] [permit {priority <value 0-7> {replace_priority} | rx_rate {no_limit |
<value> 1- >]} | deny] | ip {source_ip <ipaddr> | destination_ip <ipaddr> | dscp <value 0-
63> | [icmp | igmp | tcp {src_port <value 0-65535> | dst_port <value 0-65535> | urg | ack
| psh | rst | syn | fin} | udp {src_port <value 0-65535> | dst_port <value 0-65535>} | protocol_id <value 0 - 255> {user_define <hex 0x0-0xffffffff>}]} port [<portlist> | all]
[permit {priority <value 0-7> {replace_priority} | replace_dscp <value 0-63>} | rx_rate
[no limit | <value 1-156249>]} | deny] | ipv6 {[{class <value 0-255> | flowlabel <hex 0x0-
151
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Command Parameters
0xfffff> | source_ipv6 <ipv6addr> | destionation_ipv6 <ipv6addr>]} port [<portlist> | all]
[permit {priority <value 0-7> {replace_priority} | rx_rate [no_limit | <value 1-156249>]] | delete access_id <value 1-128>] show access_profile enable cpu_interface_filtering disable cpu_interface_filtering create cpu access_profile profile_id
{profile_id <value 1-6>} delete cpu access_profile
<value 1-5> [ethernet {vlan | source_mac <macmask> | destination_mac <macmask> |
802.1p | ethernet_type} | ip {vlan | source_ip_mask <netmask> | destination_ip_mask <netmask> | dscp | [icmp {type | code} | igmp {type} | tcp
{src_port_mask <hex 0x0-0xffff> | dst_port_mask <hex 0x0-0xffff> | flag_mask [all | {urg
| ack | psh | rst | syn | fin}]} | udp {src_port_mask <hex 0x0-0xffff> | dst_port_mask <hex
0x0-0xffff>} | protocol_id_mask {<hex 0x0-0xff> {user_define_mask <hex 0x0-
0xffffffff>}]} | packet_content_mask {offset 0-15 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff>| offset 16-31 <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 32-47 <hex 0x0-0xffffffff> <hex
0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 48-63 <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 64-79 <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>}] profile_id <value 1-5> config cpu access_profile show cpu access_profile profile_id <value 1-5> [add access_id <value 1-100> [ethernet {vlan <vlan_name 32> | source_mac <macaddr> | destination_mac <macaddr> | 802.1p <value 0-7> | ethernet_type <hex 0x0-0xffff>} port [<portlist> | all] [permit | deny] | ip {vlan <vlan_name
32> | source_ip <ipaddr> | destination_ip <ipaddr> | dscp <value 0-63> | [icmp {type
<value 0-255> | code <value 0-255>} | igmp {type <value 0-255>} | tcp {src_port <value
0-65535> | dst_port <value 0-65535> | urg | ack | psh | rst | syn | fin}]} | udp {src_port
<value 0-65535> | dst_port <value 0-65535>} | protocol_id <value 0 - 255> {user_define
<hex 0x0-0xffffffff>}]} port [<portlist> | all] [permit | deny] | packet_content {offset_0-15
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>| offset_16-
31 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset_32-47 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> | offset_48-63 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex
0x0-0xffffffff> | offset_64-79 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff>} port [<portlist> | all] [permit | deny]] | delete access_id <value 1-
100>] profile_id <value 1-5>
Each command is listed, in detail, in the following sections.
create access_profile (for Ethernet)
Purpose
Syntax
Description
Parameters
Used to create an access profile on the Switch by examining the Ethernet part of the packet header. Masks entered can be combined with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config access_profile command, below. create access_profile profile_id <value 1-6> [ethernet {vlan | source_mac <macmask
000000000000-ffffffffffff> | destination_mac <macmask 000000000000-ffffffffffff> |
802.1p | ethernet_type}
This command will allow the user to create a profile for packets that may be accepted or denied by the Switch by examining the Ethernet part of the packet header. Specific values for rules pertaining to the Ethernet part of the packet header may be defined by configuring the config access_profile command for Ethernet, as stated below. profile_id <value 1-6> - Specifies an index number between 1 and 6 that will identify the fil b i t d ith thi d
152
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create access_profile (for Ethernet)
access profile being created with this command.
ethernet - Specifies that the Switch will examine the layer 2 part of each packet header with emphasis on one or more of the following:
•
•
• vlan − Specifies that the Switch will examine the VLAN part of each packet header. source_mac <macmask> − Specifies a MAC address mask for the source MAC address. This mask is entered in the following hexadecimal format: 000000000000-
FFFFFFFFFFFF destination_mac <macmask> − Specifies a MAC address mask for the destination MAC address in the following format: 000000000000-FFFFFFFFFFFF
•
•
802.1p
− Specifies that the Switch will examine the 802.1p priority value in the frame’s header. ethernet_type − Specifies that the Switch will examine the Ethernet type value in each frame’s header.
Example usage:
To create an Ethernet access profile:
DGS-3400:4# create access_profile profile_id 1 ethernet vlan 802.1p
Command: create access_profile profile_id 1 ethernet vlan 802.1p
Success.
DGS-3400:4#
config access_profile (for Ethernet)
Purpose
Syntax
Description
Parameters
Used to configure the Ethernet access profile on the Switch and to define specific values for the rules that will be used to by the Switch to determine if a given packet should be forwarded or filtered. Masks entered using the create access_profile command will be combined, using a logical AND operational method, with the values the Switch finds in the specified frame header fields. profile_id <value 1-6> [add access_id [auto_assign | <value 1-128> [ethernet {vlan
<vlan_name 32> | source_mac <macaddr 000000000000-ffffffffffff > | destination_mac
<macaddr 000000000000-ffffffffffff> | 802.1p <value 0-7> | ethernet_type <hex 0x0-
0xffff>} | [permit | deny] | port [<portlist> | all] [permit {priority <value 0-7> { replace_priority} | rx_rate [no_limit | <value 1-156249>]} | deny] delete access_id
<value 1-128>]
This command is used to define the rules used by the Switch to either filter or forward packets based on the Ethernet part of each packet header. profile_id <value 1-6> - Enter an integer between 1 and 6 that is used to identify the access profile that will be configured with this command. This value is assigned to the access profile when it is created with the create access_profile command. The lower the profile
ID, the higher the priority the rule will be given. add access_id <value 1-128> - Adds an additional rule to the above specified access profile. The value specifies the relative priority of the additional rule. Up to 128 different rules may be configured for the Ethernet access profile.
• auto_assign – Choose this parameter to configure the Switch to automatically assign a numerical value (between 1 and 65535) for the rule being configured. ethernet - Specifies that the Switch will look only into the layer 2 part of each packet to determine if it is to be filtered or forwarded based on one or more of the following:
•
• vlan <vlan_name 32> − Specifies that the access profile will apply to only this previously created VLAN. source_mac <macaddr> − Specifies that the access profile will apply to only packets with this source MAC address. MAC address entries may be made in the following
153
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Parameters
config access_profile (for Ethernet)
•
•
• format: 000000000000-FFFFFFFFFFFF destination_mac <macaddr> − Specifies that the access profile will apply to only packets with this destination MAC address. MAC address entries may be made in the following format: 000000000000-FFFFFFFFFFFF
802.1p <value 0-7> − Specifies that the access profile will apply only to packets with this 802.1p priority value. ethernet_type <hex 0x0-0xffff> − Specifies that the access profile will apply only to packets with this hexadecimal 802.1Q Ethernet type value in the packet header. port <portlist> | all - The access profile for Ethernet may be defined for each port on the
Switch. Up to 128 rules may be configured for each port. The user may select all ports by entering the all parameter. permit – Specifies that packets that match the access profile are permitted to be forwarded by the Switch.
• priority <value 0-7> − This parameter is specified if you want to re-write the 802.1p default priority previously set in the Switch, which is used to determine the CoS queue to which packets are forwarded to. Once this field is specified, packets accepted by the Switch that match this priority are forwarded to the CoS queue specified previously by the user.
• {replace_priority} − Enter this parameter if you want to re-write the 802.1p default priority of a packet to the value entered in the Priority field, which meets the criteria specified previously in this command, before forwarding it on to the specified CoS queue. Otherwise, a packet will have its incoming 802.1p user priority re-written to its original value before being forwarded by the Switch. rx_rate – Use this to limit Rx bandwidth for for the profile being configured. This rate is implemented using the following equation – 1 value = 64kbit/sec. (ex. If the user selects a rx rate of 10 then the ingress rate is 640kbit/sec.) The user many select a value between 1-
156249 or no limit. The default setting is no limit. deny – Specifies that packets that do not match the access profile are not permitted to be forwarded by the Switch and will be filtered. delete access_id <value 1-128> − Use this command to delete a specific rule from the
Ethernet profile. Up to 100 rules may be specified for the Ethernet access profile.
Example usage:
To configure a rule for the Ethernet access profile:
DGS-3400:4#config access profile profile_id 1 add access_id 1 ethernet vlan Trinity
802.1p 1 port 1 permit priority 1 replace priority
Command: config access profile profile_id 1 add access_id 1 ethernet vlan Trinity
802.1p 1 port 1 permit priority 1 replace priority
Success.
DGS-3400:4#
create access_profile (IP)
Purpose
Syntax
Used to create an access profile on the Switch by examining the IP part of the packet header. Masks entered can be combined with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config access_profile command, below. create access_profile profile_id <value 1-6> ip {source_ip_mask <netmask> | destination_ip_mask <netmask> | dscp | [icmp | igmp | tcp {src_port_mask <hex 0x0-
0xffff> | dst_port_mask <hex 0x0-0xffff> | flag_mask [all | {urg | ack | psh | rst | syn | fin}]} | udp {<hex 0x0-0xffff> | dst_port_mask <hex 0x0-xffff>} | protocol_id_mask
{<hex 0x0-0xffff> [user_define_mask <hex 0x0-0xffff}]}
154
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create access_profile (IP)
Description This command will allow the user to create a profile for packets that may be accepted or denied by the Switch by examining the IP part of the packet header. Specific values for rules pertaining to the IP part of the packet header may be defined by configuring the config access_profile command for IP, as stated below.
Parameters
Parameters
Restrictions ip - Specifies that the Switch will look into the IP fields in each packet with special emphasis on one or more of the following:
• profile_id <value 1-6> - Specifies an index number between 1 and 6 that will identify the access profile being created with this command.
• source_ip_mask <netmask> − Specifies an IP address mask for the source IP address.
• destination_ip_mask <netmask> − Specifies an IP address mask for the destination
IP address.
•
• dscp − Specifies that the Switch will examine the DiffServ Code Point (DSCP) field in each frame’s header. icmp − Specifies that the Switch will examine the Internet Control Message Protocol
(ICMP) field in each frame’s header.
•
•
•
•
• igmp − Specifies that the Switch will examine each frame’s Internet Group
Management Protocol (IGMP) field. tcp − Specifies that the Switch will examine each frames Transport Control Protocol
(TCP) field.
• src_port_mask <hex 0x0-0xffff> − Specifies a TCP port mask for the source port.
• dst_port_mask <hex 0x0-0xffff> − Specifies a TCP port mask for the destination port. flag_mask [all | {urg | ack | psh | rst | syn | fin}] – Enter the appropriate flag_mask parameter. All incoming packets have TCP port numbers contained in them as the forwarding criterion. These numbers have flag bits associated with them which are parts of a packet that determine what to do with the packet. The user may deny packets by denying certain flag bits within the packets. The user may choose between all , urg (urgent), ack (acknowledgement), psh (push), rst (reset), syn
(synchronize) and fin (finish). udp − Specifies that the Switch will examine each frame’s Universal Datagram
Protocol (UDP) field.
• src_port_mask <hex 0x0-0xffff> − Specifies a UDP port mask for the source port.
• dst_port_mask <hex 0x0-0xffff> − Specifies a UDP port mask for the destination port. protocol_id_mask − Specifies that the Switch will examine each frame’s Protocol ID field.
• <hex 0x0-0xfffffff> - Enter a hexidecimal value that will identify the protocol to be discovered in the packet header.
• user_define <hex 0x0-0xfffffff> − Enter a hexidecimal value that will identify the user defined protocol to be discovered in the packet header.
Example usage:
To configure a rule for the IP access profile:
DGS-3400:4# create access_profile profile_id 2 ip protocol_id_mask 0xFF
Command: create access_profile profile_id 2 ip protocol_id_mask 0xFF
Success.
DGS-3400:4#
155
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config access_profile (IP)
Purpose
Syntax
Description
Parameters
Used to configure the IP access profile on the Switch and to define specific values for the rules that will be used to by the Switch to determine if a given packet should be forwarded or filtered. Masks entered using the create access_profile command will be combined, using a logical AND operational method, with the values the Switch finds in the specified frame header fields. config access_profile profile_id <value 1-6> [add access_id [auto_assign | <value
1-128> ip {source_ip <ipaddr> | destination_ip <ipaddr> | dscp <value 0-63> | [icmp
| igmp | tcp {src_port <value 0-65535> | dst_port <value 0-65535> | urg | ack | psh | rst | syn | fin} | udp {src_port <value 0-65535> | dst_port <value 0-65535>} | port
[<portlist> | all] [permit {priority <value 0-7> {replace_priority} | replace_dscp
<value 0-63>} rx_rate [no_limit | <value 1-156249>]} | deny] | delete access_id
<value 1-128>]
This command is used to define the rules used by the Switch to either filter or forward packets based on the IP part of each packet header. profile_id <value 1-6> - Enter an integer between 1 and 6 that is used to identify the access profile that will be configured with this command. This value is assigned to the access profile when it is created with the create access_profile command. The lower the profile ID, the higher the priority the rule will be given. add access_id <value 1-128> - Adds an additional rule to the above specified access profile. The value specifies the relative priority of the additional rule. Up to 128 different rules may be configured for the IP access profile.
• auto_assign – Choose this parameter to configure the Switch to automatically assign a numerical value (between 1 and 65535) for the rule being configured. ip − Specifies that the Switch will look into the IP fields in each packet to see if it will be either forwarded or filtered based on one or more of the following:
• source_ip <ipaddr> - Specifies that the access profile will apply to only packets with this source IP address.
•
•
•
•
•
•
• destination_ip <ipaddr> − Specifies that the access profile will apply to only packets with this destination IP address. dscp <value 0-63> − Specifies that the access profile will apply only to packets that have this value in their Type-of-Service (DiffServ code point, DSCP) field in their IP packet header. icmp − Specifies that the Switch will examine the Internet Control Message Protocol
(ICMP) field within each packet. igmp − Specifies that the access profile will apply to packets that have this IGMP type. tcp - Specifies that the switch will examine each frames Transport Control Protocol
(TCP) field.
• src_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this TCP source port in their TCP header.
• dst_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this TCP destination port in their TCP header.
Enter the type of TCP flag to be masked. The choices are:
• urg : TCP control flag (urgent)
• ack : TCP control flag (acknowledgement)
• psh : TCP control flag (push)
• rst : TCP control flag (reset)
• syn : TCP control flag (synchronize)
• fin : TCP control flag (finish) udp − Specifies that the Switch will examine the Universal Datagram Protocol
(UDP) field in each packet.
• src_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this UDP source port in their header.
• dst_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this UDP destination port in their header.
156
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config access_profile (IP)
• protocol_id <value 0-255> − Specifies that the Switch will examine the Protocol field in each packet and if this field contains the value entered here, apply the appropriate rules.
• user_define <hex 0x0-0xfffffff> − Enter a hexidecimal value that will identify the protocol to be discovered in the packet header. port <portlist> | all - The access profile for IP may be defined for each port on the Switch.
Up to 128 rules may be configured for each port. Selecting all will configure this rule for all ports on the Switch. permit – Specifies that packets that match the access profile are permitted to be forwarded by the Switch.
•
• priority <value 0-7> − This parameter is specified if you want to re-write the 802.1p default priority previously set in the Switch, which is used to determine the CoS queue to which packets are forwarded to. Once this field is specified, packets accepted by the Switch that match this priority are forwarded to the CoS queue specified previously by the user.
{replace_priority} − Enter this parameter if you want to re-write the 802.1p default priority of a packet to the value entered in the Priority field, which meets the criteria specified previously in this command, before forwarding it on to the specified CoS queue. Otherwise, a packet will have its incoming 802.1p user priority re-written to its original value before being forwarded by the Switch. replace_dscp <value 0-63> − Allows you to specify a value to be written to the DSCP field of an incoming packet that meets the criteria specified in the first part of the command. This value will over-write the value in the DSCP field of the packet. rx_rate - Use this to limit Rx bandwidth for for the profile being configured. This rate is implemented using the following equation – 1 value = 64kbit/sec. (ex. If the user selects a rx rate of 10 then the ingress rate is 640kbit/sec.) The user many select a value between
1- 156249 or no limit. The default setting is no limit. deny – Specifies that packets that do not match the access profile are not permitted to be forwarded by the Switch and will be filtered. delete access_id <value 1-128> − Use this command to delete a specific rule from the IP profile. Up to 128 rules may be specified for the IP access profile.
Example usage:
To configure a rule for the IP access profile:
DGS-3400:4#config access_profile profile_id 2 add access_id 2 ip protocol_id 2 port 2 deny
Command: config access_profile profile_id 2 add access_id 2 ip protocol_id 2 port 2 deny
Success.
DGS-3400:4#
create access_profile (ipv6)
Purpose
Syntax
Description
Used to create an access profile on the Switch by examining the IPv6 part of the packet header. Masks can be entered that will be combined with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config access_profile command, below. create access_profile profile_id <value 1-6>} ipv6 {class | flowlabel | source_ipv6_mask <ipv6mask> | destination_ipv6_mask <ipv6mask>}]
This command is used to identify various parts of IPv6 packets that enter the
Switch so they can be either forwarded or filtered.
157
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create access_profile (ipv6)
Parameters profile_id <value 1-6> - Specifies an index number between 1 and 6 that will identify the access profile being created with this command.
ipv6 – Denotes that IPv6 packets will be examined by the Switch for forwarding or filtering based on the rules configured in the config access_profile command for IPv6. IPv6 packets may be identified by the following:
• class – Entering this parameter will instruct the Switch to examine the class field of the IPv6 header. This class field is a part of the packet header that is similar to the Type of Service (ToS) or Precedence bits field in IPv4.
• flowlabel – Entering this parameter will instruct the Switch to examine the flow label field of the IPv6 header. This flow label field is used by a source to label sequences of packets such as non-default quality of service or real time service packets.
•
• source_ipv6_mask <ipv6mask> - Specifies an IP address mask for the source IPv6 address. destination_ipv6_mask <ipv6mask> - Specifies an IP address mask for the destination IPv6 address.
Example usage:
To create an access profile based on IPv6 classification:
DGS-3400:4#create access_profile profile_id 4 ipv6 class flowlabel
Command: create access_profile profile_id 4 ipv6 class flowlabel
Success.
DGS-3400:4#
config access_profile profile_id (ipv6)
Purpose
Syntax
Description
Parameters
Used to configure the IPv6 access profile on the Switch and to define specific values for the rules that will be used to by the Switch to determine if a given packet should be forwarded or filtered. Masks entered using the create access_profile command will be combined, using a logical AND operational method, with the values the Switch finds in the specified frame header fields. config access_profile profile_id <value 1-6> add access_id [auto_assign | <value
1-128>] ipv6 {class <value 0-255> | flowlabel <hex 0x0-0xfffff> | source_ipv6
<ipv6addr> | destionation_ipv6 <ipv6addr>} port [<portlist> | all] [permit {priority
<value 0-7> {replace_priority} | deny | rx_rate [no_limit | value 1-156249]]] | delete access_id <value 1-128>]
This command is used to define the rules used by the Switch to either filter or forward packets based on the IPv6 part of each packet header. profile_id <value 1-6> - Enter an integer between 1 and 6 that is used to identify the access profile that will be configured with this command. This value is assigned to the access profile when it is created with the create access_profile command. The lower the profile ID, the higher the priority the rule will be given. add access_id <value 1-128> - Adds an additional rule to the above specified access profile. The value specifies the relative priority of the additional rule. Up to 128 different rules may be configured for the IPv6 access profile.
• auto_assign – Choose this parameter to configure the Switch to automatically assign a numerical value (between 1 and 65535) for the rule being configured.
158
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config access_profile profile_id (ipv6)
ipv6 - Specifies that the Switch will look into the IPv6 fields in each packet, with emphasis on one or more of the following fields:
• class <value 0-255> - Entering this parameter will instruct the Switch to examine the class field of the IPv6 header. This class field is a part of the packet header that is similar to the Type of Service (ToS) or Precedence bits field in IPv4.
•
• flowlabel <hex 0x0-fffff> - Entering this parameter will instruct the Switch to examine the flow label field of the IPv6 header. This flow label field is used by a source to label sequences of packets such as non-default quality of service or real time service packets. This field is to be defined by the user in hex form. source_ipv6 <ipv6addr> - Specifies an IP address mask for the source IPv6 address.
• destination_ipv6 <ipv6addr> - Specifies an IP address mask for the destination
IPv6 address. port <portlist> | all - The access profile for Ethernet may be defined for each port on the
Switch. Up to 128 rules may be configured for each port. Selecting all will configure this rule for all ports on the Switch. permit – Specifies that packets that match the access profile are permitted to be forwarded by the Switch.
•
• priority <value 0-7> − This parameter is specified to re-write the 802.1p default priority previously set in the Switch, which is used to determine the CoS queue to which packets are forwarded to. Once this field is specified, packets accepted by the Switch that match this priority are forwarded to the CoS queue specified previously by the user.
{replace_priority} − Enter this parameter to re-write the 802.1p default priority of a packet to the value entered in the Priority field, which meets the criteria specified previously in this command, before forwarding it on to the specified CoS queue.
Otherwise, a packet will have its incoming 802.1p user priority re-written to its original value before being forwarded by the Switch. deny – Specifies that packets that match the access profile are not permitted to be forwarded by the Switch and will be filtered. rx_rate - Use this to limit Rx bandwidth for for the profile being configured. This rate is implemented using the following equation – 1 value = 64kbit/sec. (ex. If the user selects a rx rate of 10 then the ingress rate is 640kbit/sec.) The user many select a value between 1- 156249 or no limit. The default setting is no limit. delete access_id <value 1-128> − Use this command to delete a specific rule from the
IPv6 profile. Up to 128 rules may be specified for the IPv6 access profile.
Restrictions Only
Example usage:
To configure a previously created access profile based on IPv6 classification:
DGS-3400:4#config access_profile profile_id 4 add access_id 1 ipv6 class 1 flowlabel 0xABCD port 4 deny
Command: config access_profile profile_id 4 add access_id 1 ipv6 class 1 flowlabel 0xABCD port 4 deny
Success.
DGS-3400:4#
159
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete access_profile
Purpose
Syntax
Used to delete a previously created access profile. delete access_profile profile_id <value 1-6>
Description The command is used to delete a previously created access profile on the Switch.
Parameters profile_id <value 1-6> − Enter an integer between 1 and 8 that is used to identify the access profile that will be deleted with this command. This value is assigned to the access profile when it is created with the create access_profile command.
Example usage:
To delete the access profile with a profile ID of 1:
DGS-3400:4# delete access_profile profile_id 1
Command: delete access_profile profile_id 1
Success.
DGS-3400:4#
show access_profile
Purpose
Syntax
Description
Parameters
Used to display the currently configured access profiles on the Switch. show access_profile {profile_id <value 1-6>}
The show access_profile command is used to display the currently configured access profiles. profile_id <value 1-6> − Enter an integer between 1 and 6 that is used to identify the access profile that will be viewed with this command. This value is assigned to the access profile when it is created with the create access_profile command.
Entering this command without the profile_id parameter will command the
Switch to display all access profile entries.
Example usage:
To display all of the currently configured access profiles on the Switch:
160
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show access_profile
Command: show access_profile
Access Profile Table
Access Profile ID: 1 TYPE : Ethernet
======================================================================
MASK Option :
VLAN 802.1p
----------- ------
Access ID : 3 Mode: Permit(replaced) priority: 1
Ports: 1
----------- ------
Trinity 1
======================================================================
Access Profile ID: 2 TYPE : IP
======================================================================
MASK Option :
Protocol ID
--------------------
Access ID : 2 Mode: Deny
Ports: 2
--------------------
2
======================================================================
Access Profile ID: 3 TYPE : Packet Content
======================================================================
MASK Option :
Offset 0-15 : 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF
Offset 16-31 : 0x0000FFFF 0xFFFF0000 0x0000000F 0x0F000000
Access ID : 1 Mode: Deny
Ports: 1
Offset 0-15 : 0x11111111 0x11111111 0x11111111 0x11111111
Offset 16-31 : 0x00001111 0x11110000 0x00000001 0x01000000
======================================================================
Total Entries: 3
DGS-3400:4#
create cpu access_profile
Purpose
Syntax
Used to create an access profile specifically for CPU Interface Filtering on the Switch and to define which parts of each incoming frame’s header the Switch will examine. Masks can be entered that will be combined with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config cpu access_profile command, below. create cpu access_profile profile_id <value 1-5> [ethernet {vlan | source_mac <macmask>
| destination_mac <macmask> | 802.1p | ethernet_type} | ip {vlan | source_ip_mask
<netmask> | destination_ip_mask <netmask> | dscp | [icmp {type | code} | igmp {type} | tcp
{src_port_mask <hex 0x0-0xffff> | dst_port_mask <hex 0x0-0xffff>} | flag_mask [all | {urg | ack | psh | rst | syn | fin}]} | udp {src_port_mask <hex 0x0-0xffff> | dst_port_mask <hex
0x0-0xffff>} | protocol_id_mask <hex 0x0-0xffffffff>} {user_define_mask <hex 0x0-
0xffffffff>}]} | packet_content_mask {offset 0-15 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset 16-31 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 32-47 <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 48-63 <hex 0x0-0xffffffff> <hex
0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | {offset 64-79 <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>}]
161
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create cpu access_profile
Parameters
Description The create cpu access_profile command is used to create an access profile used only for CPU
Interface Filtering. Masks can be entered that will be combined with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config cpu access_profile command, below. ethernet − Specifies that the Switch will examine the layer 2 part of each packet header.
• vlan − Specifies that the Switch will examine the VLAN part of each packet header.
•
•
•
• source_mac <macmask> - Specifies to examine the source MAC address mask. destination_mac <macmask> - Specifies to examine the destination MAC address mask.
802.1p
- Specifies that the Switch will examine the 802.1p priority value in the frame’s header. ethernet_type − Specifies that the switch will examine the Ethernet type value in each frame’s header. ip − Specifies that the switch will examine the IP address in each frame’s header.
• vlan − Specifies a VLAN mask.
•
•
•
•
•
•
•
• source_ip_mask <netmask> − Specifies an IP address mask for the source IP address. destination_ip_mask <netmask> − Specifies an IP address mask for the destination IP address. dscp − Specifies that the switch will examine the DiffServ Code Point (DSCP) field in each frame’s header. icmp − Specifies that the switch will examine the Internet Control Message Protocol (ICMP) field in each frame’s header.
•
• type − Specifies that the switch will examine each frame’s ICMP Type field. code − Specifies that the switch will examine each frame’s ICMP Code field. igmp − Specifies that the switch will examine each frame’s Internet Group Management
Protocol (IGMP) field.
• type − Specifies that the switch will examine each frame’s IGMP Type field. tcp − Specifies that the switch will examine each frames Transport Control Protocol (TCP) field.
•
• src_port_mask <hex 0x0-0xffff> − Specifies a TCP port mask for the source port. dst_port_mask <hex 0x0-0xffff> − Specifies a TCP port mask for the destination port. flag_mask [ all | {urg | ack | psh | rst | syn | fin}] – Enter the appropriate flag_mask parameter. All incoming packets have TCP port numbers contained in them as the forwarding criterion. These numbers have flag bits associated with them which are parts of a packet that determine what to do with the packet. The user may deny packets by denying certain flag bits within the packets. The user may choose between all , urg (urgent), ack
(acknowledgement), psh (push), rst (reset), syn (synchronize) and fin (finish). udp − Specifies that the switch will examine each frame’s Universal Datagram Protocol
(UDP) field.
•
•
•
• src_port_mask <hex 0x0-0xffff> − Specifies a UDP port mask for the source port. dst_port_mask <hex 0x0-0xffff> − Specifies a UDP port mask for the destination port. protocol_id_mask <hex 0x0-0xffffffff> − Specifies that the Switch will examine each frame’s
Protocol ID field using the hex form entered here.
• user_define_mask <hex 0x0-0xffffffff> − Specifies that the rule applies to the IP protocol
ID and the mask options behind the IP header. packet_content_mask – Specifies that the switch will mask the packet header beginning with the offset value specified as follows:
•
•
• offset_0-15 - Enter a value in hex form to mask the packet from byte 0 to byte 15. offset_16-31 - Enter a value in hex form to mask the packet from byte 16 to byte 31. offset_32-47 - Enter a value in hex form to mask the packet from byte 32 to byte 47.
•
• offset_48-63 - Enter a value in hex form to mask the packet from byte 48 to byte 63. offset_64-79 - Enter a value in hex form to mask the packet from byte 64 to byte 79.
Restrictions Only
Example usage:
To create a CPU access profile:
162
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# create cpu access_profile profile_id 1 ip vlan source_ip_mask 20.0.0.0
destination_ip_mask 10.0.0.0 dscp icmp type code
Command: create cpu access_profile profile_id 1 ip vlan source_ip_mask 20.0.0.0 destination_ip_mask 10.0.0.0 dscp icmp type code
Success.
DGS-3400:4#
delete cpu access_profile
Purpose Used to delete a previously created access profile or cpu access profile.
Syntax
Parameters delete cpu access_profile profile_id <value 1-5>
Description The command is used to delete a previously created cpu access profile. profile_id <value 1-5> − Enter an integer between 1 and 5 that is used to identify the cpu access profile to be deleted with this command. This value is assigned to the access profile when it is created with the create cpu access_profile command.
Example usage:
To delete the CPU access profile with a profile ID of 1:
DGS-3400:4#delete cpu access_profile profile_id 1
Command: delete cpu access_profile profile_id 1
Success.
DGS-3400:4#
config cpu access_profile
Purpose
Syntax
Used to configure a cpu access profile used for CPU Interface Filtering and to define specific values that will be used to by the Switch to determine if a given packet should be forwarded or filtered. Masks entered using the create cpu access_profile command will be combined, using a logical AND operation, with the values the Switch finds in the specified frame header fields. Specific values for the rules are entered using the config cpu access_profile command, below. config cpu access_profile profile_id <value 1-5> [ add access_id <value 1-100>
[ethernet {vlan <vlan_name 32> | source_mac <macaddr> | destination_mac
<macaddr> | 802.1p <value 0-7> | ethernet_type <hex 0x0-0xffff>} port [<portlist> | all] | ip {vlan vlan_name 32> | source_ip <ipaddr> | destination_ip <ipaddr> | dscp <value 0-
63> | [icmp {type <value 0-255> | code <value 0-255>} | igmp { type <value 0-255>} | tcp
{src_port <value 0-65535> | dst_port <value 0-65535> | flag [all | {urg | ack | psh | rst | syn | fin}]} | udp {src_port <value 0-65535> | dst_port <value 0-65535>} | protocol_id
<value 0 - 255> {user_define <hex 0x0-0xffffffff>}]} port [<portlist> | all] [permit | deny] | packet_content {offset_0-15 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> | offset_16-31 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> | offset_32-47 <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset_48-63 <hex 0x0-0xffffffff> <hex 0x0-
0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff> | offset_64-79 <hex 0x0-0xffffffff>
<hex 0x0-0xffffffff> <hex 0x0-0xffffffff> <hex 0x0-0xffffffff>} port [<portlist> | all] [permit
| deny]] | delete access_id <value 1-100>]
Description The command is used to configure a cpu access profile for CPU
Interface Filtering and to enter specific values that will be combined, using a logical AND operational method, with masks entered with the create cpu access_profile command,
163
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Parameters
config cpu access_profile
above. profile_id <value 1-5> − Enter an integer used to identify the access profile that will be configured with this command. This value is assigned to the access profile when it is created with the create access_profile command. The profile ID sets the relative priority for the profile and specifies an index number that will identify the access profile being created with this command. Priority is set relative to other profiles where the lowest profile ID has the highest priority.
• add access_id <value 1-100> − Adds an additional rule to the above specified access profile. The value is used to index the rule created.
ethernet − Specifies that the Switch will look only into the layer 2 part of each packet.
• vlan <vlan_name 32> − Specifies that the access profile will apply to only to this
VLAN.
• source_mac <macaddr> − Specifies that the access profile will apply to this source
MAC address.
• destination_mac <macaddr> − Specifies that the access profile will apply to this destination MAC address.
• ethernet_type <hex 0x0-0xffff> − Specifies that the access profile will apply only to packets with this hexadecimal 802.1Q Ethernet type value in the packet header.
ip − Specifies that the Switch will look into the IP fields in each packet.
• vlan <vlan_name 32> − Specifies that the access profile will apply to only this
VLAN.
• source_ip <ipaddr> − Specifies that the access profile will apply to only packets with this source IP address.
• destination_ip <ipaddr> − Specifies that the access profile will apply to only packets with this destination IP address.
• dscp <value 0-63> − Specifies that the access profile will apply only to packets that have this value in their Type-of-Service (DiffServ code point, DSCP) field in their IP packet header
• icmp − Specifies that the Switch will examine the Internet Control Message Protocol
(ICMP) field within each packet.
• type <value 0-255> − Specifies that the access profile will apply to this ICMP type value.
• code <value 0-255> − Specifies that the access profile will apply to this ICMP code.
• igmp − Specifies that the Switch will examine the Internet Group Management
Protocol (IGMP) field within each packet.
• type <value 0-255> − Specifies that the access profile will apply to packets that have this IGMP type value.
• tcp − Specifies that the Switch will examine the Transmission Control Protocol (TCP) field within each packet.
• src_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this TCP source port in their TCP header.
• dst_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this TCP destination port in their TCP header.
• protocol_id <value 0-255> − Specifies that the switch will examine the Protocol field in each packet and if this field contains the value entered here, apply the following rules.
• udp − Specifies that the Switch will examine the Transmission Control Protocol
(TCP) field within each packet.
• src_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this UDP source port in their header.
• dst_port <value 0-65535> − Specifies that the access profile will apply only to packets that have this UDP destination port in their header.
• protocol_id <value 0-255> − Specifies that the Switch will examine the protocol field in each packet and if this field contains the value entered here, apply the following
164
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config cpu access_profile
Parameters rules.
• user_define_mask <hex 0x0-0xffffffff> − Specifies that the rule applies to the IP protocol ID and the mask options behind the IP header.
• packet_content_mask – Specifies that the Switch will mask the packet header beginning with the offset value specified as follows:
• offset_0-15 - Enter a value in hex form to mask the packet from byte 0 to byte 15.
• offset_16-31 - Enter a value in hex form to mask the packet from byte 16 to byte 31.
• offset_32-47 - Enter a value in hex form to mask the packet from byte 32 to byte 47.
• offset_48-63 - Enter a value in hex form to mask the packet from byte 48 to byte 63.
• offset_64-79 - Enter a value in hex form to mask the packet from byte 64 to byte 79. permit | deny – Specify that the packet matching the criteria configured with command will either be permitted entry to the cpu or denied entry to the cpu. delete access_id <value 1-100> - Use this to remove a previously created access rule in a profile ID.
Restrictions
Example usage:
To configure CPU access list entry:
DGS-3400:4#config cpu access_profile profile_id 5 add access_id 1 ip vlan default source_ip 20.2.2.3 destination_ip 10.1.1.252 dscp 3 icmp type 11 code 32 port 1 deny
Command: config cpu access_profile profile_id 10 add access_id 1 ip vlan default source_ip 20.2.2.3 destination_ip 10.1.1.252 dscp 3 icmp type 11 code 32 port 1 deny
Success.
DGS-3400:4#
delete cpu access_profile
Purpose Used to delete a previously created access profile or cpu access profile.
Syntax delete cpu access_profile profile_id <value 1-5>
Description The command is used to delete a previously created CPU access profile.
Parameters profile_id <value 1-5> − Enter an integer between 1 and 5 that is used to identify the CPU access profile to be deleted with this command. This value is assigned to the access profile when it is created with the create cpu access_profile command.
Restrictions Only
Example usage:
To delete the CPU access profile with a profile ID of 1:
DES-3400:4#delete cpu access_profile profile_id 1
Command: delete cpu access_profile profile_id 1
Success.
DES-3400:4#
165
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show cpu_access_profile
Purpose
Syntax
Used to view the CPU access profile entry currently set in the Switch. show cpu_access_profile {profile_id <value 1-5> {access_id <value 1-5>}}
Description The command is used view the current CPU interface filtering entries set on the Switch.
Parameters profile_id <value 1-5> − Enter an integer between 1 and 5 that is used to identify the
CPU access profile to be deleted with this command. This value is assigned to the access profile when it is created with the create cpu access_profile command
Example usage:
To show the CPU filtering state on the Switch:
DGS-3400:4#show cpu access_profile
Command: show cpu access_profile
CPU Interface Filtering State: Disabled
CPU Interface Access Profile Table
Access Profile ID: 1 TYPE : Ethernet
================================================================================
MASK Option :
VLAN 802.1p
---------- ------
Access ID: 2 Mode: Permit
Ports: 1
--------------------- default
================================================================================
Total Entries: 1
DGS-3400:4#
166
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
22
S
AFEGUARD
E
NGINE
C
OMMANDS
Periodically, malicious hosts on the network will attack the Switch by utilizing packet flooding (ARP Storm) or other methods.
These attacks may increase the CPU utilization beyond its capability. To alleviate this problem, the Safeguard Engine function was added to the Switch’s software.
The Safeguard Engine can help the overall operability of the Switch by minimizing the workload of the Switch while the attack is ongoing, thus making it capable to forward essential packets over its network in a limited bandwidth. When the Switch either (a) receives too many packets to process or (b) exerts too much memory, it will enter an Exhausted mode. When in this mode, the
Switch will perform the following tasks to minimize the CPU usage:
1. It will limit bandwidth of receiving ARP packets. The user may implement this in two ways, by using the config safeguard_engine command. a. When is chosen, the Switch will stop receiving ARP packets not destined for the Switch. This will eliminate all unnecessary ARP packets while allowing the essential ARP packets to pass through to the Switch’s
CPU. b. When is chosen, the Switch will minimize the ARP packet bandwidth received by the switch by adjusting the bandwidth for all ARP packets, whether destined for the Switch or not. The Switch uses an internal algorithm to filter ARP packets through, with a higher percentage set aside for ARP packets destined for the
Switch.
2. It will limit the bandwidth of IP packets received by the Switch. The user may implement this in two ways, by using the config safeguard_engine command. a. When is chosen, the Switch will stop receiving all unnecessary broadcast IP packets, even if the high CPU utilization is not caused by the high reception rate of broadcast IP packets. b. When is chosen, the Switch will minimize the IP packet bandwidth received by the Switch by adjusting the bandwidth for all IP packets, by setting a acceptable bandwidth for both unicast and broadcast IP packets.
The Switch uses an internal algorithm to filter IP packets through while adjusting the bandwidth dynamically.
IP packets may also be limited by the Switch by configuring only certain IP addresses to be accepted. This method can be accomplished through the CPU Interface Filtering mechanism explained in the previous section. Once the user configures these acceptable IP addresses, other packets containing different IP addresses will be dropped by the Switch, thus limiting the bandwidth of IP packets. To keep the process moving fast, be sure not to add many conditions on which to accept these acceptable
IP addresses and their packets, this limiting the CPU utilization.
Once in Exhausted mode, the packet flow will decrease by half of the level that caused the Switch to enter Exhausted mode. After the packet flow has stabilized, the rate will initially increase by 25% and then return to a normal packet flow.
NOTICE: When the Safeguard Engine is enabled, the Switch will allot bandwidth to various traffic flows (ARP, IP) using the FFP (Fast Filter
Processor) metering table to control the CPU utilization and limit traffic.
This may limit the speed of routing traffic over the network.
The Safeguard Engine commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config safeguard_engine show safeguard_engine
{state [enable | disable] | utilization {rising <value 20-100> | falling <value
20-100>} | trap_log [enable | disable] | mode [strict | fuzzy]}
Each command is listed, in detail, in the following sections.
config safeguard_engine
Purpose
Syntax
Description
To config ARP storm control for system. config safeguard_engine {state [enable | disable] | utilization {rising
<value 20-100> | falling <value 20-100>} | trap_log [enable | disable] | mode [strict | fuzzy]}
Use this command to configure Safeguard Engine to minimize the effects of an ARP storm.
167
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config safeguard_engine
Parameters state [enable | disable] – Select the running state of the Safeguard Engine function as enable or disable. utilization – Select this option to trigger the Safeguard Engine function to enable based on the following determinates:
• rising <value 20-100> - The user can set a percentage value of the rising CPU utilization which will trigger the Safeguard Engine function. Once the CPU utilization rises to this percentage, the
Safeguard Engine mechanism will initiate.
• falling <value 20-100> - The user can set a percentage value of the falling CPU utilization which will trigger the Safeguard Engine function to cease. Once the CPU utilization falls to this percentage, the Safeguard Engine mechanism will shut down. trap_log [enable | disable] – Choose whether to enable or disable the sending of messages to the device’s SNMP agent and switch log once the
Safeguard Engine has been activated by a high CPU utilization rate. mode - Used to select the type of Safeguard Engine to be activated by the
Switch when the CPU utilization reaches a high rate. The user may select:
• strict – If selected, this function will instruct the Switch to minimize the IP and ARP traffic flow to the CPU by dynamically allotting an even bandwidth to all traffic flows.
• fuzzy - If selected, this function will stop accepting all ARP packets not intended for the Switch, and will stop receiving all unnecessary broadcast IP packets, until the storm has subsided.
Example usage:
To configure the safeguard engine for the Switch:
DGS-3400:4#config safeguard_engine state enable utilization rising 45
Command: config safeguard_engine state enable utilization rising 45
Success.
DGS-3400:4#
show safeguard_engine
Purpose
Syntax
Used to display current Safeguard Engine settings. show safeguard_engine
Description This will list the current status and type of the Safeguard Engine settings currently configured.
Parameters None.
Restrictions
Example usage:
To display the safeguard engine status:
168
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show safeguard_engine
Command: show safeguard_engine
Safeguard engine state : Disabled
Safeguard engine current status : normal mode
=======================================================
CPU utilization information:
Rising : 30%
Falling : 20%
Trap/Log state : Disabled
Mode : Fuzzy
DGS-3400:4#
169
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
23
T
RAFFIC
S
EGMENTATION
C
OMMANDS
Traffic segmentation allows you to further sub-divide VLANs into smaller groups of ports that will help to reduce traffic on the
VLAN. The VLAN rules take precedence, and then the traffic segmentation rules are applied.
Command Parameters config traffic_segmentation show traffic_segmentation
[<portlist> | all] forward_list [null | all | <portlist>]
{<portlist>}
Each command is listed, in detail, in the following sections.
config traffic_segmentation
Purpose Used to configure traffic segmentation on the Switch.
Syntax
Description The command is used to configure traffic segmentation on the Switch.
Parameters config traffic_segmentation [<portlist> | all] forward_list [null | all | <portlist>]
<portlist> − Specifies a port or range of ports that will be configured for traffic segmentation. all – Specifies all ports on the Switch. forward_list − Specifies a port or range of ports that will receive forwarded frames from the ports specified in the portlist, above.
• null − No ports are specified
•
• all – Specifies all ports on the Switch.
<portlist> − Specifies a range of ports for the forwarding list.
This list must be on the same switch previously specified for traffic segmentation (i.e. following the <portlist> specified above for config traffic_segmentation ).
Restrictions administrator-level users can issue this command.
Example usage:
To configure ports 1 through 10 to be able to forward frames to port 11 through 15:
DGS-3400:4# config traffic_segmentation 1-10 forward_list 11-15
Command: config traffic_segmentation 1-10 forward_list 11-15
Success.
DGS-3400:4#
show traffic_segmentation
Purpose
Restrictions
Used to display the current traffic segmentation configuration on the
Switch. show traffic_segmentation {<portlist>} Syntax
Description The command is used to display the current traffic segmentation configuration on the Switch.
Parameters <portlist> − Specifies a port or range of ports for which the current traffic segmentation configuration on the Switch will be displayed.
The port lists for segmentation and the forward list must be on the same
Switch.
170
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To display the current traffic segmentation configuration on the Switch.
DGS-3400:4#show traffic_segmentation
Command: show traffic_segmentation
Traffic Segmentation Table
Port Forward Portlist
------ --------------------------------------------------
1 1-28
2 1-28
3 1-28
4 1-28
5 1-28
6 1-28
7 1-28
8 1-28
9 1-28
10 1-28
11 1-28
12 1-28
13 1-28
14 1-28
15 1-28
16 1-28
17 1-28
18 1-28
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
171
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
24
T
IME AND
SNTP C
OMMANDS
The Simple Network Time Protocol (SNTP) (an adaptation of the Network Time Protocol (NTP)) commands in the Command
Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters config sntp show sntp enable sntp disable sntp config time config time_zone config dst show time
{primary <ipaddr> | secondary <ipaddr> | poll-interval <int 30-99999>}
<date ddmthyyyy > <time hh:mm:ss >
{operator [+ | -] | hour <gmt_hour 0-13> | min <minute 0-59>}
[disable | repeating {s_week <start_week 1-4,last> | s_day <start_day sun-sat>| s_mth <start_mth 1-12> | s_time <start_time hh:mm> | e_week
<end_week 1-4,last> | e-day <end_day sun-sat> | e_mth <end_mth 1-
12> | e_time <end_time hh:mm> | offset [30 | 60 | 90 | 120]} | annual
{s_date <start_date 1-31> | s_mth <start_mth 1-12> | s_time <start_time hh:mm> | e_date <end_date 1-31> | e_mth <end_mth 1-12> | e_time
<end_time hh:mm> | offset [30 | 60 | 90 | 120]}]
Each command is listed, in detail, in the following sections.
config sntp
Purpose
Syntax
Description
Parameters
Restrictions
Used to setup SNTP service. config sntp {primary <ipaddr> | secondary <ipaddr> | poll-interval <int
30-99999>}
Use this command to configure SNTP service from an SNTP server. SNTP must be enabled for this command to function (See enable sntp ). primary − This is the primary server the SNTP information will be taken from.
• <ipaddr> − The IP address of the primary server. secondary − This is the secondary server the SNTP information will be taken from in the event the primary server is unavailable.
• <ipaddr> − The IP address for the secondary server. poll-interval <int 30-99999> − This is the interval between requests for updated SNTP information. The polling interval ranges from 30 to 99,999 seconds.
Only administrator-level users can issue this command. SNTP service must be enabled for this command to function ( enable sntp ).
Example usage:
To configure SNTP settings:
DGS-3400:4#config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30
Command: config sntp primary 10.1.1.1 secondary 10.1.1.2 poll-interval 30
Success.
DGS-3400:4#
172
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show sntp
Purpose
Syntax
Used to display the SNTP information. show sntp
Description This command will display SNTP settings information including the source IP address, time and poll interval.
Parameters None.
Restrictions None.
Example usage:
To display SNTP configuration information:
DGS-3400:4#show sntp
Command: show sntp
Current Time Source : System Clock
SNTP : Disabled
SNTP Primary Server : 10.1.1.1
SNTP Secondary Server : 10.1.1.2
SNTP Poll Interval : 30 sec
DGS-3400:4#
enable sntp
Purpose To enable SNTP server support.
Syntax
Description enable sntp
This will enable SNTP support. SNTP service must be separately configured (see config sntp ). Enabling and configuring SNTP support will override any manually configured system time settings.
Parameters None. administrator-level users can issue this command. SNTP settings must be configured for SNTP to function ( config sntp ).
Example usage:
To enable the SNTP function:
DGS-3400:4#enable sntp
Command: enable sntp
Success.
DGS-3400:4#
disable sntp
Purpose
Syntax
To disable SNTP server support. disable sntp
Description This will disable SNTP support. SNTP service must be separately configured (see config sntp ).
Parameters None.
Example:
173
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To disable SNTP support:
DGS-3400:4#disable sntp
Command: disable sntp
Success.
DGS-3400:4#
config time
Purpose
Syntax
Used to manually configure system time and date settings. config time <date ddmthyyyy> <time hh:mm:ss>
Description
Parameters
This will configure the system time and date settings. These will be overridden if SNTP is configured and enabled. date – Express the date using two numerical characters for the day of the month, three alphabetical characters for the name of the month, and four numerical characters for the year. For example: 03aug2003. time – Express the system time using the format hh:mm:ss, that is, two numerical characters each for the hour using a 24-hour clock, the minute and second. For example: 19:42:30. administrator-level configured system time and date settings are overridden if SNTP support is enabled.
Example usage:
To manually set system time and date settings:
DGS-3400:4#config time 30jun2003 16:30:30
Command: config time 30jun2003 16:30:30
Success.
DGS-3400:4#
config time_zone
Purpose
Syntax
Description
Parameters
Used to determine the time zone used in order to adjust the system clock. config time_zone {operator [+ | -] | hour <gmt_hour 0-13> | min
<minute 0-59>}
This will adjust system clock settings according to the time zone. Time zone settings will adjust SNTP information accordingly. operator – Choose to add (+) or subtract (-) time to adjust for time zone relative to GMT. hour – Select the number of hours different from GMT. min – Select the number of minutes difference added or subtracted to adjust the time zone.
Example usage:
To configure time zone settings:
174
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config time_zone operator + hour 2 min 30
Command: config time_zone operator + hour 2 min 30
Success.
DGS-3400:4#
config dst
Purpose
Syntax
Description
Used to enable and configure time adjustments to allow for the use of Daylight
Savings Time (DST). config dst [disable | repeating {s_week <start_week 1-4,last> | s_day <start_day sun-sat> | s_mth <start_mth 1-12> | s_time start_time hh:mm> | e_week
<end_week 1-4,last> | e_day <end_day sun-sat> | e_mth <end_mth 1-12> | e_time
<end_time hh:mm> | offset [30 | 60 | 90 | 120]} | annual {s_date start_date 1-31> | s_mth <start_mth 1-12> | s_time <start_time hh:mm> | e_date <end_date 1-31> | e_mth <end_mth 1-12> | e_time <end_time hh:mm> | offset [30 | 60 | 90 | 120]}]
DST can be enabled and configured using this command. When enabled this will adjust the system clock to comply with any DST requirement. DST adjustment effects system time for both manually configured time and time set using SNTP service. disable - Disable the DST seasonal time adjustment for the Switch. repeating - Using repeating mode will enable DST seasonal time adjustment.
Repeating mode requires that the DST beginning and ending date be specified using a formula. For example, specify to begin DST on Saturday during the second week of
April and end DST on Sunday during the last week of October. annual - Using annual mode will enable DST seasonal time adjustment. Annual mode requires that the DST beginning and ending date be specified concisely. For example, specify to begin DST on April 3 and end DST on October 14. s_week - Configure the week of the month in which DST begins.
• <start_week 1-4,last> - The number of the week during the month in which
DST begins where 1 is the first week, 2 is the second week and so on, last is the last week of the month. e_week - Configure the week of the month in which DST ends.
• <end_week 1-4,last> - The number of the week during the month in which
DST ends where 1 is the first week, 2 is the second week and so on, last is the last week of the month. s_day – Configure the day of the week in which DST begins.
• <start_day sun-sat> - The day of the week in which DST begins expressed using a three character abbreviation (sun, mon, tue, wed, thu, fri, sat) e_day - Configure the day of the week in which DST ends.
• <end_day sun-sat> - The day of the week in which DST ends expressed using a three character abbreviation (sun, mon, tue, wed, thu, fri, sat) s_mth - Configure the month in which DST begins.
• <start_mth 1-12> - The month to begin DST expressed as a number. e_mth - Configure the month in which DST ends.
• <end_mth 1-12> - The month to end DST expressed as a number. s_time – Configure the time of day to begin DST.
• <start_time hh:mm> minutes.
- Time is expressed using a 24-hour clock, in hours and e_time - Configure the time of day to end DST.
• <end_time hh:mm> minutes.
- Time is expressed using a 24-hour clock, in hours and s_date - Configure the specific date (day of the month) to begin DST.
• <start_date 1-31> - The start date is expressed numerically .
175
config dst
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Parameters e_date - Configure the specific date (day of the month) to begin DST.
• <end_date 1-31> - The end date is expressed numerically. offset [30 | 60 | 90 | 120] - Indicates number of minutes to add or to subtract during the summertime. The possible offset times are 30,60,90,120. The default value is 60.
Restrictions administrator-level users can issue this command.
Example usage:
To configure daylight savings time on the Switch:
DGS-3400:4#config dst repeating s_week 2 s_day tue s_mth 4 s_time 15:00 e_week 2 e_day wed e_mth 10 e_time 15:30 offset 30
Command: config dst repeating s_week 2 s_day tue s_mth 4 s_time 15:00 e_week 2 e_day wed e_mth 10 e_time 15:30 offset 30
Success.
DGS-3400:4#
show time
Purpose
Syntax
Description
Used to display the current time settings and status. show time
This will display system time and date configuration as well as display current system time.
Parameters None.
Restrictions None.
Example usage:
To show the time cuurently set on the Switch’s System clock:
DGS-3400:4#show time
Command: show time
Current Time Source : System Clock
Boot Time : 4 May 2006 10:21:22
Current Time : 4 May 2006 15:01:32
Time Zone : GMT +02:30
Daylight Saving Time : Repeating
Offset in Minutes : 30
Repeating From : Apr 2nd Tue 15:00
To : Oct 2nd Wed 15:30
Annual From : 29 Apr 00:00
To : 12 Oct 00:00
DGS-3400:4#
176
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
25
ARP C
OMMANDS
The ARP commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create arpentry <ipaddr> <macaddr> create arpentry ipv6 <ipv6addr> <macaddr> delete arpentry [<ipaddr> | all] delete arpentry ipv6 [<ipv6addr> | all] show arpentry {ipif <ipif_name 12> | ipaddress <ipaddr> | static} show arpentry ipv6 {<ipv6addr>} config arp_aging time <value 0-65535> clear arptable
Each command is listed, in detail, in the following sections.
create arpentry
Purpose
Syntax
Description
Parameters
Restrictions
Used to make a static entry into the ARP table. create arpentry <ipaddr> <macaddr>
This command is used to enter an IP address and the corresponding MAC address into the Switch’s ARP table.
<ipaddr> − The IP address of the end node or station.
<macaddr> − The MAC address corresponding to the IP address above.
Only administrator-level users can issue this command. The Switch supports up to 255 static ARP entries.
Example Usage:
To create a static ARP entry for the IP address 10.48.74.121 and MAC address 00:50:BA:00:07:36:
DGS-3400:4#create arpentry 10.48.74.121 00-50-BA-00-07-36
Command: create arpentry 10.48.74.121 00-50-BA-00-07-36
Success.
DGS-3400:4#
create arpentry ipv6
Purpose
Syntax
Description
Parameters
Used to make a static IPv6 entry into the ARP table. create arpentry ipv6 <ipv6addr> <macaddr>
This command is used to enter an IPv6 address and the corresponding MAC address into the Switch’s ARP table.
<ipv6addr> − The IPv6 address of the end node or station.
<macaddr> − The MAC address corresponding to the IP address above.
177
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create arpentry ipv6
Restrictions Only administrator-level users can issue this command. The Switch supports up to 255 static ARP entries.
Example Usage:
To create a static ARP entry for the IPv6 address 10.48.74.121.125 and MAC address 00:50:BA:00:07:36:
DGS-3400:4#create arpentry ipv6 2D30::AC21 00-50-BA-00-07-36
Command: create arpentry ipv6 2D30::AC21 00-50-BA-00-07-36
Success.
DGS-3400:4#
delete arpentry
Purpose
Syntax
Description
Parameters
Used to delete a static entry into the ARP table. delete arpentry {[<ipaddr> | all]}
This command is used to delete a static ARP entry, made using the create arpentry command above, by specifying either the IP address of the entry or all. Specifying all clears the Switch’s ARP table.
<ipaddr> − The IP address of the end node or station. all − Deletes all ARP entries.
Example Usage:
To delete an entry of IP address 10.48.74.121.125 from the ARP table:
DGS-3400:4#delete arpentry 10.48.74.121
Command: delete arpentry 10.48.74.121
Success.
DGS-3400:4#
delete arpentry ipv6
Purpose
Syntax
Description
Parameters
Used to delete a IPv6 entry from the ARP table. delete arpentry ipv6 [<ipaddr> | all]
This command is used to delete a static ARP entry, made using the create ipv6 arpentry command above, by specifying either the IP address of the entry or all. Specifying all clears the Switch’s ARP table.
<ipv6addr> − The IPv6 address of the end node or station. all − Deletes all ARP entries.
Example Usage:
To delete IPv6 address entry 10.48.74.121.125 from the ARP table:
178
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#delete arpentry ipv6 2D30::AC21
Command: delete arpentry ipv6 2D30::AC21
Success.
DGS-3400:4#
config arp_aging time
Purpose
Syntax
Description
Parameters
Used to configure the age-out timer for ARP table entries on the
Switch. config arp_aging time <value 0-65535>
This command sets the maximum amount of time, in minutes, that an ARP entry can remain in the Switch’s ARP table, without being accessed, before it is dropped from the table. time <value 0-65535> − The ARP age-out time, in minutes. The value may be set in the range of 0-65535 minutes with a default setting of 20 minutes.
Example Usage:
To configure ARP aging time:
DGS-3400:4#config arp_aging time 30
Command: config arp_aging time 30
Success.
DGS-3400:4#
show arpentry
Purpose
Syntax
Description
Parameters
Used to display the ARP table. show arpentry {ipif <ipif_name 12> | ipaddress <ipaddr> | static}
This command is used to display the current contents of the Switch’s ARP table. ipif <ipif_name 12> − The name of the IP interface the end node or station for which the ARP table entry was made, resides on. ipaddress <ipaddr> − The network address corresponding to the IP interface name above. static − Displays the static entries to the ARP table.
Restrictions None.
Example usage:
To display the ARP table :
179
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show arpentry
Command: show arpentry
ARP Aging Time : 30
Interface IP Address MAC Address Type
------------- --------------- ----------------- ---------------
System 10.0.0.0 FF-FF-FF-FF-FF-FF Local/Broadcast
System 10.1.1.169 00-50-BA-70-E4-4E Dynamic
System 10.1.1.254 00-01-30-FA-5F-00 Dynamic
System 10.9.68.1 00-A0-C9-A4-22-5B Dynamic
System 10.9.68.4 00-80-C8-2E-C7-45 Dynamic
System 10.10.27.51 00-80-C8-48-DF-AB Dynamic
System 10.11.22.145 00-80-C8-93-05-6B Dynamic
System 10.11.94.10 00-10-83-F9-37-6E Dynamic
System 10.14.82.24 00-50-BA-90-37-10 Dynamic
System 10.15.1.60 00-80-C8-17-42-55 Dynamic
System 10.17.42.153 00-80-C8-4D-4E-0A Dynamic
System 10.19.72.100 00-50-BA-38-7D-5E Dynamic
System 10.21.32.203 00-80-C8-40-C1-06 Dynamic
System 10.40.44.60 00-50-BA-6B-2A-1E Dynamic
System 10.42.73.221 00-01-02-03-04-00 Dynamic
System 10.44.67.1 00-50-BA-DA-02-51 Dynamic
System 10.47.65.25 00-50-BA-DA-03-2B Dynamic
System 10.50.8.7 00-E0-18-45-C7-28 Dynamic
System 10.90.90.90 00-01-02-03-04-00 Local
System 10.255.255.255 FF-FF-FF-FF-FF-FF Local/Broadcast
Total Entries = 20
DGS-3400:4#
show arpentry ipv6
Purpose
Syntax
Used to display the ARP table. show arpentry ipv6 {<ipv6addr>}
Description
Parameters
This command is used to display the current contents of the Switch’s ARP table.
<ipv6addr> − The network IPv6 address corresponding to the IP interface name above.
Restrictions None.
Example usage:
To display the ARP table :
DGS-3400:4#show arpentry ipv6
Command: show arpentry ipv6
Interface IPV6 Address MAC Address Type
------------- --------------- ----------------- ---------------
System 2D30::AC21 FF-FF-FF-FF-FF-FF Local/Broadcast
System 2B30::AC20 00-50-BA-70-E4-4E Dynamic
Total Entries = 2
DGS-3400:4#
180
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
clear arptable
Purpose
Syntax
Used to remove all dynamic ARP table entries. clear arptable
Description This command is used to remove dynamic ARP table entries from the Switch’s ARP table. Static ARP table entries are not affected.
Parameters None.
Example Usage:
To remove dynamic entries in the ARP table:
DGS-3400:4#clear arptable
Command: clear arptable
Success.
DGS-3400:4#
181
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
26
R
OUTING
T
ABLE
C
OMMANDS
The routing table commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create iproute <network_address> <ipaddr> {<metric 1-65535>} {[primary | backup]} create iproute default <ipaddr> {<metric 1-65535>} delete iproute default <ipaddr> delete iproute show iproute create iproute ipv6
<network_address> <ipaddr> {[primary | backup]}
{<network_address>} {[static | rip | ospf]}
<ipv6networkaddr> < ipv6addr > {<metric 1-65535>} delete iproute ipv6 show iproute ipv6 create iproute ipv6 default delete iproute ipv6 default
{<ipv6networkaddr> <ipv6addr> | all}
{<ipv6networkaddr>}
<ipv6addr> {<metric 1-65535>}
Each command is listed, in detail, in the following sections.
create iproute
Purpose
Syntax
Description
Parameters
Used to create IP route entries to the Switch’s IP routing table. create iproute <network_address> <ipaddr> {<metric 1-65535>}
{[primary | backup]}
This command is used to create a primary and backup IP route entry to the Switch’s IP routing table.
<network_address> − IP address and netmask of the IP interface that is the destination of the route. The address and mask information can be specified using the traditional format (for example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<ipaddr> − The gateway IP address for the next hop router.
<metric 1-65535> − Allows the entry of a routing protocol metric entry, representing the number of routers between the Switch and the IP address above. The default setting is 1.
[primary | backup] - The user may choose between Primary and
Backup. If the Primary Static/Default Route fails, the Backup Route will support the entry. Please take note that the Primary and Backup entries cannot have the same Gateway.
Example Usage:
To add a single static address 10.48.74.121, mask 255.0.0.0 and gateway 10.1.1.254 to the routing table:
182
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create iproute 10.48.74.121/255.0.0.0 10.1.1.254 1
Command: create iproute 10.48.74.121/8 10.1.1.254 1
Success.
DGS-3400:4#
create iproute default
Purpose
Syntax
Description
Parameters
Used to create IP route entries to the Switch’s IP routing table. create iproute default <ipaddr> {<metric>}
This command is used to create a default static IP route entry to the
Switch’s IP routing table.
<ipaddr> − The gateway IP address for the next hop router.
<metric> − Allows the entry of a routing protocol metric entry representing the number of routers between the Switch and the IP address above. The default setting is 1.
Example Usage:
To add the default static address 10.48.74.121, with a metric setting of 1, to the routing table:
DGS-3400:4#create iproute default 10.48.74.121 1
Command: create iproute default 10.48.74.121 1
Success.
DGS-3400:4#
delete iproute
Purpose
Syntax
Description
Parameters
Used to delete an IP route entry from the Switch’s IP routing table. delete iproute <network_address> <ipaddr> [primary | backup]
This command will delete an existing entry from the Switch’s IP routing table.
<network_address> − IP address and netmask of the IP interface that is the destination of the route. The address and mask information can be specified using the traditional format (for example,
10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
<ipaddr> − The gateway IP address for the next hop router.
[ primary | backup] − The user may choose between Primary and
Backup. If the Primary Static/Default Route fails, the Backup Route will support the entry. Please take note that the Primary and Backup entries cannot have the same Gateway.
Example Usage:
To delete a backup static address 10.48.75.121, mask 255.0.0.0 and gateway (ipaddr) entry of 10.1.1.254 from the routing table:
183
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#delete iproute 10.48.74.121/8 10.1.1.254
Command: delete iproute 10.48.74.121/8 10.1.1.254
Success.
DGS-3400:4#
delete iproute default
Purpose Used to delete a default IP route entry from the Switch’s IP routing table. delete iproute default Syntax
Description This command will delete an existing default entry from the Switch’s
IP routing table.
Parameters None.
Example usage:
To delete the default IP route:
DGS-3400:4#delete iproute default
Command: delete iproute default
Success.
DGS-3400:4#
show iproute
Purpose
Syntax
Used to display the Switch’s current IP routing table. show iproute {<network_address>}
Description
Parameters
This command will display the Switch’s current IP routing table.
<network_address> − IP address and netmask of the IP interface that is the destination of the route. The address and mask information can be specified using the traditional format (for example,
10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8).
Restrictions None.
Example Usage:
To display the contents of the IP routing table:
DGS-3400:4#show iproute
Command: show iproute
Routing Table
IP Address/Netmask Gateway Interface Hops Protocol
------------------ -------------- ------------ ------- --------
10.0.0.0/8 0.0.0.0 System 1 Local
Total Entries : 1
DGS-3400:4#
184
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create iproute ipv6
Purpose
Syntax
Description
Parameters
Used to create Ipv6 route entries to the Switch’s IP routing table. create iproute ipv6 <ipv6networkaddr> < ipv6addr > {<metric 1-65535>}
This command is used to create a primary and backup IP route entry to the
Switch’s IP routing table.
<ipv6networkaddr> − IPV6 address and netmask of the IP interface that is the destination of the route. Specify the address and mask information using the format as ipv6address / prefix_length (ipv6address is hexadecimal number, prefix length is decimal number, for example 1234::5D7F/32).
<ipv6addr> − IPv6 address for the next hop router.
<metric 1-65535> − Allows the entry of a routing protocol metric entry, representing the number of routers between the Switch and the IP address above. The default setting is 1.
Example Usage:
To add a single static IPv6 entry in IPv6 format:
DGS-3400:4# create iproute 1234::5D7F/32 2D30::AC21
Command: create iproute 1234::5D7F/32 2D30::AC21
Success.
DGS-3400:4#
delete iproute ipv6
Purpose
Syntax
Description
Parameters
Used to delete an static IPv6 route entry from the Switch’s IP routing table. delete iproute ipv6 {<ipv6networkaddr> <ipv6addr> | all}
This command will delete an existing static IPv6 entry from the Switch’s
IP routing table.
<ipv6networkaddr> − IPV6 address and netmask of the IP interface that is the destination of the route. Specify the address and mask information using the format as ipv6address / prefix_length (ipv6address is hexadecimal number, prefix length is decimal number, for example
1234::5D7F/32).
<ipv6addr> − IPv6 address for the next hop router. all − This will delete all IPv6 static entries for the destination and next hop.
Example Usage:
To delete a static IPv6 entry from the routing table:
185
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# delete iproute 1234::5D7F/32 2D30::AC21
Command: delete iproute 1234::5D7F/32 2D30::AC21
Success.
DGS-3400:4#
show iproute ipv6
Purpose Used to display the Switch’s current static IPv6 routing table or a specified IPv6 address. show iproute ipv6 {<ipv6networkaddr>} Syntax
Description
Parameters
This command will display the Switch’s current static IPv6 routing table or a specific IPv6 entry.
<ipv6networkaddr> − IPV6 address and netmask of the IP interface that is the destination of the route. Specify the address and mask information using the format as ipv6address / prefix_length
(ipv6address is hexadecimal number, prefix length is decimal number, for example 1234::5D7F/32).
Restrictions None.
Example Usage:
To display the static IPv6 entries in the routing table:
DGS-3400:4# show iproute ipv6
Command: show iproute ipv6
Routing Table
IPV6 Address/Netmask Gateway Cost Protocol
-------------------------------- ------------------------ -------- --------
1234::/32 2D30::AC21 1 Static
Total Entries: 1
DGS-3400:4#
create iproute ipv6 default
Purpose
Syntax
Description
Parameters
Used to create IP route entries to the Switch’s IP routing table. create iproute ipv6 default <ipv6addr> {<metric 1-65535>}
This command is used to create a default static IP route entry to the Switch’s
IP routing table.
<ipv6addr> − The gateway IPv6 address for the next hop router.
<metric 1-65535> − Allows the entry of a routing protocol metric entry representing the number of routers between the Switch and the IP address above. The default setting is 1.
Example Usage:
To add the default static address 1234::5D7F/32, with a metric setting of 1, to the routing table:
186
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#create iproute default 1234::5D7F/32 2D30::AC21 metric 1
Command: create iproute default 1234::5D7F/32 2D30::AC21 metric 1
Success.
DGS-3400:4#
delete iproute ipv6 default
Purpose
Syntax
Description
Used to delete a default IPv6 route entry from the Switch’s IP routing table. delete iproute ipv6 default
This command will delete an existing default entry from the Switch’s
IP routing table.
Parameters None.
Example usage:
To delete the default IPv6 route:
DGS-3400:4#delete iproute default
Command: delete iproute default
Success.
DGS-3400:4#
187
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
27
MAC N
OTIFICATION
C
OMMANDS
The MAC notification commands in the Command Line Interface (CLI) are listed, in the following table, along with their appropriate parameters.
Command Parameters enable mac_notification disable mac_notification config mac_notification config mac_notification ports show mac_notification show mac_notification ports
{interval <int 1-2147483647> | historysize <int 1-500>
[<portlist> | all] [enable | disable]
<portlist>
Each command is listed, in detail, in the following sections.
enable mac_notification
Purpose Used to enable global MAC address table notification on the
Switch. enable mac_notification Syntax
Description This command is used to enable MAC address notification without changing configuration.
Parameters None.
Restrictions Only
Example Usage:
To enable MAC notification without changing basic configuration:
DGS-3400:4#enable mac_notification
Command: enable mac_notification
Success.
DGS-3400:4#
disable mac_notification
Purpose
Syntax
Used to disable global MAC address table notification on the Switch. disable mac_notification
Description This command is used to disable MAC address notification without changing configuration.
Parameters None.
Example Usage:
To disable MAC notification without changing basic configuration:
188
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#disable mac_notification
Command: disable mac_notification
Success.
DGS-3400:4#
config mac_notification
Purpose
Syntax
Description
Parameters
Used to configure MAC address notification. config mac_notification {interval <int 1-2147483647> | historysize
<int 1-500>
MAC address notificiation is used to monitor MAC addresses learned and entered into the FDB. interval <sec 1-2147483647> - The time in seconds between notifications.
The user may choose an interval between 1 and 2,147,483,647 seconds. historysize <1 - 500> - The maximum number of entries listed in the history log used for notification.
Example usage:
To configure the Switch’s MAC address table notification global settings:
DGS-3400:4#config mac_notification interval 1 historysize 500
Command: config mac_notification interval 1 historysize 500
Success.
DGS-3400:4#
config mac_notification ports
Purpose
Syntax
Description
Parameters
Used to configure MAC address notification status settings. config mac_notification ports [<portlist | all] [enable | disable]
MAC address notificiation is used to monitor MAC addresses learned and entered into the FDB.
<portlist> - Specify a port or range of ports to be configured. all – Entering this command will set all ports on the system.
[enable | disable] – These commands will enable or disable MAC address table notification on the Switch.
Example usage:
To enable port 7 for MAC address table notification:
DGS-3400:4#config mac_notification ports 7 enable
Command: config mac_notification ports 7 enable
Success.
DGS-3400:4#
189
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show mac_notification
Purpose Used to display the Switch’s MAC address table notification global settings
Syntax
Description show mac_notification
This command is used to display the Switch’s MAC address table notification global settings.
Parameters None.
Restrictions None.
Example usage:
To view the Switch’s MAC address table notification global settings:
DGS-3400:4#show mac_notification
Command: show mac_notification
Global MAC Notification Settings
State : Enabled
Interval : 1
History Size : 1
DGS-3400:4#
show mac_notification ports
Purpose
Syntax
Description
Parameters
Used to display the Switch’s MAC address table notification status settings show mac_notification ports <portlist>
This command is used to display the Switch’s MAC address table notification status settings.
<portlist> - Specify a port or group of ports to be viewed.
Entering this command without the parameter will display the MAC notification table for all ports.
Restrictions None
Example usage:
To display all port’s MAC address table notification status settings:
190
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show mac_notification ports
Command: show mac_notification ports
Port # MAC Address Table Notification State
------ -----------------------------------------------------
1 Disabled
2 Disabled
3 Disabled
4 Disabled
5 Disabled
6 Disabled
7 Disabled
8 Disabled
9 Disabled
10 Disabled
11 Disabled
12 Disabled
13 Disabled
14 Disabled
15 Disabled
16 Disabled
17 Disabled
18 Disabled
19 Disabled
20 Disabled
CTRL+C ESC q Quit SPACE n Next Page p Previous Page r Refresh
191
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
30
A
CCESS
A
UTHENTICATION
C
ONTROL
C
OMMANDS
The TACACS / XTACACS / TACACS+ / RADIUS commands let you secure access to the Switch using the TACACS /
XTACACS / TACACS+ / RADIUS protocols. When a user logs in to the Switch or tries to access the administrator level privilege, he or she is prompted for a password. If TACACS / XTACACS / TACACS+ / RADIUS authentication is enabled on the
Switch, it will contact a TACACS / XTACACS / TACACS+ / RADIUS server to verify the user. If the user is verified, he or she is granted access to the Switch.
There are currently three versions of the TACACS security protocol, each a separate entity. The Switch’s software supports the following versions of TACACS:
• TACACS (Terminal Access Controller Access Control System) —Provides password checking and authentication, and notification of user actions for security purposes utilizing via one or more centralized TACACS servers, utilizing the UDP protocol for packet transmission.
• Extended TACACS (XTACACS) — An extension of the TACACS protocol with the ability to provide more types of authentication requests and more types of response codes than TACACS. This protocol also uses UDP to transmit packets.
• TACACS+ (Terminal Access Controller Access Control System plus) — Provides detailed access control for authentication for network devices. TACACS+ is facilitated through Authentication commands via one or more centralized servers. The TACACS+ protocol encrypts all traffic between the Switch and the TACACS+ daemon, using the TCP protocol to ensure reliable delivery.
The Switch also supports the RADIUS protocol for authentication using the Access Authentication Control commands. RADIUS or Remote Authentication Dial In User Server also uses a remote server for authentication and can be responsible for receiving user connection requests, authenticating the user and returning all configuration information necessary for the client to deliver service through the user. RADIUS may be facilitated on this Switch using the commands listed in this section.
In order for the TACACS / XTACACS / TACACS+ / RADIUS security function to work properly, a TACACS / XTACACS /
TACACS+ / RADIUS server must be configured on a device other than the Switch, called a server host and it must include usernames and passwords for authentication. When the user is prompted by the Switch to enter usernames and passwords for authentication, the Switch contacts the TACACS / XTACACS / TACACS+ / RADIUS server to verify, and the server will respond with one of three messages:
A) The server verifies the username and password, and the user is granted normal user privileges on the Switch.
B) The server will not accept the username and password and the user is denied access to the Switch.
C) The server doesn’t respond to the verification query. At this point, the Switch receives the timeout from the server and then moves to the next method of verification configured in the method list.
The Switch has four built-in server groups , one for each of the TACACS, XTACACS, TACACS+ and RADIUS protocols. These built-in server groups are used to authenticate users trying to access the Switch. The users will set server hosts in a preferable order in the built-in server group and when a user tries to gain access to the Switch, the Switch will ask the first server host for authentication. If no authentication is made, the second server host in the list will be queried, and so on. The built-in server group can only have hosts that are running the specified protocol. For example, the TACACS server group can only have TACACS server hosts .
The administrator for the Switch may set up 5 different authentication techniques per user-defined method list (TACACS /
XTACACS / TACACS+ / RADIUS / local / none) for authentication. These techniques will be listed in an order preferable, and defined by the user for normal user authentication on the Switch, and may contain up to eight authentication techniques. When a user attempts to access the Switch, the Switch will select the first technique listed for authentication. If the first technique goes through its server hosts and no authentication is returned, the Switch will then go to the next technique listed in the server group for authentication, until the authentication has been verified or denied, or the list is exhausted.
Please note that user granted access to the Switch will be granted normal user privileges on the Switch. To gain acess to admin level privileges, the user must enter the enable admin command and then enter a password, which was previously configured by the administrator of the Switch.
NOTE: TACACS, XTACACS and TACACS+ are separate entities and are not compatible. The Switch and the server must be configured exactly the same, using the same protocol. (For example, if the Switch is set up for TACACS authentication, so must be the host server.)
The Access Authentication Control commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
192
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Command Parameters enable authen_policy disable authen_policy show authen_policy create authen_login method_list_name config authen_login
<string 15>
[default | method_list_name <string 15>] method {tacacs | xtacacs | tacacs+ | radius
| server_group <string 15> | local | none}
<string 15> delete authen_login method_list_name show authen_login create authen_enable method_list_name config authen_enable
{default | method_list_name <string 15> | all}
<string 15>
[default | method_list_name <string 15>] method {tacacs | xtacacs | tacacs+ | radius
| server_group <string 15> | local_enable | none}
<string 15> delete authen_enable method_list_name show authen_enable [default | method_list_name <string 15> | all] config authen application {console | telnet | ssh | http | all] [login | enable] [default | method_list_name <string
15>] show authen application create authen server_group
<string 15> config authen server_group delete authen server_group show authen server_group create authen server_host config authen server_host delete authen server_host show authen server_host config authen parameter response_timeout
[tacacs | xtacacs | tacacs+ | radius | <string 15>] [add | delete] server_host <ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius]
<string 15>
<string 15>
<ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius] {port <int 1-65535> | key
[<key_string 254> | none] | timeout <int 1-255> | retransmit <int 1-255>}
<ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius] {port <int 1-65535> | key
[<key_string 254> | none] | timeout <int 1-255> | retransmit <int 1-255>}
<ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius]
<int 0-255> config authen parameter attempt show authen parameter
<int 1-255> enable admin config admin local_enable
Each command is listed, in detail, in the following sections.
193
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable authen_policy
Purpose
Syntax
Used to enable system access authentication policy. enable authen_policy
Description This command will enable an administrator-defined authentication policy for users trying to access the Switch. When enabled, the device will check the method list and choose a technique for user authentication upon login.
Parameters None.
Example usage:
To enable the system access authentication policy:
DGS-3400:4#enable authen_policy
Command: enable authen_policy
Success.
DGS-3400:4#
disable authen_policy
Purpose
Syntax
Used to disable system access authentication policy. disable authen_policy
Description This command will disable the administrator-defined authentication policy for users trying to access the Switch. When disabled, the Switch will access the local user account database for username and password verification. In addition, the Switch will now accept the local enable password as the authentication for normal users attempting to access administrator level privileges.
Parameters None.
Example usage:
To disable the system access authentication policy:
DGS-3400:4#disable authen_policy
Command: disable authen_policy
Success.
DGS-3400:4#
show authen_policy
Purpose Used to display the system access authentication policy status on the Switch. show authen_policy Syntax
Description This command will show the current status of the access authentication policy on the Switch.
Parameters None.
Restrictions None.
194
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To display the system access authentication policy:
DGS-3400:4#show authen_policy
Command: show authen_policy
Authentication Policy: Enabled
DGS-3400:4#
create authen_login method_list_name
Purpose
Syntax
Description
Parameters
Used to create a user defined method list of authentication methods for users logging on to the Switch. create authen_login method_list_name <string 15>
This command is used to create a list for authentication techniques for user login. The Switch can support up to eight method lists, but one is reserved as a default and cannot be deleted. Multiple method lists must be created and configured separately.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the given method list .
Example usage:
To create the method list “Trinity.”:
DGS-3400:4#create authen_login method_list_name Trinity
Command: create authen_login method_list_name Trinity
Success.
DGS-3400:4#
config authen_login
Purpose
Syntax
Description
Used to configure a user-defined or default method list of authentication methods for user login. config authen_login [default | method_list_name <string 15>] method {tacacs | xtacacs | tacacs+ | radius | server_group <string 15> | local | none}
This command will configure a user-defined or default method list of authentication methods for users logging on to the Switch. The sequence of methods implemented in this command will affect the authentication result. For example, if a user enters a sequence of methods like tacacs – xtacacs – local, the Switch will send an authentication request to the first tacacs host in the server group. If no response comes from the server host, the Switch will send an authentication request to the second tacacs host in the server group and so on, until the list is exhausted. At that point, the Switch will restart the same sequence with the following protocol listed, xtacacs . If no authentication takes place using the xtacacs list, the local account database set in the Switch is used to authenticate the user. When the local method is used, the privilege level will be dependant on the local account privilege configured on the Switch.
Successful login using any of these methods will give the user a “user” priviledge only. If the user wishes to upgrade his or her status to the administrator level, the user must implement the enable admin command, followed by a previously configured password.
( See the enable admin part of this section for more detailed information, concerning the enable admin command.)
195
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config authen_login
Parameters
Parameters default – The default method list for access authentication, as defined by the user. The user may choose one or a combination of up to four(4) of the following authentication methods: tacacs – Adding this parameter will require the user to be authenticated using the
TACACS protocol from the remote TACACS server hosts of the TACACS server group list. xtacacs – Adding this parameter will require the user to be authenticated using the
XTACACS protocol from the remote XTACACS server hosts of the XTACACS server group list. tacacs+ – Adding this parameter will require the user to be authenticated using the
TACACS+ protocol from the remote TACACS+ server hosts of the TACACS+ server group list. radius - Adding this parameter will require the user to be authenticated using the
RADIUS protocol from the remote RADIUS server hosts of the RADIUS server group list. server_group <string 15> - Adding this parameter will require the user to be authenticated using a user-defined server group previously configured on the
Switch. local Adding this parameter will require the user to be authenticated using the local user account database on the Switch. none – Adding this parameter will require no authentication to access the sSwitch. method_list_name – Enter a previously implemented method list name defined by the user.
The user may add one, or a combination of up to four (4) of the following authentication methods to this method list: tacacs – Adding this parameter will require the user to be authenticated using the
TACACS protocol from a remote TACACS server. xtacacs – Adding this parameter will require the user to be authenticated using the
XTACACS protocol from a remote XTACACS server. tacacs+ – Adding this parameter will require the user to be authenticated using the
TACACS+ protocol from a remote TACACS+ server. radius - Adding this parameter will require the user to be authenticated using the
RADIUS protocol from a remote RADIUS server. server_group <string 15> authenticated using a user-defined server group previously configured on the
Switc h.
- Adding this parameter will require the user to be local - Adding this parameter will require the user to be authenticated using the local user account database on the Switch. none – Adding this parameter will require no authentication to access the Switch.
NOTE: Entering none or local as an authentication protocol will override any other authentication that follows it on a method list or on the default method list.
Example usage:
To configure the user defined method list “Trinity” with authentication methods tacacs, xtacacs and local, in that order.
DGS-3400:4#config authen_login method_list_name Trinity method tacacs xtacacs local
Command: config authen_login method_list_name Trinity method tacacs xtacacs local
Success.
DGS-3400:4#
Example usage:
To configure the default method list with authentication methods xtacacs, tacacs+ and local, in that order:
196
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config authen_login default method xtacacs tacacs+ local
Command: config authen_login default method xtacacs tacacs+ local
Success.
DGS-3400:4#
delete authen_login method_list_name
Purpose
Syntax
Description
Parameters
Used to delete a previously configured user defined method list of authentication methods for users logging on to the Switch. delete authen_login method_list_name <string 15>
This command is used to delete a list for authentication methods for user login.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the given method list the user wishes to delete.
Example usage:
To delete the method list name “Trinity”:
DGS-3400:4#delete authen_login method_list_name Trinity
Command: delete authen_login method_list_name Trinity
Success.
DGS-3400:4#
show authen_login
Purpose Used to display a previously configured user defined method list of authentication methods for users logging on to the Switch. show authen_login [default | method_list_name <string 15> | all] Syntax
Description
Parameters
This command is used to show a list of authentication methods for user login. default – Entering this parameter will display the default method list for users logging on to the Switch. method_list_name <string 15> - Enter an alphanumeric string of up to 15 characters to define the given method list the user wishes to view. all – Entering this parameter will display all the authentication login methods currewntly configured on the Switch.
The window will display the following parameters:
Method List Name – The name of a previously configured method list name.
Priority – Defines which order the method list protocols will be queried for authentication when a user attempts to log on to the Switch. Priority ranges from 1(highest) to 4 (lowest).
Method Name – Defines which security protocols are implemeted, per method list name.
Comment – Defines the type of Method. User-defined Group refers to server group defined by the user. Built-in Group refers to the TACACS, XTACACS,
TACACS+ and RADIUS security protocols which are permanently set in the
Switch.
Keyword refers to authentication using a technique INSTEAD of
TACACS / XTACACS / TACACS+ / RADIUS which are local (authentication through the user account on the Switch) and none (no authentication necessary to access any function on the Switch).
Restrictions None.
197
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To view the authentication login method list named Trinity:
DGS-3400:4#show authen_login method_list_name Trinity
Command: show authen_login method_list_name Trinity
Method List Name Priority Method Name Comment
---------------- -------- --------------- ---------
Trinity 1 tacacs+ Built-in Group
2 tacacs Built-in Group
3 Darren User-defined Group
4 local Keyword
DGS-3400:4#
create authen_enable method_list_name
Purpose
Syntax
Description
Parameters
Used to create a user-defined method list of authentication methods for promoting normal user level privileges to Administrator level privileges on the Switch. create authen_enable method_list_name <string 15>
This command is used to promote users with normal level privileges to Administrator level privileges using authentication methods on the Switch. Once a user acquires normal user level privileges on the Switch, he or she must be authenticated by a method on the
Switch to gain administrator privileges on the Switch, which is defined by the Administrator. A maximum of eight (8) enable method lists can be implemented on the Switch.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the given enable method list the user wishes to create.
Example usage:
To create a user-defined method list, named “Permit” for promoting user privileges to Adminstrator privileges:
DGS-3400:4#create authen_enable method_list_name Permit
Command: show authen_login method_list_name Permit
Success.
DGS-3400:4#
config authen_enable
Purpose
Syntax
Description
Used to configure a user-defined method list of authentication methods for promoting normal user level privileges to Administrator level privileges on the Switch. config authen_enable [default | method_list_name <string 15>] method {tacacs | xtacacs | tacacs+ | radius | server_group <string 15> | local_enable | none}
This command is used to promote users with normal level privileges to Administrator level privileges using authentication methods on the Switch. Once a user acquires normal user level privileges on the Switch, he or she must be authenticated by a method on the Switch to gain administrator privileges on the Switch, which is defined by the Administrator. A maximum of eight (8) enable method lists can be implemented simultaneously on the Switch.
The sequence of methods implemented in this command will affect the authentication result.
For example, if a user enters a sequence of methods like tacacs – xtacacs – local_enable, the Switch will send an authentication request to the first TACACS host in the server group.
198
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Parameters
Parameters
config authen_enable
If no verification is found, the Switch will send an authentication request to the second
TACACS host in the server group and so on, until the list is exhausted. At that point, the
Switch will restart the same sequence with the following protocol listed, xtacacs . If no authentication takes place using the xtacacs list, the local_enable password set in the Switch is used to authenticate the user.
Successful authentication using any of these methods will give the user an “Admin” level privilege. default – The default method list for adminstration rights authentication, as defined by the user. The user may choose one or a combination of up to four (4) of the following authentication methods: tacacs – Adding this parameter will require the user to be authenticated using the
TACACS protocol from the remote TACACS server hosts of the TACACS server group list. xtacacs – Adding this parameter will require the user to be authenticated using the
XTACACS protocol from the remote XTACACS server hosts of the XTACACS server group list. tacacs+ – Adding this parameter will require the user to be authenticated using the
TACACS+ protocol from the remote TACACS+ server hosts of the TACACS+ server group list. radius – Adding this parameter will require the user to be authenticated using the
RADIUS protocol from the remote RADIUS server hosts of the RADIUS server group list. server_group <string 15> - Adding this parameter will require the user to be authenticated using a user-defined server group previously configured on the
Switch. local_enable - Adding this parameter will require the user to be authenticated using the local user account database on the Switch. none – Adding this parameter will require no authentication to access the Switch. method_list_name – Enter a previously implemented method list name defined by the user
( create authen_enable ). The user may add one, or a combination of up to four (4) of the following authentication methods to this method list: tacacs – Adding this parameter will require the user to be authenticated using the
TACACS protocol from a remote TACACS server. xtacacs – Adding this parameter will require the user to be authenticated using the
XTACACS protocol from a remote XTACACS server. tacacs+ – Adding this parameter will require the user to be authenticated using the
TACACS+ protocol from a remote TACACS+ server. radius - Adding this parameter will require the user to be authenticated using the
RADIUS protocol from a remote RADIUS server. server_group <string 15> - Adding this parameter will require the user to be authenticated using a user-defined server group previously configured on the
Switch. local_enable - Adding this parameter will require the user to be authenticated using the local user account database on the Switch. The local enable password of the device can be configured using the “ config admin local_password ” command. none – Adding this parameter will require no authentication to access the administration level privileges on the Switch.
Example usage:
To configure the user defined method list “Permit” with authentication methods tacacs, xtacacs and local, in that order.
199
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config authen_enable method_list_name Trinity method tacacs xtacacs local
Command: config authen_enable method_list_name Trinity method tacacs xtacacs local
Success.
DGS-3400:4#
Example usage:
To configure the default method list with authentication methods xtacacs, tacacs+ and local, in that order:
DGS-3400:4#config authen_enable default method xtacacs tacacs+ local
Command: config authen_enable default method xtacacs tacacs+ local
Success.
DGS-3400:4#
delete authen_enable method_list_name
Purpose
Syntax
Description
Parameters
Used to delete a user-defined method list of authentication methods for promoting normal user level privileges to Administrator level privileges on the Switch. delete authen_enable method_list_name <string 15>
This command is used to delete a user-defined method list of authentication methods for promoting user level privileges to
Adminstrator level privileges.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the given enable method list the user wishes to delete.
Example usage:
To delete the user-defined method list “Permit”
DGS-3400:4#delete authen_enable method_list_name Permit
Command: delete authen_enable method_list_name Permit
Success.
DGS-3400:4#
show authen_enable
Purpose
Syntax
Description
Parameters
Used to display the method list of authentication methods for promoting normal user level privileges to Administrator level privileges on the
Switch. show authen_enable [default | method_list_name <string 15> | all]
This command is used to delete a user-defined method list of authentication methods for promoting user level privileges to
Adminstrator level privileges. default – Entering this parameter will display the default method list for users attempting to gain access to Administrator level privileges on the
Switch. method_list_name <string 15> - Enter an alphanumeric string of up to
15 characters to define the given method list the user wishes to view.
200
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
show authen_enable
all – Entering this parameter will display all the authentication login methods currently configured on the Switch.
The window will display the following parameters:
Method List Name – The name of a previously configured method list name.
Priority – Defines which order the method list protocols will be queried for authentication when a user attempts to log on to the Switch. Priority ranges from 1(highest) to 4 (lowest).
Method Name – Defines which security protocols are implemeted, per method list name.
Comment – Defines the type of Method. User-defined Group refers to server groups defined by the user. Built-in Group refers to the TACACS, XTACACS, TACACS+ and RADIUS security protocols which are permanently set in the Switch.
Keyword refers to authentication using a technique INSTEAD of TACACS/XTACACS/TACACS+/RADIUS which are local
(authentication through the local_enable password on the
Switch) and none (no authentication necessary to access any function on the Switch).
Restrictions None
Example usage:
To display all method lists for promoting user level privileges to administrator level privileges.
DGS-3400:4#show authen_enable all
Command: show authen_enable all
Method List Name Priority Method Name Comment
---------------- -------- --------------- ------------------
Permit 1 tacacs+ Built-in Group
2 tacacs Built-in Group
3 Darren User-defined Group
4 local Keyword default 1 tacacs+ Built-in Group
2 local Keyword
Total Entries : 2
DGS-3400:4#
config authen application
Purpose
Syntax
Description
Parameters
Used to configure various applications on the Switch for authentication using a previously configured method list. config authen application [console | telnet | ssh | http | all] [login | enable] [default | method_list_name <string 15>]
This command is used to configure Switch configuration applications
(console, telnet, ssh, web) for login at the user level and at the administration level ( authen_enable ) utilizing a previously configured method list. application – Choose the application to configure. The user may choose one of the following five options to configure. console – Choose this parameter to configure the command line interface login method. telnet – Choose this parameter to configure the telnet login
201
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config authen application
method. ssh – Choose this parameter to configure the Secure Shell login method. http – Choose this parameter to configure the web interface login method. all – Choose this parameter to configure all applications (console, telnet, ssh, web) login method. login – Use this parameter to configure an application for normal login on the user level, using a previously configured method list. enable - Use this parameter to configure an application for upgrading a normal user level to administrator privileges, using a previously configured method list. default – Use this parameter to configure an application for user authentication using the default method list. method_list_name <string 15> - Use this parameter to configure an application for user authentication using a prevoisly configured method list.
Enter a alphanumeric string of up to 15 characters to define a previously configured method list.
Example usage:
To configure the default method list for the web interface:
DGS-3400:4#config authen application http login default
Command: config authen application http login default
Success.
DGS-3400:4#
show authen application
Purpose Used to display authentication methods for the various applications on the Switch. show authen application Syntax
Description This command will display all of the authentication method lists (login, enable administrator privileges) for Switch configuration applications
(console, telnet, ssh, web) currently configured on the Switch.
Parameters None.
Restrictions None.
Example usage:
To display the login and enable method list for all applications on the Switch:
DGS-3400:4#show authen application
Command: show authen application
Application Login Method List Enable Method List
----------------- ------------------ ------------------------
Console default default
Telnet Trinity default
SSH default default
HTTP default default
DGS-3400:4#
202
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
create authen server_host
Purpose
Syntax
Description
Parameters
Used to create an authentication server host. create authen server_host <ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius] {port <int 1-65535> | key [<key_string 254> | none] | timeout <int 1-255> | retransmit < 1-255>}
This command will create an authentication server host for the
TACACS/XTACACS/TACACS+/RADIUS security protocols on the
Switch. When a user attempts to access the Switch with authentication protocol enabled, the Switch will send authentication packets to a remote TACACS/XTACACS/TACACS+/RADIUS server host on a remote host. The TACACS/XTACACS/TACACS+/RADIUS server host will then verify or deny the request and return the appropriate message to the Switch. More than one authentication protocol can be run on the same physical server host but, remember that TACACS/XTACACS/TACACS+/RADIUS are separate entities and are not compatible with each other. The maximum supported number of server hosts is 16. server_host <ipaddr> - The IP address of the remote server host to add. protocol – The protocol used by the server host. The user may choose one of the following: tacacs – Enter this parameter if the server host utilizes the
TACACS protocol. xtacacs - Enter this parameter if the server host utilizes the
XTACACS protocol. tacacs+ - Enter this parameter if the server host utilizes the
TACACS+ protocol. radius - Enter this parameter if the server host utilizes the
RADIUS protocol. port <int 1-65535> - Enter a number between 1 and 65535 to define the virtual port number of the authentication protocol on a server host.
The default port number is 49 for TACACS/XTACACS/TACACS+ servers and 1812 and 1813 for RADIUS servers but the user may set a unique port number for higher security. key <key_string 254> - Authentication key to be shared with a configured TACACS+ or RADIUS server only. Specify an alphanumeric string up to 254 characters. timeout <int 1-255> - Enter the time in seconds the Switch will wait for the server host to reply to an authentication request. The default value is 5 seconds. retransmit <int 1-255> - Enter the value in the retransmit field to change how many times the device will resend an authentication request when the server does not respond.
Example usage:
To create a TACACS+ authentication server host, with port number 1234, a timeout value of 10 seconds and a retransmit count of 5.
DGS-3400:4#create authen server_host 10.1.1.121 protocol tacacs+ port
1234 timeout 10 retransmit 5
Command: create authen server_host 10.1.1.121 protocol tacacs+ port
1234 timeout 10 retransmit 5
Success.
DGS-3400:4#
203
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config authen server_host
Purpose
Syntax
Description
Parameters
Used to configure a user-defined authentication server host. create authen server_host <ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius] {port <int 1-65535> | key [<key_string 254> | none] | timeout <int
1-255> | retransmit < 1-255>}
This command will configure a user-defined authentication server host for the
TACACS/XTACACS/TACACS+/RADIUS security protocols on the Switch.
When a user attempts to access the Switch with the authentication protocol enabled, the Switch will send authentication packets to a remote
TACACS/XTACACS/TACACS+/RADIUS server host on a remote host. The
TACACS/XTACACS/TACACS+/RADIUS server host will then verify or deny the request and return the appropriate message to the Switch. More than one authentication protocol can be run on the same physical server host but, remember that TACACS/XTACACS/TACACS+/RADIUS are separate entities and are not compatible with each other. The maximum supported number of server hosts is 16. server_host <ipaddr> - The IP address of the remote server host the user wishes to alter. protocol – The protocol used by the server host. The user may choose one of the following: tacacs – Enter this parameter if the server host utilizes the TACACS protocol. xtacacs - Enter this parameter if the server host utilizes the
XTACACS protocol. tacacs+ - Enter this parameter if the server host utilizes the
TACACS+ protocol. radius - Enter this parameter if the server host utilizes the RADIUS protocol. port <int 1-65535> - Enter a number between 1 and 65535 to define the virtual port number of the authentication protocol on a server host. The default port number is 49 for TACACS/XTACACS/TACACS+ servers and 1812 and 1813 for RADIUS servers but the user may set a unique port number for higher security. key <key_string 254> - Authentication key to be shared with a configured
TACACS+ or RADIUS server only. Specify an alphanumeric string up to 254 characters or choose none. timeout <int 1-255> - Enter the time in seconds the Switch will wait for the server host to reply to an authentication request. The default value is 5 seconds. retransmit <int 1-255> - Enter the value in the retransmit field to change how many times the device will resend an authentication request when the server does not respond. This field is inoperable for the TACACS+ protocol.
Example usage:
To configure a TACACS+ authentication server host, with port number 4321, a timeout value of 12 seconds and a retransmit count of 4.
DGS-3400:4#config authen server_host 10.1.1.121 protocol tacacs+ port 4321 timeout 12 retransmit 4
Command: config authen server_host 10.1.1.121 protocol tacacs+ port
4321 timeout 12 retransmit 4
Success.
DGS-3400:4#
204
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
delete authen server_host
Purpose
Syntax
Description
Parameters
Used to delete a user-defined authentication server host. delete authen server_host <ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius]
This command is used to delete a user-defined authentication server host previously created on the Switch. server_host <ipaddr> - The IP address of the remote server host to be deleted. protocol – The protocol used by the server host the user wishes to delete.
The user may choose one of the following: tacacs – Enter this parameter if the server host utilizes the
TACACS protocol. xtacacs - Enter this parameter if the server host utilizes the
XTACACS protocol . tacacs+ - Enter this parameter if the server host utilizes the
TACACS+ protocol. radius - Enter this parameter if the server host utilizes the RADIUS protocol.
Example usage:
To delete a user-defined TACACS+ authentication server host:
DGS-3400:4#delete authen server_host 10.1.1.121 protocol tacacs+
Command: delete authen server_host 10.1.1.121 protocol tacacs+
Success.
DGS-3400:4#
show authen server_host
Purpose
Syntax
Description
Used to view a user-defined authentication server host. show authen server_host
This command is used to view user-defined authentication server hosts previously created on the Switch.
The following parameters are displayed:
IP Address – The IP address of the authentication server host.
Protocol – The protocol used by the server host. Possible results will include TACACS, XTACACS, TACACS+ or RADIUS.
Port – The virtual port number on the server host. The default value is
49.
Timeout - The time in seconds the Switch will wait for the server host to reply to an authentication request.
Retransmit - The value in the retransmit field denotes how many times the device will resend an authentication request when the
TACACS server does not respond. This field is inoperable for the tacacs+ protocol.
Key - Authentication key to be shared with a configured TACACS+ server only.
Parameters None.
Restrictions None.
205
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Example usage:
To view authenticaion server hosts currently set on the Switch:
DGS-3400:4#show authen server_host
Command: show authen server_host
IP Address Protocol Port Timeout Retransmit Key
--------------- -------- ----- ------- --------------- ------------------
10.53.13.94 TACACS 49 5 2 ---------
Total Entries : 1
DGS-3400:4#
create authen server_group
Purpose
Syntax
Description
Parameters
Used to create a user-defined authentication server group. create authen server_group <string 15>
This command will create an authentication server group. A server group is a technique used to group
TACACS/XTACACS/TACACS+/RADIUS server hosts into user defined categories for authentication using method lists. The user may add up to eight (8) authentication server hosts to this group using the config authen server_group command.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the newly created server group.
Example usage:
To create the server group “group_1”:
DGS-3400:4#create authen server_group group_1
Command: create authen server_group group_1
Success.
DGS-3400:4#
config authen server_group
Purpose
Syntax
Description
Parameters
Used to configure a user-defined authentication server group. config authen server_group [tacacs | xtacacs | tacacs+ | radius |
<string 15>] [add | delete] server_host <ipaddr> protocol [tacacs | xtacacs | tacacs+ | radius]
This command will configure an authentication server group. A server group is a technique used to group
TACACS/XTACACS/TACACS+/RADIUS server hosts into user defined categories for authentication using method lists. The user may define the type of server group by protocol or by previously defined server group. Up to eight (8) authentication server hosts may be added to any particular group server_group - The user may define the group by protocol groups built into the Switch (TACACS/XTACACS/TACACS+/RADIUS), or by a user-defined group previously created using the create authen server_group command. tacacs – Use this parameter to utilize the built-in TACACS server protocol on the Switch. Only server hosts utilizing the TACACS
206
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config authen server_group
protocol may be added to this group. xtacacs – Use this parameter to utilize the built-in XTACACS server protocol on the Switch. Only server hosts utilizing the
XTACACS protocol may be added to this group. tacacs+ – Use this parameter to utilize the built-in TACACS+ server protocol on the Switch. Only server hosts utilizing the
TACACS+ protocol may be added to this group. radius – Use this parameter to utilize the built-in RADIUS server protocol on the Switch. Only server hosts utilizing the RADIUS protocol may be added to this group.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the previously created server group. This group may add any combination of server hosts to it, regardless of protocol. add/delete – Enter the correct parameter to add or delete a server host from a server group. server_host <ipaddr> - Enter the IP address of the previously configured server host to add or delete. protocol – Enter the protocol utilized by the server host. There are three options: tacacs – Use this parameter to define the protocol if the server host is using the TACACS authentication protocol. xtacacs – Use this parameter to define the protocol if the server host is using the XTACACS authentication protocol. tacacs+ – Use this parameter to define the protocol if the server host is using the TACACS+ authentication protocol. radius – Use this parameter to define the protocol if the server host is using the RADIUS authentication protocol.
Example usage:
To add an authentication host to server group “group_1”:
DGS-3400:4# config authen server_group group_1 add server_host
10.1.1.121 protocol tacacs+
Command: config authen server_group group_1 add server_host
10.1.1.121 protocol tacacs+
Success.
DGS-3400:4#
delete authen server_group
Purpose
Syntax
Description
Parameters
Used to delete a user-defined authentication server group. delete authen server_group <string 15>
This command will delete an authentication server group.
<string 15> - Enter an alphanumeric string of up to 15 characters to define the previously created server group to be deleted.
Example usage:
To delete the server group “group_1”:
207
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#delete server_group group_1
Command: delete server_group group_1
Success.
DGS-3400:4#
show authen server_group
Purpose
Syntax
Description
Used to view authentication server groups on the Switch. show authen server_group <string 15>
This command will display authentication server groups currently configured on the Switch.
This command will display the following fields:
Group Name: The name of the server group currently configured on the Switch, including built in groups and user defined groups.
IP Address: The IP address of the server host.
Protocol: The authentication protocol used by the server host.
Parameters <string 15> - Enter an alphanumeric string of up to 15 characters to define the previously created server group to be viewed.
Entering this command without the <string> parameter will display all authentication server groups on the Switch.
Restrictions None.
Example usage:
To view authentication server groups currently set on the Switch.
DGS-3400:4#show authen server_group
Command: show authen server_group
Group Name IP Address Protocol
--------------- --------------- --------
Darren 10.53.13.2 TACACS tacacs 10.53.13.94 TACACS tacacs+ (This group has no entry)
------------ (This group has no entry)
Total Entries : 4
DGS-3400:4#
config authen parameter response_timeout
Purpose
Syntax
Description
Parameters
Used to configure the amount of time the Switch will wait for a user to enter authentication before timing out. config authen parameter response_timeout <int 0-255>
This command will set the time the Switch will wait for a response of authentication from the user. response_timeout <int 0-255> - Set the time, in seconds, the Switch will wait for a response of authentication from the user attempting to log in from the command line interface or telnet interface. “0” (integer zero) means there won’t be a time-out. The default value is 30 seconds.
Example usage:
208
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To configure the response timeout for 60 seconds:
DGS-3400:4# config authen parameter response_timeout 60
Command: config authen parameter response_timeout 60
Success.
DGS-3400:4#
config authen parameter attempt
Purpose
Syntax
Description
Parameters
Used to configure the maximum number of times the Switch will accept authentication attempts. config authen parameter attempt <int 1-255>
This command will configure the maximum number of times the Switch will accept authentication attempts. Users failing to be authenticated after the set amount of attempts will be denied access to the Switch and will be locked out of further authentication attempts. Command line interface users will have to wait 60 seconds before another authentication attempt. Telnet users will be disconnected from the Switch. parameter attempt <int 1-255> - Set the maximum number of attempts the user may try to become authenticated by the Switch, before being locked out.
Example usage:
To set the maximum number of authentication attempts at 5:
DGS-3400:4# config authen parameter attempt 5
Command: config authen parameter attempt 5
Success.
DGS-3400:4#
show authen parameter
Purpose
Syntax
Description
Used to display the authentication parameters currently configured on the Switch. show authen parameter
This command will display the authentication parameters currently configured on the Switch, including the response timeout and user authentication attempts.
This command will display the following fields:
Response timeout – The configured time allotted for the Switch to wait for a response of authentication from the user attempting to log in from the command line interface or telnet interface.
User attempts: The maximum number of attempts the user may try to become authenticated by the Switch, before being locked out.
Parameters None.
Restrictions None.
Example usage:
To view the authentication parameters currently set on the Switch:
209
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show authen parameter
Command: show authen parameter
Response timeout : 60 seconds
User attempts : 5
DGS-3400:4#
enable admin
Purpose
Syntax
Description
Used to promote user level privileges to administrator level privileges enable admin
This command is for users who have logged on to the Switch on the normal user level, to become promoted to the administrator level.
After logging on to the Switch users will have only user level privileges. To gain acess to administrator level privileges, the user will enter this command and will have to enter an authentication password. Possible authentication methods for this function include
TACACS, XTACACS, TACACS+, RADIUS, user defined server groups, local enable (local account on the Switch), or no authentication ( none ). Because XTACACS and TACACS do not support the enable function, the user must create a special account on the server host which has the username “enable”, and a password configured by the administrator that will support the
“enable” function. This function becomes inoperable when the authentication policy is disabled.
Parameters None.
Restrictions Only
Example usage:
To enable administrator privileges on the Switch:
DGS-3400:4#enable admin
Password: ******
DGS-3400:4#
config admin local_enable
Purpose
Syntax
Description
Parameters
Used to configure the local enable password for administrator level privileges. config admin local_enable
This command will configure the locally enabled password for the enable admin command. When a user chooses the “ local_enable ” method to promote user level privileges to administrator privileges, he or she will be prompted to enter the password configured here, that is set locally on the Switch.
<password 15> - After entering this command, the user will be prompted to enter the old password, then a new password in an alphanumeric string of no more than 15 characters, and finally prompted to enter the new password again for confirmation. See the example below.
Example usage:
210
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To configure the password for the “local_enable” authentication method.
DGS-3400:4#config admin local_enable
Command: config admin local_ebable
Enter the old password:
Enter the case-sensitive new password:******
Enter the new password again for confirmation:******
Success.
DGS-3400:4#
211
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
31
SSH C
OMMANDS
The steps required to use the Secure Shell (SSH) protocol for secure communication between a remote PC (the SSH Client) and the Switch (the SSH Server), are as follows:
• Create a user account with admin-level access using the create account admin <username> <password> command.
This is identical to creating any other admin-lever user account on the Switch, including specifying a password. This password is used to login to the Switch, once secure communication has been established using the SSH protocol.
•
•
•
Configure the user account to use a specified authorization method to identify users that are allowed to establish SSH connections with the Switch using the config ssh user authmode command. There are three choices as to the method
SSH will use to authorize the user, and they are password , publickey and hostbased .
Configure the encryption algrothim that SSH will use to encrypt and decrypt messages sent between the SSH Client and the SSH Server.
Finally, enable SSH on the Switch using the enable ssh command.
After following the above steps, you can configure an SSH Client on the remote PC and manage the Switch using secure, in-band communication.
The Secure Shell (SSH) commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable ssh disable ssh config ssh authmode show ssh authmode config ssh server show ssh server config ssh user show ssh user authmode config ssh algorithm
[password | publickey | hostbased] [enable | disable]
{maxsession <int 1-8> | contimeout <sec 120-600> | authfail <int
2-20> | rekey [10min | 30min | 60min | never]
<username> authmode [hostbased [hostname <domain_name> | hostname_IP <domain_name> <ipaddr>] | password | publickey] show ssh algorithm
[3DES | AES128 | AES192 | AES256 | arcfour | blowfish | cast128
| twofish128 | twofish192 | twofish256 | MD5 | SHA1 | RSA | DSA]
[enable | disable]
Each command is listed, in detail, in the following sections.
enable shh
Purpose
Syntax
Description
Used to enable SSH. enable ssh
This command allows you to enable SSH on the Switch.
Parameters None.
Usage example:
To enable SSH:
212
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#enable ssh
Command: enable ssh
TELNET will be disabled when enable SSH.
Success.
DGS-3400:4#
disable ssh
Purpose
Syntax
Description
Used to disable SSH. disable ssh
This command allows you to disable SSH on the Switch.
Parameters None.
Usage example:
To disable SSH:
DGS-3400:4# disable ssh
Command: disable ssh
Success.
DGS-3400:4#
config ssh authmode
Purpose
Syntax
Description
Parameters
Used to configure the SSH authentication mode setting. config ssh authmode [password | publickey | hostbased]
[enable | disable]
This command will allow you to configure the SSH authentication mode for users attempting to access the Switch. password – This parameter may be chosen if the administrator wishes to use a locally configured password for authentication on the
Switch. publickey - This parameter may be chosen if the administrator wishes to use a publickey configuration set on a SSH server, for authentication. hostbased - This parameter may be chosen if the administrator wishes to use a host computer for authentication. This parameter is intended for Linux users requiring SSH authentication techniques and the host computer is running the Linux operating system with a
SSH program previously installed.
[enable | disable] - This allows you to enable or disable SSH authentication on the Switch.
Example usage:
To enable the SSH authentication mode by password:
213
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#config ssh authmode password enable
Command: config ssh authmode password enable
Success.
DGS-3400:4#
show ssh authmode
Purpose
Syntax
Used to display the SSH authentication mode setting. show ssh authmode
Description This command will allow you to display the current SSH authentication set on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the cuurent authentication mode set on the Switch:
DGS-3400:4#show ssh authmode
Command: show ssh authmode
The SSH authmode:
Password : Enabled
Publickey : Enabled
Hosatbased : Enabled
DGS-3400:4#
config ssh server
Purpose
Syntax
Description
Parameters
Used to configure the SSH server. config ssh server {maxsession <int 1-8> | timeout <sec 120-
600> | authfail <int 2-20> | rekey [10min | 30min | 60min | never]
This command allows you to configure parameters for the SSH server setting on the Switch. maxsession <int 1-8> - Allows the user to set the number of users that may simultaneously access the Switch. The default setting is 8. contimeout <sec 120-600> - Allows the user to set the connection timeout. The user may set a time between 120 and 600 seconds.
The default is 300 seconds. authfail <int 2-20> - Allows the administrator to set the maximum number of attempts that a user may try to logon utilizing SSH authentication. After the maximum number of attempts is exceeded, the Switch will be disconnected and the user must reconnect to the
Switch to attempt another login. rekey [10min | 30min | 60min | never] - Sets the time period that the
Switch will change the security shell encryptions.
Usage example:
To configure the SSH server:
214
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# config ssh server maxsession 2 contimeout 300 authfail 2
Command: config ssh server maxsession 2 contimeout 300 authfail 2
Success.
DGS-3400:4#
show ssh server
Purpose
Syntax
Used to display the SSH server setting. show ssh server
Description This command allows you to display the current SSH server setting.
Parameters None.
Restrictions None.
Usage Example:
To display the SSH server:
DGS-3400:4# show ssh server
Command: show ssh server
The SSH server configuration
SSH Server Status : Disabled
Max Session : 8
Connection timeout : 120
Authfail attempts : 2
Rekey timeout : never
Listened Port Number : 22
DGS-3400:4#
config ssh user
Purpose
Syntax
Description
Parameters
Used to configure the SSH user. config ssh user <username> authmode [hostbased [hostname
<domain_name> | hostname_IP <domain_name> <ipaddr>] | password | publickey]
This command allows you to configure the SSH user authentication method.
<username> - Enter a username of no more than 15 characters to identify the SSH user. authmode – Specifies the authentication mode of the SSH user wishing to log on to the Switch. The administrator may choose between: hostbased – This parameter should be chosen if the user wishes to use a remote SSH server for authentication purposes. Choosing this parameter requires the user to input the following information to identify the SSH user. hostname <domain_name> - Enter an alphanumeric string of up to
32 characters identifying the remote SSH user. hostname_IP <domain_name> <ipaddr> - Enter the hostname and the corresponding IP address of the SSH user. password – This parameter should be chosen if the user wishes to use an administrator defined password for authentication. Upon entry of this command, the Switch will prompt the user for a
215
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config ssh user
password, and then to retype the password for confirmation. publickey – This parameter should be chosen if the user wishes to use the publickey on a SSH server for authentication.
Example usage:
To configure the SSH user:
DGS-3400:4# config ssh user Trinity authmode Password
Command: config ssh user Trinity authmode Password
Enter a case sensitive new password: *******
Enter the new password again for conformation:*******
Success.
DGS-3400:4#
show ssh user authmode
Purpose
Syntax
Description
Used to display the SSH user setting. show ssh user authmode
This command allows you to display the current SSH user setting.
Parameters None.
Restrictions None.
Example usage:
To display the SSH user:
DGS-3400:4#show ssh user authmode
Command: show ssh user authmode
Current Accounts:
UserName Authentication Host Name Host IP
-------------- --------------------- ----------------- ---------
Trinity Hostbased 12334 10.45.25.8
DGS-3400:4#
Note : To configure the SSH user, the administrator must create a user account on the
Switch. For information concerning configuring a user account, please see the section of this manual entitled Basic Switch Commands and then the command, create account user .
config ssh algorithm
Purpose
Syntax
Description
Used to configure the SSH algorithm. config ssh algorithm [3DES | AES128 | AES192 | AES256 | arcfour | blowfish | cast128 | twofish128 | twofish192 | twofish256 | MD5 |
SHA1 | RSA | DSA] [enable | disable]
This command allows you to configure the desired type of SSH algorithm used for authentication encryption.
216
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config ssh algorithm
Parameters 3DES – This parameter will enable or disable the Triple_Data
Encryption Standard encryption algorithm.
AES128 - This parameter will enable or disable the Advanced
Encryption Standard AES128 encryption algorithm.
AES192 - This parameter will enable or disable the Advanced
Encryption Standard AES192 encryption algorithm.
AES256 - This parameter will enable or disable the Advanced
Encryption Standard AES256 encryption algorithm. arcfour - This parameter will enable or disable the Arcfour encryption algorithm. blowfish - This parameter will enable or disable the Blowfish encryption algorithm. cast128 - This parameter will enable or disable the Cast128 encryption algorithm. twofish128 - This parameter will enable or disable the twofish128 encryption algorithm. twofish192 - This parameter will enable or disable the twofish192 encryption algorithm.
MD5 - This parameter will enable or disable the MD5 Message Digest encryption algorithm.
SHA1 - This parameter will enable or disable the Secure Hash
Algorithm encryption.
RSA - This parameter will enable or disable the RSA encryption algorithm.
DSA - This parameter will enable or disable the Digital Signature
Algorithm encryption.
[enable | disable] – This allows you to enable or disable algorithms entered in this command, on the Switch.
Usage example:
To configure SSH algorithm:
DGS-3400:4# config ssh algorithm Blowfish enable
Command: config ssh algorithm Blowfish enable
Success.
DGS-3400:4#
show ssh algorithm
Purpose
Syntax
Description
Used to display the SSH algorithm setting. show ssh algorithm
This command will display the current SSH algorithm setting status.
Parameters None.
Restrictions None.
Usage Example:
To display SSH algorithms cuurently set on the Switch:
217
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show ssh algorithm
Command: show ssh algorithm
Encryption Algorithm
----------------------------------
3DES :Enabled
AES128 :Enabled
AES192 :Enabled
AES256 :Enabled arcfour :Enabled blowfish :Enabled cast128 :Enabled twofish128 :Enabled twofish192 :Enabled twofish256 :Enabled
Data Integrity Algorithm
----------------------------------
MD5 :Enabled
SHA1 :Enabled
Public Key Algorithm
---------------------------------
RSA :Enabled
DSA :Enabled
DGS-3400:4#
218
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
32
SSL C
OMMANDS
Secure Sockets Layer or SSL is a security feature that will provide a secure communication path between a host and client through the use of authentication, digital signatures and encryption. These security functions are implemented through the use of a ciphersuite , which is a security string that determines the exact cryptographic parameters, specific encryption algorithms and key sizes to be used for an authentication session and consists of three levels:
1. Key Exchange: The first part of the cyphersuite string specifies the public key algorithm to be used. This Switch utilizes the Rivest Shamir Adleman (RSA) public key algorithm and the Digital Signature Algorithm (DSA), specified here as the
DHE_DSS Diffie-Hellman (DHE) public key algorithm. This is the first authentication process between client and host as they “exchange keys” in looking for a match and therefore authentication to be accepted to negotiate encryptions on the following level.
2. Encryption: The second part of the ciphersuite that includes the encryption used for encrypting the messages sent between client and host. The Switch supports two types of cryptology algorithms:
Stream Ciphers – There are two types of stream ciphers on the Switch, RC4 with 40-bit keys and RC4 with 128-bit keys . These keys are used to encrypt messages and need to be consistent between client and host for optimal use.
CBC Block Ciphers – CBC refers to Cipher Block Chaining, which means that a portion of the previously encrypted block of encrypted text is used in the encryption of the current block. The Switch supports the 3DES_EDE encryption code defined by the
Data Encryption Standard (DES) to create the encrypted text.
3. Hash Algorithm : This part of the ciphersuite allows the user to choose a message digest function which will determine a
Message Authentication Code. This Message Authentication Code will be encrypted with a sent message to provide integrity and prevent against replay attacks. The Switch supports two hash algorithms, MD5 (Message Digest 5) and SHA
(Secure Hash Algorithm).
These three parameters are uniquely assembled in four choices on the Switch to create a three layered encryption code for secure communication between the server and the host. The user may implement any one or combination of the ciphersuites available, yet different ciphersuites will affect the security level and the performance of the secured connection. The information included in the ciphersuites is not included with the Switch and requires downloading from a third source in a file form called a certificate .
This function of the Switch cannot be executed without the presence and implementation of the certificate file and can be downloaded to the Switch by utilizing a TFTP server. The Switch supports SSLv3 and TLSv1. Other versions of SSL may not be compatible with this Switch and may cause problems upon authentication and transfer of messages from client to host.
The Secure Sockets Layer (SSL) commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable ssl disable ssl config ssl cachetimeout timeout show ssl show ssl certificate show ssl cachetimeout download ssl certificate
{ciphersuite {RSA_with_RC4_128_MD5 |
RSA_with_3DES_EDE_CBC_SHA |
DHE_DSS_with_3DES_EDE_CBC_SHA |
RSA_EXPORT_with_RC4_40_MD5}}
{ciphersuite {RSA_with_RC4_128_MD5 |
RSA_with_3DES_EDE_CBC_SHA |
DHE_DSS_with_3DES_EDE_CBC_SHA |
RSA_EXPORT_with_RC4_40_MD5}}
<value 60-86400>
<ipaddr> certfilename <path_filename 64> keyfilename
<path_filename 64>
Each command is listed, in detail, in the following sections.
219
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
enable ssl
Purpose
Syntax
Description
Parameters
To enable the SSL function on the Switch. enable ssl {ciphersuite {RSA_with_RC4_128_MD5 |
RSA_with_3DES_EDE_CBC_SHA |
DHE_DSS_with_3DES_EDE_CBC_SHA |
RSA_EXPORT_with_RC4_40_MD5}}
This command will enable SSL on the Switch by implementing any one or combination of listed ciphersuites on the Switch. Entering this command without a parameter will enable the SSL status on the Switch. Enabling
SSL will disable the web-manager on the Switch. ciphersuite - A security string that determines the exact cryptographic parameters, specific encryption algorithms and key sizes to be used for an authentication session. The user may choose any combination of the following:
• RSA_with_RC4_128_MD5 – This ciphersuite combines the RSA key exchange, stream cipher RC4 encryption with 128-bit keys and the MD5 Hash Algorithm.
• RSA_with_3DES_EDE_CBC_SHA - This ciphersuite combines the RSA key exchange, CBC Block Cipher 3DES_EDE encryption and the SHA Hash Algorithm.
• DHE_DSS_with_3DES_EDE_CBC_SHA - This ciphersuite combines the DSA Diffie Hellman key exchange, CBC Block
Cipher 3DES_EDE encryption and SHA Hash Algorithm.
• RSA_EXPORT_with_RC4_40_MD5 - This ciphersuite combines the RSA Export key exchange, stream cipher RC4 encryption with
40-bit keys.
The ciphersuites are enabled by default on the Switch, yet the SSL status is disabled by default. Enabling SSL with a cipersuite will not enable the
SSL status on the Switch.
Example usage:
To enable SSL on the Switch for all ciphersuites:
DGS-3400:4#enable ssl
Command:enable ssl
Note: Web will be disabled if SSL is enabled.
Success.
DGS-3400:4#
NOTE: Enabling SSL on the Switch will enable all ciphersuites. To utilize a particular ciphersuite, the user must eliminate other ciphersuites by using the disable ssl command along with the appropriate ciphersuites.
NOTE: Enabling the SSL function on the Switch will disable the port for the web manager (port 80). To log on to the web based manager, the entry of your URL must begin with https:// . (ex. https://10.90.90.90)
220
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
disable ssl
Purpose
Syntax
Description
Parameters
To disable the SSL function on the Switch. disable ssl {ciphersuite {RSA_with_RC4_128_MD5 |
RSA_with_3DES_EDE_CBC_SHA |
DHE_DSS_with_3DES_EDE_CBC_SHA |
RSA_EXPORT_with_RC4_40_MD5}}
This command will disable SSL on the Switch and can be used to disable any one or combination of listed ciphersuites on the Switch. ciphersuite - A security string that determines the exact cryptographic parameters, specific encryption algorithms and key sizes to be used for an authentication session. The user may choose any combination of the following:
• RSA_with_RC4_128_MD5 – This ciphersuite combines the
RSA key exchange, stream cipher RC4 encryption with 128-bit keys and the MD5 Hash Algorithm.
• RSA_with_3DES_EDE_CBC_SHA - This ciphersuite combines the RSA key exchange, CBC Block Cipher
3DES_EDE encryption and the SHA Hash Algorithm.
• DHE_DSS_with_3DES_EDE_CBC_SHA - This ciphersuite combines the DSA Diffie Hellman key exchange, CBC Block
Cipher 3DES_EDE encryption and SHA Hash Algorithm.
• RSA_EXPORT_with_RC4_40_MD5 - This ciphersuite combines the RSA Export key exchange, stream cipher RC4 encryption with 40-bit keys.
Example usage:
To disable the SSL status on the Switch:
DGS-3400:4#disable ssl
Command: disable ssl
Success.
DGS-3400:4#
To disable ciphersuite RSA_EXPORT_with_RC4_40_MD5 only:
DGS-3400:4#disable ssl ciphersuite RSA_EXPORT_with_RC4_40_MD5
Command: disable ssl ciphersuite RSA_EXPORT_with_RC4_40_MD5
Success.
DGS-3400:4#
config ssl cachetimeout timeout
Purpose
Syntax
Description
Parameters
Used to configure the SSL cache timeout. config ssl cachetimeout timeout <value 60-86400>
This command will set the time between a new key exchange between a client and a host using the SSL function. A new SSL session is established every time the clent and host go through a key exchange.
Specifying a longer timeout will allow the SSL session to reuse the master key on future connections with that particular host, therefore speeding up the negotiation process. timeout <value 60-86400> - Enter a timeout value between 60 and 86400 d t if th t t l ti SSL k h ID t lid
221
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config ssl cachetimeout timeout
seconds to specify the total time an SSL key exchange ID stays valid before the SSL module will require a new, full SSL negotiation for connection. The default cache timeout is 600 seconds
Example usage:
To set the SSL cachetimeout for 7200 seconds:
DGS-3400:4#config ssl cachetimeout timeout 7200
Command: config ssl cachetimeout timeout 7200
Success.
DGS-3400:4#
show ssl cachetimeout
Purpose Used to show the SSL cache timeout.
Syntax
Description show ssl cachetimeout
Entering this command will allow the user to view the SSL cache timeout cuurently implemented on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the SSL cache timeout on the Switch:
DGS-3400:4#show ssl cachetimeout
Command: show ssl cachetimeout
Cache timeout is 600 second(s).
DGS-3400:4#
show ssl
Purpose
Syntax
Description
Used to view the SSL status and the certificate file status on the
Switch. show ssl
This command is used to view the SSL status on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the SSL status on the Switch:
222
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show ssl
Command: show ssl
SSL status Disabled
RSA_WITH_RC4_128_MD5 0x0004 Enabled
RSA_WITH_3DES_EDE_CBC_SHA 0x000A Enabled
DHE_DSS_WITH_3DES_EDE_CBC_SHA 0x0013 Enabled
RSA_EXPORT_WITH_RC4_40_MD5 0x0003 Enabled
DGS-3400:4#
show ssl certificate
Purpose Used to view the SSL certificate file status on the Switch.
Syntax
Description show ssl certificate
This command is used to view the SSL certificate file information currently implemented on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view certificate file information on the Switch:
DGS-3400:4# show ssl certificate
Command: show ssl certificate
Loaded with RSA Certificate!
DGS-3400:4#
download SSL certificate
Purpose
Syntax
Description
Parameters
Used to download a certificate file for the SSL function on the Switch. download SSL certificate <ipaddr> certfilename <path_filename 64> keyfilename <path_filename 64>
This command is used to download a certificate file for the SSL function on the Switch from a TFTP server. The certificate file is a data record used for authenticating devices on the network. It contains information on the owner, keys for authentication and digital signatures. Both the server and the client must have consistent certificate files for optimal use of the SSL function.
The Switch only supports certificate files with .der file extensions.
<ipaddr> - Enter the IP address of the TFTP server. certfilename <path_filename 64> - Enter the path and the filename of the certificate file you wish to download. keyfilename <path_filename 64> - Enter the path and the filename of the key exchange file you wish to download.
Example usage:
To download a certificate file and key file to the Switch:
223
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#download ssl certificate 10.53.13.94 certfilename c:/cert.der keyfilename c:/pkey.der
Command: download ssl certificate 10.53.13.94 certfilename c:/cert.der keyfilename c:/pkey.der
Certificate Loaded Successfully!
DGS-3400:4#
224
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
33
J
UMBO
F
RAME
C
OMMANDS
Certain switches can support jumbo frames (frames larger than the standard Ethernet frame size of 1518 bytes). To transmit frames of up to 9K (and 9216 bytes tagged), the user can increase the maximum transmission unit (MTU) size from the default of
1536 by enabling the Jumbo Frame command.
The jumbo frame commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable jumbo_frame disable jumbo_frame show jumbo_frame
Each command is listed, in detail, in the following sections.
enable jumbo_frame
Purpose
Syntax
Used to enable the jumbo frame function on the Switch. enable jumbo_frame
Description This command will allow ethernet frames larger than 1536 bytes to be processed by the Switch. The maximum size of the jumbo frame may not exceed 9k.
Parameters None.
Example usage:
To enable the jumbo frame function on the Switch:
DGS-3400:4#enable jumbo_frame
Command: enable jumbo_frame
Success.
DGS-3400:4#
disable jumbo_frame
Purpose Used to disable the jumbo frame function on the Switch.
Syntax
Description disable jumbo_frame
This command will disable the jumbo frame function on the
Switch.
Parameters None.
Example usage:
To enable the jumbo frame function on the Switch:
225
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#disable jumbo_frame
Command: disable jumbo_frame
Success.
DGS-3400:4#
show jumbo_frame
Purpose
Syntax
Used to show the status of the jumbo frame function on the Switch. show jumbo_frame
Description This command will show the status of the jumbo frame function on the Switch.
Parameters None.
Restrictions None.
Usage Example:
To show the jumbo frame status currently configured on the Switch:
DGS-3400:4#show jumbo_frame
Command: show jumbo_frame
Jumbo frame state : disabled
Maximum Jumbo frame size : 1536 bytes.
DGS-3400:4#
226
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
34
D-L
INK
S
INGLE
IP M
ANAGEMENT
C
OMMANDS
Simply put, D-Link Single IP Management is a concept that will stack switches together over Ethernet instead of using stacking ports or modules. Switches using D-Link Single IP Management (labeled here as SIM) must conform to the following rules:
• SIM is an optional feature on the Switch and can easily be enabled or disabled. SIM grouping has no effect on the normal operation of the Switch in the user’s network.
•
•
There are three classifications for switches using SIM. The Commander Switch(CS), which is the master switch of the group, Member Switch(MS), which is a switch that is recognized by the CS a member of a SIM group, and a
Candidate Switch(CaS), which is a switch that has a physical link to the SIM group but has not been recognized by the
CS as a member of the SIM group.
A SIM group can only have one Commander Switch(CS).
•
•
All switches in a particular SIM group must be in the same multicast domain.
A SIM group accepts up to 32 switches (numbered 0-32), including the Commander Switch (numbered 0).
• There is no limit to the number of SIM groups in the same multicast domain, however a single switch can only belong to one group.
If multiple VLANs are configured, the SIM group will only utilize the default VLAN on any switch. •
• SIM allows intermediate devices that do not support SIM. This enables the user to manage a switch that are more than one hop away from the CS.
The SIM group is a group of switches that are managed as a single entity. The DGS-3400 Series may take on three different roles:
Commander Switch(CS) – This is a switch that has been manually configured as the controlling device for a group, and takes on the following characteristics:
•
•
It has an IP Address.
It is not a Commander Switch or Member Switch of another Single IP group.
• It is connected to the Member Switches through its management VLAN.
Member Switch(MS) – This is a switch that has joined a single IP group and is accessible from the CS, and it takes on the following characteristics:
•
•
It is not a CS or MS of another IP group.
It is connected to the CS through the CS management VLAN.
Candidate Switch(CaS) – This is a switch that is ready to join a SIM group but is not yet a member of the SIM group. The
Candidate Switch may join the SIM group through an automatic function of the DGS-3400, or by manually configuring it to be a
MS of a SIM group. A switch configured as a CaS is not a member of a SIM group and will take on the following characteristics:
• It is not a CS or MS of another Single IP group.
• It is connected to the CS through the CS management VLAN.
The following rules also apply to the above roles:
1. Each device begins in the Candidate state.
2. CS’s must change their role to CaS and then to MS, to become a MS of a SIM group. Thus the CS cannot directly be converted to a MS.
3. The user can manually configure a CS to become a CaS.
4. A MS can become a CaS by: a. Being configured as a CaS through the CS. b. If report packets from the CS to the MS time out.
5. The user can manually configure a CaS to become a CS
6. The CaS can be configured through the CS to become a MS.
After configuring one switch to operate as the CS of a SIM group, additional DGS-3400 switches may join the group by either an automatic method or by manually configuring the Switch to be a MS. The CS will then serve as the in band entry point for access to the MS. The CS’s IP address will become the path to all MS’s of the group and the CS’s Administrator’s password, and/or authentication will control access to all MS’s of the SIM group.
With SIM enabled, the applications in the CS will redirect the packet instead of executing the packets. The applications will decode the packet from the administrator, modify some data, then send it to the MS. After execution, the CS may receive a response packet from the MS, which it will encode and send back to the administrator.
227
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
When a CS becomes a MS, it automatically becomes a member of the first SNMP community (include read/write and read only) to which the CS belongs. However if a MS has its own IP address, it can belong to SNMP communities to which other switches in the group, including the CS, do not belong.
The Upgrade to v1.61
To better improve SIM management, the xStack DES-3800 series switches have been upgraded to version 1.61 in this release.
Many improvements have been made, including:
The Commander Switch (CS) now has the capability to automatically rediscover member switches that have left the SIM group, either through a reboot or web malfunction. This feature is accomplished through the use of Discover packets and Maintain packets that previously set SIM members will emit after a reboot. Once a MS has had its MAC address and password saved to the
CS’s database, if a reboot occurs in the MS, the CS will keep this MS information in its database and when a MS has been rediscovered, it will add the MS back into the SIM tree automatically. No configuration will be necessary to rediscover these switches. There are some instances where pre-saved MS switches cannot be rediscovered. For example, if the Switch is still powered down, if it has become the member of another group, or if it has been configured to be a Commander Switch, the rediscovery process cannot occur.
This version will support multiple switch upload and downloads for firmware, configuration files and log files, as follows:
•
•
•
Firmware – The switch now supports multiple MS firmware downloads from a TFTP server.
Configuration Files – This switch now supports multiple downloading and uploading of configuration files both to (for configuration restoration) and from (for configuration backup) MS’s, using a TFTP server..
Log – The switch now supports uploading multiple MS log files to a TFTP server.
The SIM commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters enable sim disable sim show sim reconfig config sim_group config sim download sim_ms upload sim_ms
{[candidates {<candidate_id 1-100>} | members {<member_id 1-
32>} | group {commander_mac <macaddr>} | neighbor]}
[member_id <value 1-32> | exit]
[add <candidate_id 1-100> {<password>} | delete <member_id 1-
32>]
[[commander {group_name <groupname 64>} | candidate] | dp_interval <sec 30-90> | hold_time <sec 100-255>]
[firmware_from_tftp | configuration_from_tftp] <ipaddr>
<path_filename> {[members <mslist 1-32> | all]}
[configuration_to_tftp | log_to_tftp] <ipaddr> <path_filename>
{[members <mslist> | all]}
Each command is listed, in detail, in the following sections.
enable sim
Purpose
Syntax
Description
Used to enable Single IP Management (SIM) on the Switch enable sim
This command will enable SIM globally on the Switch. SIM features and functions will not function properly unless this function is enabled.
Parameters None.
Example usage:
To enable SIM on the Switch:
228
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#enable sim
Command: enable sim
Success.
DGS-3400:4#
disable sim
Purpose
Syntax
Used to disable Single IP Management (SIM) on the Switch disable sim
Description This command will disable SIM globally on the Switch.
Parameters None.
Example usage:
To disable SIM on the Switch:
DGS-3400:4#disable sim
Command: disable sim
Success.
DGS-3400:4#
show sim
Purpose
Syntax
Description
Parameters
Used to view the current information regarding the SIM group on the Switch. show sim {[candidates {<candidate_id 1-100>} | members {<member_id 1-32>}
| group {commander_mac <macaddr>}] | neighbor]}
This command will display the current information regarding the SIM group on the
Switch, including the following:
SIM Version - Displays the current Single IP Management version on the Switch.
Firmware Version - Displays the current Firmware version on the Switch.
Device Name - Displays the user-defined device name on the Switch.
MAC Address - Displays the MAC Address of the Switch.
Capabilities – Displays the type of switch, be it Layer 2 (L2) or Layer 3 (L3).
Platform – Switch Description including name and model number.
SIM State –Displays the current Single IP Management State of the Switch, whether it be enabled or disabled.
Role State – Displays the current role the Switch is taking, including Commander,
Member or Candidate. A Stand-alone switch will always have the commander role.
Discovery Interval - Time in seconds the Switch will send discovery packets out over the network.
Hold time – Displays the time in seconds the Switch will hold discovery results before dropping it or utilizing it. candidates <candidate_id 1-100> - Entering this parameter will display information concerning candidates of the SIM group. To view a specific candidate, include that candidate’s ID number, listed from 1 to 32. members <member_id 1-32> - Entering this parameter will display information concerning members of the SIM group. To view a specific member, include that member’s id number, listed from 1 to 32. group {commander_mac <macaddr>} - Entering this parameter will display
229
show sim
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual information concerning the SIM group. To view a specific group, include the commander’s MAC address of the group. neighbor – Entering this parameter will display neighboring devices of the Switch. A
SIM neighbor is defined as a switch that is physically connected to the Switch but is not part of the SIM group. This screen will produce the following results:
Port – Displays the physical port number of the commander switch where the uplink to the neighbor switch is located.
MAC Address – Displays the MAC Address of the neighbor switch.
Role – Displays the role(CS, CaS, MS) of the neighbor switch.
Example usage:
To show the SIM information in detail:
DGS-3400:4#show sim
Command: show sim
SIM Version : VER-1.61
Firmware Version : 1.20.B15
Device Name :
MAC Address : 00-10-20-33-45-00
Capabilities : L2
Platform : DGS-3400 L2 Switch
SIM State : Disabled
Role State : Candidate
Discovery Interval : 30 sec
Holdtime : 100 sec
DGS-3400:4#
To show the candidate information in summary, if the candidate ID is specified:
DGS-3400:4#show sim candidates 1-2
Command: show sim candidates 1-2
ID MAC Address Platform / Hold Firmware Device Name
Capability Time Version
--- ----------------- ------------------------ ----- --------- ----------------
1 00-01-02-03-04-00 DGS-3400 L2 Switch 40 1.20-B15 The Man
2 00-55-55-00-55-00 DGS-3400 L2 Switch 140 1.20-B15 default master
Total Entries: 2
DGS-3400:4#
To show the member information in summary, if the member ID is specified:
DGS-3400:4#show sim member 1-2
Command: show sim member 1-2
ID MAC Address Platform / Hold Firmware Device Name
Capability Time Version
--- ----------------- ------------------------ ---- --------- ----------------
1 00-01-02-03-04-00 DGS-3400 L2 Switch 40 1.20-B15 The Man
2 00-55-55-00-55-00 DGS-3400 L2 Switch 140 1.20-B15 default master
Total Entries: 2
DGS-3400:4#
230
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To show other groups information in summary, if group is specified:
DGS-3400:4#show sim group
Command: show sim group
SIM Group Name : default
ID MAC Address Platform / Hold Firmware Device Name
Capability Time Version
--- ----------------- ------------------------ ----- --------- ----------------
*1 00-01-02-03-04-00 DGS-3400 L2 Switch 40 1.20-B15 Trinity
2 00-55-55-00-55-00 DGS-3400 L2 Switch 140 1.20-B15 default master
SIM Group Name : SIM2
ID MAC Address Platform / Hold Firmware Device Name
Capability Time Version
--- ----------------- ----------------------- ------ --------- ----------------
*1 00-01-02-03-04-00 DGS-3400 L2 Switch 40 1.20-B15 Neo
2 00-55-55-00-55-00 DGS-3400 L2 Switch 140 1.20-B15 default master
‘*’ means commander switch.
DGS-3400:4#
Example usage:
To view SIM neighbors:
DGS-3400:4#show sim neighbor
Command: show sim neighbor
Neighbor Info Table
Port MAC Address Role
------ ------------------ ---------
23 00-35-26-00-11-99 Commander
23 00-35-26-00-11-91 Member
24 00-35-26-00-11-90 Candidate
Total Entries: 3
DGS-3400:4#
reconfig
Purpose
Syntax
Description
Parameters
Used to connect to a member switch, through the commander switch, using telnet. reconfig {member_id <value 1-32 | exit}
This command is used to reconnect to a member switch using telnet.
member_id <value 1-32> - Select the ID number of the member switch the user desires to configure. exit – This command is used to exit from managing the member switch and will return to managing the commander switch.
Example usage:
To connect to the MS, with member ID 2, through the CS, using the command line interface:
231
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#reconfig member_id 2
Command: reconfig member_id 2
DGS-3400:4#
Login:
config sim_group
Purpose
Syntax
Description
Parameters
Used to add candidates and delete members from the SIM group. config sim_group [add <candidate_id 1-100> {<password>} | delete <member_id 1-32>]
This command is used to add candidates and delete members from the SIM group by ID number. add <candidate_id 1-100> <password> - Use this parameter to change a Candidate Switch (CaS) to a Member Switch (MS) of a
SIM group. The CaS may be defined by its ID number and a password (if necessary). delete <member_id 1-32> - Use this parameter to delete a member switch of a SIM group. The member switch should be defined by ID number.
Example usage:
To add a member:
DGS-3400:4#config sim_group add 2
Command: config sim_group add 2
Please wait for ACK!!!
SIM Config Success !!!
Success.
DGS-3400:4#
To delete a member:
DGS-3400:4#config sim_group delete 1
Command: config sim_group delete 1
Please wait for ACK!!!
SIM Config Success!!!
Success.
DGS-3400:4#
232
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config sim
Purpose
Syntax
Description
Parameters
Used to configure role parameters for the SIM protocol on the Switch. config sim [[commander {group_name <groupname 64> | candidate] | dp_interval <sec 30-90> | hold_time <sec 100-255>]
This command is used to configure parameters of switches of the SIM. commander – Use this parameter to configure the commander switch(CS) for the following parameters: group_name <groupname 64> - Used to update the name of the group.
Enter an alphanumeric string of up to 64 characters to rename the SIM group. dp_interval <30-90> – The user may set the discovery protocol interval, in seconds that the Switch will send out discovery packets. Returning information to the CS will include information about other switches connected to it. (Ex. MS, CaS). The user may set the dp_interval from 30 to
90 seconds. hold time <sec 100-255> – Using this parameter, the user may set the time, in seconds, the CS will hold information sent to it from other switches, utilizing the discovery interval protocol. The user may set the hold time from
100 to 255 seconds. candidate – Used to change the role of a CS (commander) to a CaS (candidate). dp_interval <30-90> – The user may set the discovery protocol interval, in seconds that the Switch will send out discovery packets. Returning information to the CS will include information about other switches connected to it. (Ex. MS, CaS). The user may set the dp_interval from 30 to
90 seconds. hold time <100-255> – Using this parameter, the user may set the time, in seconds, the Switch will hold information sent to it from other switches, utilizing the discovery interval protocol. The user may set the hold time from
100 to 300 seconds.
Example usage:
To change the time interval of the discovery protocol:
DGS-3400:4# config sim commander
Command: config sim commander
Success.
DGS-3400:4#
To change the hold time of the discovery protocol:
DGS-3400:4# config sim hold_time 120
Command: config sim hold_time 120
Success.
DGS-3400:4#
233
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To transfer the CS (commander) to be a CaS (candidate):
DGS-3400:4# config sim candidate
Command: config sim candidate
Success.
DGS-3400:4#
To transfer the Switch to be a CS:
DGS-3400:4# config sim commander
Command: config sim commander
Success.
DGS-3400:4#
To update the name of a group:
DGS-3400:4# config sim commander group_name Trinity
Command: config sim commander group_name Trinity
Success.
DGS-3400:4#
download sim_ms
Purpose
Syntax
Used to download firmware or configuration file to an indicated device. download sim [firmware_from_tftp | configuration_from_tftp]
<ipaddr> <path_filename>{[ members <mslist 1-32> | all]}
Description
Parameters
Restrictions
This command will download a firmware file or configuration file to a specified device from a TFTP server. firmware_from_tftp – Specify this parameter if the user wishes to download firmware to members of a SIM group. configuration_from_tftp - Specify this parameter if the user wishes to download a switch configuration to members of a SIM group.
<ipaddr> – Enter the IP address of the TFTP server.
<path_filename> – Enter the path and the filename of the firmware or switch on the TFTP server. members – Enter this parameter to specify the members the user prefers to download firmware or switch configuation files to. The user may specify a member or members by adding one of the following:
<mslist 1-32> - Enter a value, or values to specify which members of the SIM group will receive the firmware or switch configuration. all – Add this parameter to specify all members of the SIM group will receive the firmware or switch configuration.
Example usage:
To download firmware:
234
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# download sim_ms firmware_from_tftp 10.53.13.94 c:/des3828.had all
Command: download sim_ms firmware_from_tftp 10.53.13.94 c:/des3828.had all
This device is updating firmware. Please wait...
Download Status :
ID MAC Address Result
--- ----------------- -------------
1 00-01-02-03-04-00 Success
2 00-07-06-05-04-03 Success
3 00-07-06-05-04-03 Success
DGS-3400:4#
To download configuration files:
DGS-3400:4# download sim configuration_from_tftp 10.53.13.94 c:/des3828.txt all
Command: download sim configuration_from_tftp 10.53.13.94 c:/des3828.txt all
This device is updating configuation. Please wait...
Download Status :
ID MAC Address Result
--- ----------------- ----------------
1 00-01-02-03-04-00 Success
2 00-07-06-05-04-03 Success
3 00-07-06-05-04-03 Success
DGS-3400:4#
upload sim_ms
Purpose
Syntax
Description
Parameters
User to upload a configuration file to a TFTP server froma specified member of a SIM group. upload sim_ms [configuration_to_tftp | log_to_tftp] <ipaddr>
<path_filename> { [members <mslist> | all]}
This command will upload a configuration file to a TFTP server from a specified member of a SIM group. configuration_to_tftp - Specify this parameter if the user wishes to upload a switch configuration to members of a SIM group. log_to_tftp - Specify this parameter if the user wishes to upload a switch log to members of a SIM group.
<ipaddr> - Enter the IP address of the TFTP server the user wishes to upload a configuration file to.
<path_filename> – Enter a user-defined path and file name on the
TFTP server the user wishes to upload configuration files to. members – Enter this parameter to specify the members the user prefers to upload switch configuation or log files to. The user may specify a member or members by adding one of the following:
<mslist> - Enter a value, or values to specify which members of the SIM group will upload the switch configuration or log files. all – Add this parameter to specify all members of the SIM group will upload the switch configuration or log files.
Example usage:
235
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To upload configuration files to a TFTP server:
DGS-3400:4# upload sim_ms configuration 10.55.47.1 D:\configuration.txt 1
Command: upload sim_ms configuration 10.55.47.1 D:\configuration.txt 1
Success.
DGS-3400:4#
236
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
35
C
OMMAND
H
ISTORY
L
IST
The switch history commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters
? config command_history
<value 1-40> show command_history
Each command is listed, in detail, in the following sections.
?
Purpose
Syntax
Description
Used to display all commands in the Command Line Interface
(CLI).
? {<command>}
This command will display all of the commands available through the Command Line Interface (CLI).
Parameters {<command>} – Entering the question mark with an appropriate command will list all the corresponding parameters for the specified command, along with a brief description of the commands function and similar commands having the same words in the command.
Restrictions None.
Example usage:
To display all of the commands in the CLI:
DGS-3400:4#?
..
? clear clear arptable clear counters clear fdb clear log clear port_security_entry port config 802.1p default_priority config 802.1p user_priority config 802.1x auth_mode config 802.1x auth_parameter ports config 802.1x auth_protocol config 802.1x capability ports config 802.1x init config 802.1x reauth config access_profile profile_id config account config admin local_enable config arp_aging time config arpentry config authen application
CTRL+C ESC q Quit SPACE n Next Page ENTER Next Entry a All
237
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
To display the parameters for a specific command:
DES-3400:4# config stp
Command:? config stp
Command: config stp
Usage: {maxage <value 6-40> | maxhops <value1-20> | hellotime <value 1-
10> | forwarddelay <value 4-30> | txholdcount <value 1-10> | fbpdu [enable | disable] | lbd [enable | disable] | lbd_recover_timer [0 | <value 60-1000000>]}
Description: Used to update the STP Global Configuration. config stp instance_id config stp mst_config_id config stp mst_ports config stp ports config stp priority config stp version
DES-3400:4#
config command_history
Purpose
Syntax
Description
Parameters
Used to configure the command history. config command_history <value 1-40>
This command is used to configure the command history.
<value 1-40> − The number of previously executed commands maintained in the buffer. Up to 40 of the latest executed commands may be viewed.
Example usage
To configure the command history:
DGS-3400:4#config command_history 20
Command: config command_history 20
Success.
DGS-3400:4#
show command_history
Purpose
Syntax
Used to display the command history. show command_history
Description This command will display the command history.
Parameters None.
Restrictions None.
Example usage
To display the command history:
238
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4#show command_history
Command: show command_history
?
? show show vlan show command history
DGS-3400:4#
239
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
36
M
ODIFY
B
ANNER AND
P
ROMPT
C
OMMANDS
Administrator level users can modify the login banner (greeting message) and command prompt by using the commands described below.
Command Parameters config greeting_message {default} config command_ prompt [<string 16> | username | default] show greeting_message
The Modify Banner and Prompt commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
config greeting _message
Purpose
Syntax
Description
Parameters
Used to configure the login banner (greeting message). config greeting _message {default}
Users can use this command to modify the login banner (greeting message). default – If the user enters default to the modify banner command, then the banner will be reset to the original factory banner.
To open the Banner Editor, click enter after typing the config greeting_message command. Type the information to be displayed on the banner by using the commands described on the Banner Editor:
Quit without save: Ctrl+C
Save and quit: Ctrl+W
Move cursor: Left/Right/Up/Down
Delete line: Ctrl+D
Erase all setting: Ctrl+X
Reload original setting: Ctrl+L administrator-level users can issue this command. Other restrictions include:
• If the “reset/reset config” command is executed, the modified banner will remain modified. However, the “reset system” command will reset the modified banner to the original factory banner.
• The capacity of the banner is 6*80. 6 Lines and 80 characters per line.
• Ctrl+W will only save the modified banner in the DRAM. You need to type “save” command to save it into FLASH.
• Only valid in threshold level.
Example usage:
To modify the banner to read “Good evening Mr. Bond.”:
240
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
DGS-3400:4# config greeting_message
Command: config greeting_message
Greeting Messages Editor
================================================================================
DGS-3400 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 1.20-B15
Copyright(C) 2004-2007 D-Link Corporation. All rights reserved.
================================================================================
<Function Key> <Control Key>
Ctrl+C Quit without save left/right/
Ctrl+W Save and quit up/down Move cursor
Ctrl+D Delete line
Ctrl+X Erase all setting
Ctrl+L Reload original setting
--------------------------------------------------------------------------------
show greeting_message
Purpose
Syntax
Description
Used to view the currently configured greeting message configured on the Switch. show greeting_message
This command is used to view the currently configured greeting message on the Switch.
Parameters None.
Restrictions None.
Example usage:
To view the currently configured greeting message:
DES-3400:4#show greeting_message
Command: show greeting_message
=========================================================================
DES-3400 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 2.00.B30
Copyright(C) 2004-2005 D-Link Corporation. All rights reserved.
=========================================================================
DES-3400:4#
241
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
config command prompt
Purpose
Syntax
Description
Used to Configure the command prompt. config command_prompt [<string 16> | username | default]
Administrator level users can use this command to change the command prompt.
Parameters string 16 - The command prompt can be changed by entering a new name of no more that 16 characters. username - The command prompt will be changed to the login username. default – The command prompt will reset to factory default command prompt. administrator-level users can issue this command. Other restrictions include:
• If the “reset/reset config” command is executed, the modified command prompt will remain modified. However, the “reset system” command will reset the command prompt to the original factory banner.
Example usage
To modify the command prompt to “AtYourService”:
DGS-3400:4#config command_prompt AtYourService
Command: config command_prompt AtYourService
Success.
AtYourService:4#
242
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
A
T
ECHNICAL
S
PECIFICATIONS
Sepecifications listed here apply to all Switches in the DGS-3400 Series except where otherwise noted.
General
Standards IEEE 802.3 10BASE-T Ethernet
IEEE 802.3u 100BASE-TX Fast Ethernet
IEEE 802.3ab 1000BASE-T Gigabit Ethernet
IEEE 802.3z 1000BASE-T (SFP “Mini GBIC”)
IEEE 802.3ae (10G modules)
IEEE 802.1D Spanning Tree
IEEE 802.1W Rapid Spanning Tree
IEEE 802.1 P/Q VLAN
IEEE 802.1p Priority Queues
IEEE 802.3ad Link Aggregation Control
IEEE 802.3x Full-duplex Flow Control
IEEE 802.3 Nway auto-negotiation
CSMA/CD Protocols
Data Transfer Rates:
Ethernet
Fast Ethernet
Gigabit Ethernet
Fiber Optic
Half-duplex Full-duplex
10 Mbps 20Mbps
100Mbps 200Mbps n/a 2000Mbps
SFP (Mini GBIC) Support
IEEE 802.3z 1000BASE-LX (DEM-310GT transceiver)
IEEE 802.3z 1000BASE-SX (DEM-311GT transceiver)
IEEE 802.3z 1000BASE-LH (DEM-314GT transceiver)
IEEE 802.3z 1000BASE-ZX (DEM-315GT transceiver)
Topology
Network Cables
Star
Cat.5 Enhanced for 1000BASE-T
UTP Cat.5, Cat. 5 Enhanced for 100BASE-TX
UTP Cat.3, 4, 5 for 10BASE-T
EIA/TIA-568 100-ohm screened twisted-pair (STP)(100m)
243
xStack DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
Physical and Environmental
Internal Power Supply
Redundant Power Supply
Power Consumption
AC Input: 100 - 240 VAC, 50-60 Hz
DC Fans:
Operating Temperature
Storage Temperature
Humidity
Dimensions
Weight
EMI:
Safety:
DGS-3400 Series Switch
DGS-3426 (70.8 Watts)
DGS-3427 (71.6 Watts)
DGS-3450 (131.34 Watts)
12 V fan
0 - 40°C
-40 - 70°C
5 - 95% non-condensing
441mm x 389mm x 44mm
DGS-3400 Series Switch
DGS-3426 (5.42 kg)
DGS-3427 (5.51 kg)
DGS-3450 (5.74 kg)
CE class A, FCC Class A
CSA International, CB Report
Module Inserts
DEM-410CX (0.015 Watts)
DEM-410X (6.16 Watts)
Module Inserts
DEM-410CX (0.16 kg)
DEM-410X (0.18 kg)
Transmission Method
Packet Buffer
Packet Filtering / Forwarding Rate
MAC Address Learning
Priority Queues
Forwarding Table Age Time
Performance
Store-and-forward
0.75 MB per device
Full-wire speed for all connections.
1,488,095 pps per port (for 1000Mbps)
Automatic update. Supports 8K MAC address.
8 Priority Queues per port.
Max age: 10-1000000 seconds. Default = 300.
244
Download
Annonce