Reproduction in any manner whatsoever without the written permission of D-Link Computer Corporation is
strictly forbidden.
Trademarks used in this text: D-Link and the D-Link logo are trademarks of D-Link Computer Corporation;
Microsoft and Windows are registered trademarks of Microsoft Corporation.
Other trademarks and trade names may be used in this document to refer to either the entities claiming the
marks and names or their products. D-Link Computer Corporation disclaims any proprietary interest in
trademarks and trade names other than its own.
FCC Warning
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to Part
15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference
when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate
radio frequency energy and, if not installed and used in accordance with this user’s guide, may cause harmful
interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful
interference in which case the user will be required to correct the interference at his own expense.
CE Mark Warning
This is a Class A product. In a domestic environment, this product may cause radio interference in which case
the user may be required to take adequate measures.
Warnung!
Dies ist ein Produkt der Klasse A. Im Wohnbereich kann dieses Produkt Funkstoerungen verursachen. In
diesem Fall kann vom Benutzer verlangt werden, angemessene Massnahmen zu ergreifen.
Precaución!
Este es un producto de Clase A. En un entorno doméstico, puede causar interferencias de radio, en cuyo case,
puede requerirse al usuario para que adopte las medidas adecuadas.
Attention!
Ceci est un produit de classe A. Dans un environnement domestique, ce produit pourrait causer des
interférences radio, auquel cas l`utilisateur devrait prendre les mesures adéquates.
Attenzione!
Il presente prodotto appartiene alla classe A. Se utilizzato in ambiente domestico il prodotto può causare
interferenze radio, nel cui caso è possibile che l`utente debba assumere provvedimenti adeguati.
VCCI Warning
March 2007
i
Page 3
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
USING THE CONSOLE CLI.....................................................................................................................................4
show account....................................................................................................................................................................... 12
show session........................................................................................................................................................................ 13
show switch......................................................................................................................................................................... 14
show serial_port .................................................................................................................................................................. 14
enable web .......................................................................................................................................................................... 17
save ..................................................................................................................................................................................... 18
show cpu utilization ............................................................................................................................................................ 20
show configuration.............................................................................................................................................................. 21
show jumbo_frame.............................................................................................................................................................. 22
show ports ........................................................................................................................................................................... 25
show ports description ........................................................................................................................................................ 26
show snmp user................................................................................................................................................................... 30
show snmp view.................................................................................................................................................................. 32
create snmp community ...................................................................................................................................................... 33
delete snmp community ...................................................................................................................................................... 33
show snmp community ....................................................................................................................................................... 34
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
show snmp engineID........................................................................................................................................................... 35
create snmp group ............................................................................................................................................................... 35
delete snmp group ............................................................................................................................................................... 37
show snmp groups............................................................................................................................................................... 37
show snmp host................................................................................................................................................................... 40
show trusted_host................................................................................................................................................................ 41
show snmp traps.................................................................................................................................................................. 44
show packet ports................................................................................................................................................................ 48
show error ports .................................................................................................................................................................. 49
show utilization................................................................................................................................................................... 50
show log.............................................................................................................................................................................. 51
show syslog......................................................................................................................................................................... 53
show syslog host ................................................................................................................................................................. 58
SPANNING TREE COMMANDS............................................................................................................................59
show stp .............................................................................................................................................................................. 63
show stp ports ..................................................................................................................................................................... 64
show stp instance_id ........................................................................................................................................................... 64
show stp mst_config_id ...................................................................................................................................................... 65
show multicast_fdb ............................................................................................................................................................. 73
show fdb.............................................................................................................................................................................. 74
BROADCAST STORM CONTROL COMMANDS.................................................................................................76
config traffic control ........................................................................................................................................................... 76
show traffic control ............................................................................................................................................................. 77
show scheduling.................................................................................................................................................................. 79
show 802.1p user_priority................................................................................................................................................... 80
show 802.1p default_priority .............................................................................................................................................. 82
show scheduling_mechanism.............................................................................................................................................. 83
show rate_limit.................................................................................................................................................................... 84
PORT MIRRORING COMMANDS.........................................................................................................................86
show mirror......................................................................................................................................................................... 87
show vlan ............................................................................................................................................................................ 91
show gvrp............................................................................................................................................................................ 92
LINK AGGREGATION COMMANDS ....................................................................................................................93
show link_aggregation ........................................................................................................................................................ 95
BASIC IP COMMANDS..........................................................................................................................................96
show ipif.............................................................................................................................................................................. 97
show igmp_snooping ........................................................................................................................................................ 100
show igmp_snooping group .............................................................................................................................................. 101
show igmp_snooping forwarding...................................................................................................................................... 101
show router_port ............................................................................................................................................................... 102
show 802.1x auth_state ..................................................................................................................................................... 104
show 802.1x auth_configuration....................................................................................................................................... 105
show radius ....................................................................................................................................................................... 110
show guest_vlan................................................................................................................................................................ 112
PORT SECURITY COMMANDS..........................................................................................................................113
show port_security ............................................................................................................................................................ 114
TIME AND SNTP COMMANDS...........................................................................................................................115
show sntp .......................................................................................................................................................................... 116
config time date................................................................................................................................................................. 117
show time.......................................................................................................................................................................... 120
show iproute...................................................................................................................................................................... 122
show arpentry.................................................................................................................................................................... 125
config arp_aging time ....................................................................................................................................................... 125
v
Page 7
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
show command_history .................................................................................................................................................... 128
dir ...................................................................................................................................................................................... 128
show ssh authmode ........................................................................................................................................................... 131
show ssh server ................................................................................................................................................................. 132
show ssh algorithm............................................................................................................................................................ 133
show ssh crypto................................................................................................................................................................. 134
show ssl............................................................................................................................................................................. 137
show ssl cachetimeout....................................................................................................................................................... 138
show authen_login ............................................................................................................................................................ 145
show authen_enable .......................................................................................................................................................... 148
show authen application.................................................................................................................................................... 149
show authen server_host ................................................................................................................................................... 152
show lacp .......................................................................................................................................................................... 155
vi
Page 8
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
show stack_information .................................................................................................................................................... 157
show poe ........................................................................................................................................................................... 160
ACCESS CONTROL LIST COMMANDS ............................................................................................................162
show access_profile .......................................................................................................................................................... 169
show traffic_segmentation ................................................................................................................................................ 171
The DGS-3100 is a member of the D-Link DGS-3100 switch family. The DGS 3100 product range consists of 24
/ 48 -port 10/100/1000Base-T PoE / NonPoE L2 Stackable Management Switches with 4 Combo SFPs.
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:
• 9600 bps
• No parity
• 8 data bits
• 1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a serial port
configured as above is then connected to the Switch’s serial port via an RS-232 DB-9 cable.
With the serial port properly connected to a management computer, the following screen should be visible. If this
screen does not appear, try pressing Ctrl+r to refresh the console screen.
[
Figure 1–1. Initial CLI screen
The initial username is admin (lower case). Press the Enter key twice to display the CLI input cursor. 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
Page 10
DGS-3100 Gigabit Ethernet Switch Manual
Figure 1–2. Boot Screen
The Switch’s MAC address can also be found in the Web management program on the Device Information
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 vlan default 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 and subnet mask which can then
be used to connect a management sd management agent.
Switch can be assigned an IP address
tation to the Switch’s Telnet or Web-base
Figure 1–3. Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.53.13.26 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
2 3
Page 11
configured and managed via Telnet, SNMP MIB browser and the CLI or via the Web-based manageagent
using the above IP address to connect to the Switch.
NOTE: The DGS-3100 series of switches have the pability to be configd for an IP addre
of 0.0.0.0, or, in essence, have no IP address. Th
functions of the Switch. When the IP address is s
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.
cauress
is function maybe used to disable Layer 3
et to 0.0.0.0 (invalid IP address), the Switch can
ment
Page 12
DGS-3100 Gigabit Ethernet Switch Manual
2
USING THE CONSOLE 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 (for example, the HyperTerminal program included with the Windows
operating system) using an RS-232C serial cable.
• VT-100 compatible
• 9600 bps
• 8 data bits
• No parity
• One stop bit
• No flow control
Users may 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-10
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:
Your terminal parameters will need to be set to:
0 compatible terminal mode) to access and control the Switch.
Figure 2–1. Initial Console Screen after Logging In
4
Page 13
Commands are entered at the command prompt, DGS3100#.
There are a number of helpful featuresommand will display a list of all of the included in the CLI. Entering the ? c
top-level commands.
Figure 2–2. The ? Command
When entering a commarompt: command: config nd without its required parameters, the CLI displays the p
account message and the options listed below.
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 to enter the <username> with the message, command: config account. 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, users can see all of the next possible subcommands, in sequential order, by pressing the ? 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
Page 14
DGS-3100 Gigabit Ethernet Switch Manual
Figure
2–4. Using the Up Arrow to Re-enter a Command
In the above rameter <username>,
the CLI returned the command: l key was pressed to re-enter
the previouconfig a be entered
and the conommand
All commandfunction in this way. In additithe help prompts are the same as
presented in this manual angle lue or character string. The < > can also
indicate a Wmber fo character allowed.
a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the
If
Available c
example, the command config account was entered without the required pa
config account prompt. The up arrow cursor contro
s command (
fig account c
s in the CLI
ccount) at the command prompt. Now the appropriate username can
re-executed.
on, the syntax of
brackets < > indicate a numerical va
ord with nu
ommands: prompt.
Figure 2–5. Available Commands
The top-level ands consist of cocommands require one or
more param narrow the tt? or config what? Where the
what? is the
For example, entering the showmeters, the CLI will then display all of the
possible next para
comm
eters to
next parameter.
meters.
mmands such as show or config. Most of these
op-level command. This is equivalent to show wha
command with no additional para
6
Page 15
Figure 2–6. Next possible completions: Show Command
In the abovemeters for the show command are displayed. At the next
command w was used to re-enter the show command, followed by the
example, all of the possible next para
prompt in the example, the up arro
account parameter. The CLI then displays the user accounts configured on the Switch.
7
Page 16
DGS-3100 Gigabit Ethernet Switch Manual
3
COMMAND SYNTAX
The following symbols are used to describe how command entries are made and values and arguments are
specified in this manual. The online help contained in the CLI and available through the console interface uses
the same syntax.
NOTE: All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted
function that changes text case.
<angle brackets>
Purpose Encloses a variable or value that must be specified.
Syntax
Description In the above syntax example, users must supply a username in the
Example
Command
create account [admin | user] <username 15>
<username> space. Do not type the angle brackets.
create account admin newadmin1
[square brackets]
Purpose Encloses a required value or set of required arguments. One value
or argument can be specified.
Syntax
Description In the above syntax example, you must specify either an admin or a
Example
Command
create account [admin | user] <username 15>
user level account to be created. Do not type the square brackets.
create account user newuser1
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of
which must be entered.
Syntax
Description In the above syntax example, users must specify either admin, or
Example
Command
All commands are case-sensitive. Be sure to disable Caps Lock or any other unwanted function that changes
text case.
create account [admin | user] <username 15>
user. Do not type the vertical bar.
create account user newuser1
8
Page 17
{braces}
Purpose Encloses an optional value or set of optional arguments.
Syntax reset {[config | system]}
Description In the above syntax example, users have the option to specify config
or system. It is not ne
however the effect of the system
value is specified. Therefore, with this example there are three
possible outcomes of performing a
chapter, Basic Com
command.
Example reset config
command
cessary to specify either optional value,
reset is dependent on which, if any,
system reset. See the following
mands for more details about the reset
Line Editing Key Usage
Delete Deletes the character under the cursor and then shifts the
remaining characters in the line to the left.
Backspace Deletes the character to the left of the cursor and then shifts the
remaining characters in the line to the left.
Insert or Ctrl+R Toggle on and off. When toggled on, inserts text and shifts previous
text to the right.
Left Arrow Moves the cursor to the left.
Right Arrow Moves the cursor to the right.
Up Arrow 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
session. Us
through the command history list.
Down Arrow The down arrow will display the next command in the command
history entered in the current session. This displays each command
sequentially as it was entered. Use the up arrow to review previous
commands.
Tab Shifts the cursor to the next field to the left.
e the down arrow to progress sequentially forward
the command history for the current
Multiple Pagntrol Keys e Display Co
Space Displays the next page.
CTRL+c Stops the display of remaining pages when multiple pages are to be
displayed.
ESC Stops the display of remaining pages when multiple pages are to be
displayed.
n Displays the next page.
p Displays the previous page.
9
Page 18
DGS-3100 Gigabit Ethernet Switch Manual
q s the display of remaining pages when multiple pages are to be
Stop
disp
layed.
r Rey displayed. freshes the pages currentl
a Displays the remaining pages without pausing between pages.
Enter Displays the next line or table entry.
10
Page 19
4
SWITCH COMMANDS BASIC
The Basic Snds in mand Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Parameters admin− creates an administrator account.
Restrictions Only Administrator-level users can issue this command.
Example usage:
To create an administrator-level user account with the username “dlink”:
create account [admin | user] <username 15>
The create account command creates an administrator or user
account that consists of a username and an optional password. Up
to 31 accounts can be created. The system prompts for the
account’s password, which may be between 0 and 15 characters.
user −
<userna
15 characters.
DGS3100# create account admin dlink
Enter a case-sensitive password:****
Enter the password again for confirm
Success.
DGS3100#
creates a user account.
me 1-15>− The account username may be between 1 and
ation:****
config account
Purpose ccount. To change the password for an existing user a
Syntax
Description mmand changes the password for a user
Parameterssername. <username 1-15>− the account u
Restrictions ly Administrator-level users can issue this command. On
Example usage:
To configure the user password of “dlink” account:
config account <usern
The config account co
account that has been c
The system prompts for
between 0 and 15 chara
DGS3100# co
Enter a case-s
Enter the**
Succes
DGS3#
100
nfig account dlink
ensitive new password:****
new password again for confirmation:**
s.
ame 15>
reated using the create account command.
the account’s new password, which may be
cters.
show account
Purpose n about all user accounts on the Switch. To display informatio
12
Page 21
Syntax
Description ount command displays all account usernames and
Parameters None.
Restrictions None.
Example usage:
To display the accounts that have been created:
show account
The show acc
their access
can exist on the
DGS3100# show account
Username
------------ Dlin
adm
Total Ent
DGS3
----------- -------------------k User
in Admin
ries: 2
100
#
levels created on the Switch. Up to 31 user accounts
Access Level
Switch at one time.
show session
Purpose To display information about currently logged-in users.
Syntax
Description and displays a list of all the users that are
Parameters None.
Restrictions None.
Example usage:
To display the way
show session
The show session comm
logged-in at the time the command is issued. The information
includes the session ID (0 for the first logge
logged-in user, etc.), the Protocol used to connect to the Switch, the
user’s IP address, the user’s access Level (1=user, 15=admin), and
the account name on the S
auto_logout - The amount of time the Switch’s serial port can be idle
before automatically logging out. The possible v
never− There is no time limit on the length of
be open with no us
2_minutes− The console will log out the current user if there is no
r input for 2 minutes.
use
5_minutes− The console will log out the current user if there is no
er input for 5 minutes.
us
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.
er input.
15_minutes]}
alues are:
time the console can
DGS3100
Succes
DGS3100#
# config serial_port baud_rate 9600
s.
enable clipaging
Purpose To pause the scrolling of the console screen after each page when a
sh
ow command displays more than one page.
Syntax
Description The enable clipaging command pauses the scrolling of the console
enable clipaging
screen at the end of each page when issuing a command which
15
Page 24
DGS-3100 Gigabit Ethernet Switch Manual
would display more than one screen of information. The default
setting is enabled.
Parameters None.
Restrictions Only dministrator-level users can issue this command. a
Example usa
To enable pausing of the scree
ge:
n display when the show command output reaches the end of the page:
100e clipaging
DGS3# enabl
Succes
DGS3100#
s.
disable clipaging
Purpose disable the pausing of the console screen scrolling at the end of
Syntax
Description The disable clipaging command disables the pausing of the
Parameters None.
To
each page when the command displays more than one screen of
information.
disable clipaging
console screen at the end of each page when issuing a command
which would display more than one screen of information. This
causes the console screen to rapidly scroll through several pages.
Example usa
To dif the scre:
Example usa
To delete
Restrictions Only administrator-level users can issue this command.
ge:
sable pausing oen display when a command output reaches the end of the page
DGS3100# disable clipaging
Success
GS3100#
D
.
delete account
Purpose To delete an existing user account.
Syntax
Description The delete account command deletes a user account that has been
Parameters
Restrictions
ge:
the user account “System”:
delete account <username 15>
created using the create account command.
<username 1-15>− the account username.
Only Administrator-level users can issue this command.
DGS3100# delete account System
16
Page 25
A
re you sure to delete the last administrator account?(y/n)
Success.
DGS3100#
enable web
Purpose To enable the HTTP-based management software on the Switch.
Syntax
Description The enable web command enables the Web-based management
Parameters <tcp_port_number 1-65535>− The TCP port number. TCP ports are
Restrictions Only administrator-level users can issue this command.
Example usage:
To enable HTTP afigure the TCP port number to listen for Telnet requests:
disable web
Purpose P-based management software on the Switch. To disable the HTT
nd con
DGS3100# e
Success.
DGS3100#
enable web <tcp_port_number 1-65535>
software on the Switch. The user can specify the T
the Swi
numbered between 1 and 65535. The “well-known” port for the Webbased management software is 80.
tch will use to listen for Telnet requests.
nable web 80
CP port number
Syntax
Description The disable web command disables the Web-based management
Parameters None.
Restrictions Only inistrator-level users can issue this command. adm
Example usage:
To disable HTTP-based management software on the Switch:
disable web
software on the Switch.
DGS3100# disable web
Success.
DGS3#
100
17
Page 26
DGS-3100 Gigabit Ethernet Switch Manual
save
Purpose To save changes in the Switch’s configuration to non-volatile RAM.
Exampl
Syntax
Description The save command saves the current switch configuration to non-
Parameters None.
Restrictions Only administrator-level users can issue this command.
e usage:
To save the SwitchM:
’s current configuration to non-volatile RA
DGS3100# save
Saving all configurations to NV-RAM... Done.
DGS3100#
save
volatile RAM. The saved switch configuration will be loaded into the
Switch’s memory each time the Switch is restarted.
reboot
Purpose To restart the Switch. If the Switch is a member of a stack, it may be
rebooted individually, without affecting the other members of the
stack.
Syntax
Description The reboot command restarts the Switch.
Parametersox_id 1-6>− The unit’s current stack membership number. <b
Restrictions Only Administrator-level users can issue this command.
Example usage:
start the Switch unit 1: To re
reset
Purpose To reset the Switch to the factory default settings.
Syntax
Description The reset command restores the Switch’s configuration to the
Parameters None.
DGS3100
DGS3100
reboot <box_id 1-6>
# reboot 1
#
reset
default settings assigne
command through
membership number.
the CLI retains the unit’s current stack
d from the factory. Execution of the reset
Restrictions Only ministrator-level users can issue this command. ad
Example usage:
To restore all of theters to their default values: e Switch’s param
18
Page 27
DGS3100# reset
Are you sure to p
Success.
DGS3100
#
roceed with system reset?(y/n)
login
Purpose To log in a user to the Switch’s console.
Example usa
To ine:
Syntax
Description The login command initiates the login procedure. The user is
Parameters None.
Restrictions None.
ge:
itiate the login procedur
DGS
UserName:
login
prompted for
3100# login
the Username and Password.
logout
Purpose To log out a user from the Switch’s console.
Syntax
Description The logout command terminates the current user’s session on the
Logout
Switch’s console.
Example usa
To tee current user’
Parameters None.
Restrictions None.
ge:
rminate ths console session:
100
DGS3# logout
ping
Purpose To test the connectivity between network devices.
Syntax
Description The ping command sends Internet Control Message Protocol
ping <ipaddr> {times <v
(ICMP)
address will then “echo
confirm connectivity between the Switch and the remote device.
echo messages to a remote IP address. The remote IP
alue 1-255>} {timeout <sec 1-99>}
” or return the message. This is used to
19
Page 28
DGS-3100 Gigabit Ethernet Switch Manual
Parameters <ipaddr> - The IP address of the host.
times <value 1-255> - The number of individual ICMP echo
messages
Pinging an
target device an infinite number of times.
timeout <sec 1-99> -
response from the remo
specified. The default is 1 second.
Restrictions None.
to be sent. The maximum value is 255. The default is 0.
IP address without the times parameter will ping the
The time-out period while waiting for a
te device. A value of 1 to 99 seconds can be
Example usa
To piss 10.6.15e times:
ge:
ng the IP addre0.34 thre
DGS3100# ping 10.6.150.34 times 3
Pinging
6 bytes from 10.6.150.34: icmp_seq=1. time=0 ms
5
56 bytes fr
5
6 bytes from 10.6.150.34: icmp_seq=3. time=0 ms
----10.6.150.34 PING Statistics---3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) m
Succes
DGS3#
10.6.150.34 with 56 bytes of data:
om 10.6.150.34: icmp_seq=2. time=0 ms
s.
100
in/avg/max = 0/0/0
show cpu utilization
Purpose tion. To measure CPU utiliza
Syntax
Description lization command displays information about
Parameters None.
Restrictions None.
Example usage:
To show CPU utilization information:
show cpu utilization
The show cpu uti
CPU utilization.
DGS3100# show cpu utilization
CPU utilization service is on.
CPU utili
-------------five seco
DGS3100
zation
-------nds:2% ;one minute:1% ;five minutes:1%
#
20
Page 29
show configuration
Purpose To display the current or saved version of the configuration settings
of the Sw
itch.
Syntax
Description The show configuration command displays the current or saved
Parameters running – Displays the current configuration.
Restrictions None.
Example usage:
To show current configuration information:
DGS3100# show configuration running
config snmp system_name DGS-3100
create vlan 2 tag 2
enable 802.1x
config 802.1x auth_protocol radius
config radius add 10.6.41.226 key 123456 auth_port 1812 acct_port 1813 priori
ty first
config ports (1-2,4-7) enable_reauth enable
config ports 3 port_control auto enable_reauth enable
config 802.1x auth_mode ports (1-7) mac_based
config guest_vlan 2 state enable
config guest_vlan ports 3
config ipif system dhcp
DGS3100#
show configuration [running | startup]
rsion of the configuration settings of the Switch.
ve
startup – Displays the configuration saved in NV-RAM.
enable jumbo_frame
Purpose To enable jumbo frames on the device.
Syntax
Description The enable jumbo_frame command enables jumbo frames on the
Parameters None.
Restrictions None.
Example usage:
To enable jumbo frames:
enable jumbo_frame
device.
DGS3100# enable jumbo_frame
Success.
DGS3100#
21
Page 30
DGS-3100 Gigabit Ethernet Switch Manual
disable jumbo_frame
Purpose To disable jumbo frames on the device.
Syntax
Description The disable jumbo_frame command disables jumbo frames on the
Parameters None.
Restrictions None.
Ex
ample usage:
To disable jumbo_fram
show jumbo_frame
Purpose To display the jumbo frame configuration.
Syntax
Description e The show jumbo_frame command displays the jumbo fram
disable jumbo_frame
device.
es:
DGble jumbo_frame
S3100# disa
c
Su cess.
S3100#
G
D
show jumbo_frame
configuration.
Example usa
To show the jumbo_frames co
Parameters None.
Restrictions None.
ge:
nfiguration status on the device:
DGS3100
Jumbo framer
Jumbo frames w
DGS3100#
# show jumbo_frame
s a e disabled.
ill be enabled after save and restart.
locate
Purpose To enable the user to locate the device he is working on.
Syntax
Description The cate command causes the seven segment display of the
locate
lo
currently active switch with Master ID to blink the lett
seconds.
er L for 20
22
Page 31
Parameters None.
Restrictions None.
Example usage:
To display the curren:
tly active switch
DGS3100# l
Success.
DGS3
ocate
100#
23
Page 32
DGS-3100 Gigabit Ethernet Switch Manual
5
MMANDS SWITCH PORT CO
The Switch nds in thpriate
parameters) in the following table.
Port commae Command Line Interface (CLI) are listed (along with the appro
Description The config ports command configures the Switch’s Ethernet port
settings
Parameters <portlist>− A port or range of ports to be configured.
all − Co
speed – Sets the speed of a por
of one of the following:
flow_control [e
flow_control [disable] – Disables flow control for the specified po
flow_control [auto] – Specifies auto-neg
specified ports.
learning [enable | disable]− Enables or disables the MAC address
learning on the specified range of p
state [enable | disable]− Enables or disables the specified range of
ports.
Restrictions Only administrator-level users can issue this command.
. Only the ports listed in the <portlist> will be affected.
nfigures all ports on the Switch.
t or range of ports, with the addition
•auto− Enables auto-negotiation for the specified range of
ports.
•[10 | 100 | 1000]− Configures the speed in Mbps for the
specified range of ports.
•[half | full]− Configures the specified range of ports as either
half-duplex.
full or
nable] – Enables flow control for the specified ports.
rts.
otiation of flow control for the
orts.
Example usage:
24
Page 33
To configure the speed of ports 1-3 to
show ports
Purpose To display the current configuration of a range of ports.
Syntax
Description The show ports command displays the current configuration of a
Parameters <portlist>− A port or range of ports whose settings are to be
Restrictions None.
Example usage:
To display the configuration of all ports on the Switch:
be 10 Mbps, full duplex, learning and state enabled:
DGS3100# config ports 1-3 speed 10_full learning enable s
Success.
DGS3100#
show ports {<portlist>}
port or range of ports.
displayed.
tate enable
DGS3100# show ports
Port Port Settings Connection Address
State Speed/Duplex/FlowCtrl Speed/Duplex/FlowCtrl Learning
----- ------------ ------------------------------ ------------------------ ------ ----------1:1 Enabled Auto/Disabled Link Down Enabled
1:2 Enabled Auto/Disabled Link Down Enabled
1:3 Enabled Auto/Disabled 100M/Full/Disabled Enabled
1:4 Enabled Auto/Disabled 100M/Full/Disabled Enabled
1:5 Enabled Auto/Disabled Link Down Enabled
1:6 Enabled Auto/Disabled Link Down Enabled
1:7 Enabled Auto/Disabled Link Down Enabled
1:8 Enabled Auto/Disabled Link Down Enabled
1:9 Enabled Auto/Disabled Link Down Enabled
1:10 Enabled Auto/Disabled Link Down Enabled
1:11 Enabled Auto/Disabled Link Down Enabled
1:12 Enabled Auto/Disabled Link Down Enabled
1:13 Enabled Auto/Disabled Link Down Enabled
1:14 Enabled Auto/Disabled Link Down Enabled
1:15 Enabled Auto/Disabled Link Down Enabled
1:16 Enabled Auto/Disabled Link Down Enabled
1:17 Enabled Auto/Disabled Link Down Enabled
1:18 Enabled Auto/Disabled Link Down Enabled
1:19 Enabled Auto/Disabled Link Down Enabled
DGS3100#
25
Page 34
DGS-3100 Gigabit Ethernet Switch Manual
config ports description
Purpose To add a description to an interface or ranges of interface.
Ex
ample usage:
To add a description to
Syntax
Description The config ports description command adds a description to an
Parameters <portlist>− A port or range of ports to add a description to.
Restrictions None.
DGrts description 1:1 "For testing purposes only"
Succes
DG
config pordescription <portlist> <s
interface or a range of interfaces.
<string 1-6
port 1:
S3100# config po
s.
S3100#
ts tring 1-64>
4> − Description content.
delete ports description
Purpose tion of an interface or a range of interfaces. To delete a descrip
Syntax
delete ports description <portlist>
Example usa
To delete the descrip of port 1:
Description The delete ports description
interface or a range of interfac
Parameters <portlist>− A port or range of ports to delete descriptions from.
Restrictions None.
ge:
tion
DGS3ts description 1:1
100# delete por
Suc
cess.
DG
S3100#
command deletes a description of an
es.
show portsiption descr
Purpose To display a description of an interface or a range of interfaces.
Syntax
Description The show ports description command displays a description of an
Parameters <portlist>− A port or range of ports whose descriptions are to be
show ports description {<portlist>}
interface or a range of interfaces.
displayed.
Restrictions None.
Example usage:
26
Page 35
To display the description of port 1:
DGS3100# show ports description 1:1
Port Description
--
----- ------ ----------------1:1 For testing purposes only
S3100#
DG
27
Page 36
DGS-3100 Gigabit Ethernet Switch Manual
6
NAGEMENT (SNMP)NETWORK MCAOMMANDS
The Network Management commands in the Commopriate
parameters) in the following table.
and Line Interface (CLI) are listed (along with the appr
Purpose s to limit which MIB objects an To assign views to community string
SNMP manager can access.
Example usa
To create
Syntax
Description The create snmp view command assigns views to community
Parameters <view_name 30>− A string of up to 30 alphanumeric characters that
Restrictions mand. Only administrator-level users can issue this com
ge:
an SNMP view:
DGS3100# create snmp v
uccess.
S
GS3100#
D
create snmp view <view_name 30>
excluded]
strings to limit which MIB objects an SNMP manager can access.
identifies the SNMP view to 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.
included− Includes this object in the list of objects that an SNMP
manager can access.
excluded− Excludes this object from the list of objects that an
SNMP manager can access.
iew dlinkview 1.3.6 view_type included
<oid> view_type [included |
delete snmp view
Purpose To remove an SNMP view entry previously created on the Switch.
Syntax
Description SNMP view The delete snmp view command removes an
Parameters ric characters that <view_name 30> − A string of up to 30 alphanume
delete snmp view <view_name 30> [all | oid]
previously created on the Switch.
identifies the SNMP view to be deleted.
31
Page 40
DGS-3100 Gigabit Ethernet Switch Manual
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
will be deleted from the Switch.
Restrictions Only administrator-level users can issue this command.
) that
Exampl
e usage:
To delete a previou
show snmp view
Purpose To display an SNMP view previously created on the Switch.
Syntax
Description an SNMP view previously The show snmp view command displays
Parameters <view_name 30>− A string of up to 30 alphanumeric characters that
Restrictions None.
Example usage:
To display SNMP view configuration:
sly configured SNMP view from the Switch:
GS3100# delete snmp view dlinkview all
D
uccess.
S
DGS3100#
show snmp view {<view_name 30>}
created on the Switch.
identifies the SNMP view to be displayed.
DGS3100# show snmp view
Vacm View Table Setting
View Name Subts ree 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
restricted
restricted
Community
CommunityView 1.3.6.1.6.3 Excluded
CommunityView 1.3.6.1.6.3.1 Included
Total Entries: 11
DGS3100
#
1.3.6.1.6.3.10.2.1 Included
1.3.6.1.6.3.11.2.1 Included
1.3.6.1.6.3.15.1.1 Included
View 1 Included
32
Page 41
create snmp community
Purpose To create an SNMP community string to define the relationship
between the SNMP manager and an SNMP agent.
Syntax
Description The create snmp community command creates an SNMP
community string and assigns a
community string. The commu
permit access to the agent on the S
following characteristics can be associated with the community
string:
An Acce
permitted to use the community string to gain access to the Switch’s
MP agent.
SN
An MIB view that defines the subset of all MIB objects to be
accessible to the SNMP community.
Read/write
accessible
<community_string 20>− A string of up to 20 alphanum
characters that is used to identify memb
This string is used like a
access to MIB objects in the Switch’s SNMP agent.
<view_name 30>− A string of up
is used
manager i
read_on
community string created with this command can only read the
contents of the MIBs on the Switch.
read_write− Specifies that SN
community string created
write to the contents of the MIBs on the Switch.
community <community_string 20> view
ccess-limiting characteristics to this
nity string acts like a password to
witch. One or more of the
ss List of IP addresses of SNMP managers that are
or read-only level permission for the MIB objects
to the SNMP community.
ers of an SNMP commu
password to give remote SNMP managers
to 30 alphanumeric characters that
to identify the group of MIB objects that a remote SNMP
s allowed to access on the Switch.
ly− Specifies that SNMP community members using the
MP community members using the
with this command can read from and
nity.
Restrictionsl users can issue this command. Only administrator-leve
Example usage:
To create the SNMstring “dlink:”
delete snmp community
Purpose To remove a specific SNMP community string from the Switch.
Syntax
Description The delete snmp community command removes a previously
Parameters <community_string 20>− A string of up to 20 alphanumeric
P community
DGS3100# create snmp community dlink view ReadView read_write
Success.
DGS3100
#
delete snmp community <community_string 2
defined SNMP community string from the Switch.
33
0>
Page 42
DGS-3100 Gigabit Ethernet Switch Manual
characters that is used to identify members of an SNMP community
to delete. This string is used like a password to give remote SNMP
managers access
Restrictions Only administrator-level users can issue this command.
Example usage:
To delete the SNMP commun
ity string “dlink”:
to MIB objects in the Switch’s SNMP agent.
show snmp community
Purpose To display SNMP community strings configured on the Switch.
Syntax
Description The show snmp community command displays SNMP community
Parameters <community_string 20>− A string of up to 20 alphanumeric
Restrictions None.
Example usage:
To display the currently entered SNMP
DGS3100
Success.
DGS3100#
# delete snmp community dlink
show snm
strings that are configured on the Switch.
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.
Parametersame of up to 30 alphanumeric characters that
<groupname 30>− A n
identifies the SNMP grou
with.
v1 – Specifies that SNMP version 1 is to be used. The Simple
35
p the new SNMP user is to be associated
Page 44
DGS-3100 Gigabit Ethernet Switch Manual
Network Management Pr
management protocol th
otocol (SNMP), version 1, is a network
at provides a means to monitor and control
network devices.
v2c – Specifies that SNMP
version 2c is to be used. The SNMP v2c
supports both centralized and distributed network management
strategies. It includes im
Information (SMI) and add
v3 – Specifies that the S
provides secure access
authentication and encry
provements in the Structure of Management
s some security features.
NMP version 3 is to be used. SNMP v3
to devices through a combination of
p
ting 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 − S
prevent it from be
noauth_nopriv− Spec
encryption of packets sent betwe
crambles the contents of messages to
ing viewed by an unauthorized source.
ifies that there is no authorization and no
en the Switch and a remote SNMP
manager.
auth_nopriv− Specifies tha
encryption of packets
t authorization is required, but there is no
sent between the Switch and a remote SNMP
manager.
auth_priv− Specifies tha
sent between the Swit
t authorization is required, and that packets
ch and a remote SNMP manger are
encrypted.
read_view – Specifies th
request SNMP messag
•<view_nam
e 30> − A string of up to 30 alphanumeric
characters
remote SNMP m
write_view –
Specifies that the SNMP group being created has write
at the SNMP group being created can
es.
that identifies the group of MIB objects that a
anager is allowed to access on the Switch.
privileges.
•<view_name 3
characters that ident
remote SNMP manag
notify_view− Specifies th
receive SNMP trap mes
0>− A string of up to 30 alphanumeric
ifies the group of MIB objects that a
er is allowed to access on the Switch.
at the SNMP group being created can
sages generated by the Switch’s SNMP
agent.
•<view_nam
characters that identifi
remote SNMP manage
e 30>− A string of up to 30 alphanumeric
es the group of MIB objects that a
r is allowed to access on the Switch.
Restrictions can issue this command. Only administrator-level users
Example usage:
To create an SNMP
group named “sg1:”
DGS3100# create snmp group sg1 v3 n
write_view v1 notify_view v1
Success.
DGS3100#
36
oauth_nopriv read_view v1
Page 45
delete snmp group
Purpose om the Switch. To remove an SNMP group fr
Syntax
Description command removes an SNMP group from The delete snmp group
Parametersp to 30 alphanumeric characters that
Restrictions can issue this command. Only administrator-level users
Example usage:
To delete the SNM
show snmp groups
Purpose f SNMP groups currently configured To display the group-names o
delete snmp group <groupname 30>
the Switch.
<groupname 30>− A string of u
identifies the SNMP group the
with.
P group named “sg1”.
DGS3100# delete snmp g
Success.
DGS3100#
on the Switch. The security model, level, and status of each group
are also displayed.
roup sg1
new SNMP user will be associated
Syntax
Description splays the group-names of The show snmp groups command di
Parameters None.
Restrictions None.
Example usage:
To display the currently confi
show snmp groups
SNMP groups currently configured on the Switch. The security
model, level, and status of each group are also displayed.
gured SNMP groups on the Switch:
DGS3100
Vacm Ac
Group Na : Group3
ReadView Na
WriteView Na
Notify View N
Security Mod
Security Level
Group Na
ReadView
WriteView
# show snmp groups
cess Table Settings
me
me : ReadView
me
: WriteView
ame : NotifyView
el : SNMPv3
: NoAuthNoPriv
me : Group4
Name : ReadView
Name : WriteView
37
Page 46
DGS-3100 Gigabit Ethernet Switch Manual
Notify Vie
Security : SNMPv3
Security
w Name : NotifyView
Model
Level : authNoPriv
Group Na
ReadView
WriteVieww
Notify Vie
Security
Security
me : Group5
Name : ReadView
Name : WriteVie
w Name : NotifyView
Model : SNMPv3
Level : authNoPriv
Group Name : Group6
ReadView Name : ReadView
WriteView Name : WriteView
N
otify View Name : NotifyView
Security M
S
ecurity Level : authPriv
odel : SNMPv3
Group Name : Group7
ReadView Name : ReadView
WriteView Name : Wri
Notify View Na
Security
Security thPriv
me : NotifyView
Model : SNMPv3
Level : au
teView
Group Name
ReadView
WriteVie
Noti
fy Vie
Securit
Securit
: initial
Name : restricted
Name :
w
w Name : restricted
del : SNMPv3
y Mo
vel : NoAuthNoPriv
y Le
Group Nam
e : ReadGroup
ReadView Name : CommunityView
W
riteView Name :
Notify View
S
ecurity Model : SNMPv1
Security Le
Name : CommunityView
vel : NoAuthNoPriv
Group Name : ReadGroup
ReadView Na
WriteView Na
Notify Vie
Security NMPv2
Security
me : CommunityView
me :
w Name : CommunityView
Model : S
Level : NoAuthNoPriv
Group Na
ReadView
me : WriteGroup
Name : CommunityView
38
Page 47
WriteViewmmunityView
Notiw Name : CommunityView
Security
Securit Level
Group Name : WriteGroup
ReadView Name : CommunityView
WriteView Name : Commu
N
otify View Name : CommunityView
Security Model
Security Level : NoAuthNoPriv
Total Entries: 10
D
GS3100#
Name : Co
fy Vie
Model : SNMPv1
y : NoAuthNoPriv
nityView
: SNMPv2
create snmp host
Purpose To create a recipient of SNMP traps generated by the Switch’s
SNMP a
gent.
Syntax
Description The create snmp host command creates a recipient of SNMP traps
<ipaddr>− The IP address of the remote management station to
serve as the SNMP host for the Switch.
v1 – Specifies that SNMP version 1 is to be used. The Simple
Network Management Protocol (SNMP), version 1, is a network
management protocol that provides a means to monitor
network devices.
v2c – Specifies that SNMP version 2c is to be used. The
supports both centralized and distributed network m
strategies. It includes improvements in the Structure of Management
Information (SMI) and adds some security features.
v3 – Specifies that the SNMP versio
provides secure access to device
authentication and encrypting packets over the network. SNMP v3
s:
add
• Message integrity − ensures that packets have not been
tampered with during transit.
• Authentication − determines if an SNMP message is from a
valid source.
•ryption − scrambles the contents of messages to prevent
Enc
it being viewed by an unauthorized source.
<community_string 20>− A string of up to 20 alphanumeric
characters that identifies members of an SNMP community. This
string is used like a password to g
access to MIB objects in the Switc
noauth_nopriv− Specifies that there is no authorization and no
n 3 is to be used. SNMP v3
s through a combination of
ive remote SNMP managers
h’s SNMP agent.
and control
SNMP v2c
anagement
39
Page 48
DGS-3100 Gigabit Ethernet Switch Manual
encryption of packets sent between the Switch and a remote SNMP
manager.
auth_no
encryption of packets sent between the Switch
manager.
auth_priv
sent between the Switch and a remote SNMP manger are
encrypted.
<auth
used in SNMP v3 to a
the Switch’s SNMP agent.
Restrictions Only ator-level users can issue this command. administr
Example usage:
To create an SNMPe SNMP messages:
host to receiv
priv− Specifies that authorization is required, but there is no
and a remote SNMP
− Specifies that authorization is required, and that packets
_string 24>− A string of up to 24 alphanumeric characters
uthorize a remote SNMP manager to access
delete snmp host
Purpose To remove a recipient of SNMP traps generated by the Switch’s
Syntax
Description The delete snmp host command deletes a recipient of SNMP traps
Parameters <ipaddr>− The IP address of a remote S
Restrictions Only administrator-level users can issue this command.
Example usage:
To delete an SNMP host entry:
DGS3100# create snmp
Success.
DGS3100#
SNMP agent.
delete snmp host <ipaddr>
generated by the Switch’s SNMP agent.
receives SNMP traps generated by the Switch’s
DGS3100# delete snmp host 10.48.74.100
Success.
DGS3100#
host 10.48.74.100 v3 auth_priv public
NMP manager that
SNMP agent.
show snmp host
Purpose To display the recipient of SNMP traps generated by the Switch’s
SNMP agent.
Syntax
Description The show snmp host command is used to display the IP addresses
show snmp
and configuration information of remote SNMP manag
designated as recipients of SNMP traps generated by the Switch’s
host {<ipaddr>}
ers that are
40
Page 49
Parameters <ipaddr>− The IP address of a remote SNMP manager that
Description The create trusted_host command creates a trusted host. The
Parameters <ipaddr>− The IP address of the trusted host to be created.
Restrictions Only administrator-level users can issue this command.
ge:
e trusted host:
DGS3100# create truste
Success.
DGS3100#
create trusted_host <ipaddr>
Switch allows you to specif
to manage the Switch
management software. The
Management VLAN. If no IP addresses are s
nothing to prevent any IP add
provided the user knows the User
d_host 10.48.74.121
y up to four IP addresses that are allowed
via in-band SNMP or TELNET based
se IP addresses must be members of the
ress from accessing the Switch,
name and Password.
pecified, then there is
show trusted_host
Purpose To display a list of trusted hosts entered on
create trusted_host command above.
Syntax
show trusted_host {<ipaddr>}
41
the Switch using the
Page 50
DGS-3100 Gigabit Ethernet Switch Manual
Description The show trusted_host command displays a list of trusted hosts
entered on the Switch using the create
above.
Parameters <ipaddr>− The IP address of the trusted host.
Restrictions None.
trusted_host command
Exampl
e usage:
To display the list
of trusted hosts:
GS3100# show trusted_host
D
Managemen
IP Address
--------------------
10.48.74.121
Total Ent
DGS3#
100
t Stations
---
ries: 1
delete trusted_host
Purpose To delete a trusted host entry made using the create trusted_host
command above.
Syntax
delete trusted_host <ipaddr>
Description command deletes a trusted host entry
Parameters<ipaddr>− The IP address of the trusted host.
Restrictions Only administrator-level users can issue this command.
Example usage:
To delete a trusted host with an IP address 10.48.74.121:
enable snmp traps
Purpose ble SNMP trap support. To ena
Syntax
Description NMP trap support on The enable snmp traps command enables S
Parameters None.
The delete trusted_host
made using the create trusted
DGS3100# delete trusted_host 10.48.74.121
Success.
DGS3100
#
enable snmp traps
the Switch.
_host command above.
Restrictions Only administrator-level users can issue this command.
42
Page 51
Example usage:
To enable SNMP tr p support on the Switch:
a
disable snmp traps
Purpose To disable SNMP trap support on the Switch.
Syntax
Description
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
To preven
DGS3100#
Success.
DGS3100#
t SNMP traps from being sent from the Switch:
DGS3100# disable snmp traps
Success.
DGS3100#
enable snmp traps
disable snmp traps
The disable snmp traps command disables SNMP trap support on
the Sw
itch.
enable snmp authenticate trap
Purpose To enable SNMP authentication trap support.
Syntax
Description mmand enables SNMP The enable snmp authenticate trap co
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
To tuthenticati
rn on SNMP auon trap support:
disable snmp authenticate trap
Purpose To disable SNMP authentication trap support.
Syntax
enable snmp authenticate trap
authentication trap support on the Switch.
DGS3100# enable snmp authenticate trap
Success.
GS3100# D
disable snmp authenticate trap
43
Page 52
DGS-3100 Gigabit Ethernet Switch Manual
Description The disable snmp authenticate trap command disables SN
Parameters None.
Restrictions Only administrator-level users can issue this command.
Example usage:
To disable the SNMP authentication trap support:
show snmp traps
Purpose To display SNMP trap support status on the Switch.
Syntax
Description The show snmp traps command displays the SNMP trap support
Parameters None.
MP
authentication trap support on the Switch.
DGS3100# disable snmp authenticate trap
Success.
DGS3100#
show snmp traps
status currently configured on the Switch.
Restrictions Only administrator-level users can issue this command.
Example usage:
To vi SNMP tra
ew the currentp support:
config snmp system_contact
Purpose
Syntax
Description The config snmp system_contact command enters the name
DGS3100
SNMP Tr
Authentic
DGS3100
# show snmp traps
aps : enabled
ate Trap : enabled
#
To enter identification information of a contact person who is
responsible fo
config snmp system_contact <sw_contact>
and/or other information to identify a contact person who is
responsible for the Switch. A maximum of 255 characters can be
used.
r the Switch.
Example usa
To co
Parameters <sw_contact 0-255> - A maximum of 255 characters is allowed. A
NULL string is accepted if there is no contact.
Restrictions Only administrator-level users can issue this command.
ge:
nfigure the Switch contact to “MIS Department II”:
44
Page 53
DGS3100# config snmp system_contact MIS Department II
Success.
DGS3100#
config snmp system_location
Purpose To enter a description of the location of the Switch.
Example usa
To coocation
Syntax
Description The config snmp system_location command enters a description
Parameters <sw_location 0-255> - A maximum of 255 characters is allowed. A
Restrictions Only administrator-level users can issue this command.
ge:
nfigure the Switch lfor “HQ 5F”:
DGS3100
Succes
DGS3100
config snmp system_location <sw_location>
of the location of the Switch. A maximum of 255 characters can be
used.
NULL string is accepted if there is no location desired.
# config snmp system_location HQ 5F
s.
#
config snmp system_name
Purpose To define the name for the Switch.
Syntax
config snmp system_name <sw_name>
Example usa
To coh name as “DGS-3100 Switch”:
Description The config snmp system_name command defines the name of the
Switc
h.
Parameters <sw_name 0-255> - A maximum of 255 cha
NULL string is accepted if no name is desir
Restrictions Only administrator-level users can issue this command.
ge:
nfigure the Switc
DGS3100# config snmp system_name DGS-3100 Switch
Success.
DGS-3100 Switch#
45
racters is allowed. A
ed.
Page 54
DGS-3100 Gigabit Ethernet Switch Manual
7
DOWNLOAD/UPLOAD COMMANDS
The Download/Upload commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Purpose To display statistics about the packets sent and received by the
Switch.
Syntax
Description The show packet ports command displays statistics about packets
Parameters <portlis
sho
sent and received by ports specified in t
separated into three tables, labeled A,
below. Table A
relevant to the type of packets and Table C is relevant to the type of
frame associated with these packets.
Description The create sy slog host command creates a new syslog host.
Parameters
all − Specifies that the command is to be applied to all hosts.
<index 1-4> − The syslog host index id. There are four a
indices, numbered 1 to
ipaddress <ipaddr>− The IP address of the remote host to which
syslog messages are to be sent.
severity− The message severity level indicato
described in the table below (Bold font indica
corresponding severity level is currently supported on the Switch):
Numerical Severity
Code
0 Emergency: system is unusable
Alert: action must be taken immediately
1
2 Critical: c
3
4
5 Notice: normal but significant con
6 Informational: informational messages
7 Debug: debug-level messa
Error: error conditions
Warning: warning conditions
4.
r. These are
tes that the
ritical conditions
dition
ges
vailable
53
Page 62
DGS-3100 Gigabit Ethernet Switch Manual
informational− Specifies that informational mes
to the remote host. This corresponds to number 6
above.
warning− Specifies that warning messages a
remote host. This corresponds to number 4 from
all
− Specifies that all of the currently supported syslog messages
that are generated by the Switch are to be sent to the remote host.
facility− Some of the operating system daemons and processes
have be
have not been explicitly assigned a Facility may use any of the "local
use" facilities or they may use the "user-level" Facility. T
Facilities that have been designated are shown in the table below
(Bold font indicates the facility values that the Switch currentl
supports):
Numerical Facility
Code
0 kernel messages
1
2 mail system
4
security/authorization messages
5 messages generat
6 line printer subsystem
7 network news
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 (loc
17 local use 1 (local1
18 local use
19 local use
20 local use 4 (loc
21 local use 5 (local5)
22 local use 6 (local6)
23 local use 7 (local7)
local0− Specifies that local use 0
remote host. This corresponds to nu
local1− Specifies that local use 1
remote host. This corresponds to nu
local2− Specifies that local use 2
re
mote host. This corresponds to number 18 from the list above.
sages are to be sent
from the list
re to be sent to the
the list above.
n assigned Facility values. Processes and daemons that
e
user-level messages
system daemons3
ed internally by syslog
subsystem
al0)
)
2 (local2)
3 (local3)
al4)
messages are to be sent to the
mber 16 from the list above.
messages are to be sent to the
mber 17 from the list above.
messages are to be sent to the
hose
y
54
Page 63
Restrictions Only administrator-level users can issue this command.
Example usage:
To create syslog host:
local3− Specifies that local use 3 messages are to be sent to the
remote host. This corresponds to number 19 from the list above.
local4− Specifies that local use 4 messages are to be sent to the
remote host. This corresponds to number 20 from the list above.
local5− Specifies that local use 5 messages are to be sent to the
remote host. This corresponds to number 21 from the list above.
local6− Specifies that local use 6 messages are to 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
remote host. This corresponds to number 23 from the list above.
udp_port <udp_port_number>− Specifies the UDP port number t
the syslog protocol is to 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.
the
hat
DGS3100# crea4 severity all facility local0
Success.
DGS3100#
te syslog host 1 ipaddress 10.53.13.9
config s slog host y
Purpose To configure the syslog protocol to send system log data to a remote
host.
Syntax
Description The config syslog host command configures the syslog protocol to
all − Specifies that the command applies to all ho
<index 1-4> − Specifies that the command applies to an index of
hosts. There are four available indices, numbered 1 to 4.
ipaddress <ipaddr>− The IP address of the remote host to which
syslog messages are to be sent.
severity− The message severity level indicato
described in the following table (Bold font indicate
corresponding severity level is currently supported on the
Numerical
Code
0 Emergency: system is unusable
1
2 Critical: critical conditions
ess <ipaddr>}
r. These are
s that the
Switch):
Severity
Alert: action must be taken immediately
55
Page 64
DGS-3100 Gigabit Ethernet Switch Manual
3 Error: error conditions
4 Warning: warning conditions
5
6
7 Debug: debug-level messages
informational− Specifies that informational messages are to be sent
to the remote host. This corresponds to number 6 from the list
above.
warning− Specifies that warning messages are to be sent to the
remote host. This correspo
all− Sp
that are generated by the Switch are to be sent to the remote host.
facil
have
have not been explicitly
use" facilities or they may use the "user-level" Facility. Those
Facilities that have been
Bold font indicates the facility va
supports.
Numerical Facility
Code
0 kernel messages
1 user-level messages
2
3 system daemons
4
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)
23 local use 7 (local7)
local0− Specifies that local use 0 messages are to be sent to the
Notice: normal but significant condition
Informational: informational messages
nds to number 4 from the list above.
ecifies that all of the currently supported syslog messages
ity− Some of the operating system daemons and processes
been assigned Facility values. Processes and daemons that
assigned a Facility may use any of the "local
designated are shown in the following:
lues that the Switch currently
mail system
security/authorization messages
56
Page 65
remote host. This corresponds to number 16 from the list above.
local1− Specifies that local use 1 messages are to be sent to
remote host. This corresponds to number 17 from the list above.
local2− Specifies tha
remote host. This corre
local3− Specifies that local use 3 messages are to be sent to the
remote host. This corresponds to number 19 from the list above.
local4− Specifies that local use 4 messages are to be sent to the
remote host. This corresponds to number 20 from the list above.
local5− S
remote host. This corresponds to number 21 from the list above.
local6− Specifies that local use 6 messages are to be sent to the
remote host. This corresponds to number 22 fro
local7− Specifies that local use 7 messages are to be sent to the
remote host. This corresponds to numbe
udp_port <u
the syslog p
ipaddress <ipaddr>− Specifies the IP address of the remote host to
which syslog messages are to be sent.
state [enable | disable]− Allows the sending of syslog messages to
the remote host, specified above, to be enabled and disabled.
pecifies that local use 5 messages are to be sent to the
dp_port_number>− Specifies the UDP port number that
rotocol is to use to send messages to the remote host.
t local use 2 messages are to be sent to the
sponds to number 18 from the list above.
m the list above.
r 23 from the list above.
the
Example usa
To configure a syslost:
Restrictions Only administrator-level users can issue this command.
ge:
og h
3100# config syslog host all severity all facility local0
DGS
Suc
cess.
S3100#
DG
delete syslog host
Purpose To remove a previously configured syslog host from the Switch.
Syntax
Description The delete syslog host command removes a previously configured
Parameters able <index 1-4> − The syslog host index id. There are four avail
Restrictions Only administrator-level users can issue this command.
delete syslog host [<index 1-4> | all]
syslog host from the Switch.
indices, numbered 1 to 4.
all− Specifies that the command applies to all hosts.
Example usage:
To delete a previously configu
red syslog host:
100
DGS3# delete syslog host 4
Success.
DGS3100
#
57
Page 66
DGS-3100 Gigabit Ethernet Switch Manual
show syslog host
Purpose To display the syslog hosts currently configured on the Switch.
Syntax
Description The show syslog host command displays the syslog hosts that are
Parameters
Restrictions None.
Example usage:
To show Syslog host informati
show syslog host {<index 1-4>}
currently configured on the Switch.
<index 1-4>− The syslog host index id. There are four available
onfig stp command configures 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 Sw
maxage <value 6-40>− This value ma
information does not endlessly circulate throug
the network, preventing the effective propagation of the new
information. Set by the Root Bridge, thi
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 s
till not been received from the Root Bridge, the Switch
59
itch.
h redundant paths in
s value will aid in determining
Page 68
DGS-3100 Gigabit Ethernet Switch Manual
will start sending its own BPDU to all other switches for permission
to become t
lowest Bridge Identifier, it will become the Root Bridge. The user
may choose a time between 6 and 40 seconds. The default value
20.
maxhops <value 1-20>− The number of hops between devices in a
spanning tree region before the BPDU (b
packet sent by the Switch will be discarded
count will reduce the hop co
The Switch will then discard the BDPU packet and the information
held for the port will age out. The value may be betwee
The default is 20.
hellotim
tra
nsmission of configuration messages by the root device in STP,
or by the designated router in RSTP, thus stating that the Switch is
still functioning. The value may be between 1 and 10 seconds. The
default value is 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
switches utilizing the Multiple Spanning Tree Protocol
forwarddelay
seconds) that the root device will wait before changing states. The
value may be between 4 and 30 seconds. The default is 15 seconds.
fbpdu [enable | disable]− Allows
packets
Switch. The default is enable.
he Root Bridge. If it turns out that your switch has the
is
ridge protocol data unit)
. Each switch on the hop
unt by one until the value reaches zero.
n 1 and 20.
e <value 1-10>− The user may set the time interval between
.
<value 4-30>− The maximum amount of time (in
the forwarding of STP BPDU
from other network devices when STP is disabled on the
Exampl
Restrictions Only administrator-level users can issue this command.
e usage:
To configure STP ps of 15:
with maxage 18 and maxho
GS3100# config stp maxage 18 maxhops 15
D
uccess.
S
DGS3100#
config stp ports
Purpose To setup STP on the port level.
Syntax
Description The config stp ports command configures STP for a group of ports.
Parameters <portlist>− Specifies a range of ports to be configured. The port list
is specified by listing the lowest switch number and the beginning
ort number on that switch, separated by a colon. Then the highest
p
switch numbe
separated by a
port list range are separated by a dash. For example, 1:3 specifies
ch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3-
swit
2:4 spe
port 4 − in numerical order.
cifies all of the ports between switch 1, port 3 and switch 2,
r, and the highest port number of the range (also
colon) are specified. The beginning and end of the
60
Page 69
externalCost− 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 – Automatically sets the speed for fo
to the specif
De
fault port cost: 100Mbps port = 200000. Gigabit port =
20000.
•<value
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
the bridged L
value may be between 1 and 10 seconds. The default is 2 seconds.
edge [true | false] – tru
ports cannot
status if a to
port normally should not receive BPDU packets. If a BPDU packet is
received it automatically
the port does not have edge port s
p2p [true | false | au
link. P2P ports ar
in that a P2P por
ports transition to
RSTP. A p2p value
status. auto allows the p
and operate as if the p
maintain thi
eration) the p2p status changes to operate as if the p2p value
op
were false. The default setting for this parameter is auto.
[enable | disable] − Allows STP to be enabled or disabled for
state
the ports spe
1-200000000> - Defines a value between 1 and
messages by the designated port, to other devices on
AN, thus stating that the Switch is still functioning. The
create loops, however an edge port can lose edge port
pology change creates a potential for a loop. An edge
s status (for example if the port is forced to half-duplex
cified in the port list. The default is enable.
ied port(s) in the list for optimal efficien
e designates the port as an edge port. Edge
loses edge port status. false indicates that
tatus.
to] – true indicates a point-to-point (P2P) shared
e similar to edge ports however they are restricted
must operate in full-duplex. Like edge ports, P2P
t
a forwarding state rapidly thus benefiting from
of false indicates that the port cannot have p2p
ort to have p2p status whenever possible
2p status were true. If the port cannot
rwarding packets
cy.
Restrictions Only trator-level users can issue this command. adminis
Example usage:
To configure STP econds and state enable for ports 1-5 of module 1.
config stp version
Purpose et the version of STP on the Switch. To globally s
Syntax
Description d sets the version of the spanning
Parametersltiple Spanning Tree Protocol (MSTP) globally on mstp – Sets the Mu
with path cost 19, hellotime set to 5 s
DGS3100# config stp ports
state enable
Success.
DGS3100#
config stp version [mstp | rstp | stp]
The config stp version comman
tree to be implemented
the Switch.
1:1-1:5 externalCost 19 hellotime 5
on the Switch.
61
Page 70
DGS-3100 Gigabit Ethernet Switch Manual
Restrictionssers can issue this command. Only administrator-level u
Example usage:
To set the Switch gltiple Spanning Tree Protocol (MSTP):
enable stp
Purpose To globally enable STP on the Switch.
Syntax
Description The enable stp command sets the Spanning Tree Protocol to be
Parameters None.
rstp – Sets the Ra
the Switch.
stp – Sets the Spa
lobally for the Mu
DGS3100# config stp version mstp
Success.
DGS3100
#
enable stp
globally enabled on the Switch.
pid Spanning Tree Protocol (RSTP) globally on
nning Tree Protocol (STP) globally on the Switch.
Example usa
To enable STP, globally, on the Switch:
Example usa
To disabl
Restrictions Only administrator-level users can issue this command.
ge:
DGS3100# enable stp
Success.
DGS3100#
disable stp
Purpose To globally disable STP on the Switch.
Syntax
Description The disable stp command sets the Spanning Tree Protocol to be
Parameters None.
Restrictions Only administrator-level users can issue this command.
ge:
e STP on the Switch:
disable stp
globally disabled on the Switch.
DGS3100
Succes
DGS3#
# disable stp
s.
100
62
Page 71
show stp
Purpose To display the Switch’s current STP configuration.
Syntax
Description The show stp command displays the Switch’s current STP
Parameters None.
Restrictions None.
Example usage:
To display the statu
Status 1: STP ena
Status 2: STP enabled for RSTP
show stp
configuration.
s of STP on the Switch:
bled with STP compatible version
DGS3100# show stp
STP Status : Enabled
STP Version : STP C
Max Age : 20
Hello Time : 2
Forward Delay : 15
Max Hops : 20
DGS3100#
ompatible
d Forwarding BPDU : Enable
DGS3100# show stp
STP Statu
STP Vers
M
ax Age
H
ello Tim
For
ward : 15
M
ax Age : 20
TX Hold Count
Forwarding BPDU : Enabled
DGS3100#
Status 3: STP ena
bled for MSTP
DGS3100# show stp
STP Status : Enabled
STP Version
Max Age : 20
Hello Time
s : Enabled
ion : RSTP
: 20
e : 2
Delay
: 3
: MSTP
: 2
63
Page 72
DGS-3100 Gigabit Ethernet Switch Manual
Forward Dela
M
ax Age : 20
TX Hold Co
Forwarding BPDU : Enabled
DGS3100#
y : 15
unt : 3
show stp ports
Purpose To display the Switch’s current instance_id configuration.
Syntax
Description The show stp ports command displays the STP Instance Settings
Parameters The port list is
show stp ports <portlist>}
and STP Instance Operational Status currently implemented on the
Switch.
<portlist>− A port or a range of ports to be viewed.
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
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:32:4 specifies all of the ports between switch
port 4 − in numerical order.
1, port 3 and switch 2,
(also
Restrictions None.
Example usage:
To show stp ports 1 through 9
show stp instance_id
Purpose To display the Switch’s STP instance configuration
on switch one:
DGS3100# show
MSTP Poation
--------------------------------Port Index : 1:9,Port STP enabled
External PathCost : Auto/20
Msti Designated Bridge Internal PathCost Prio Status Role
Description Ds) to The config stp instance_id command maps VIDs (VLAN I
Parameters <value 1-15> - The value of the instance_id. The value may be
config stp
<vidlist>
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.
between 1 and 15. The Switch supports 16 STP regions with one
unchangeable default instance ID set as 0.
add_vlan – Indicates that VIDs specified in the <vidlist> parameter
are to be added to the previously configured STP instance_id.
remove_vlan – Indicates that VIDs specified in the <vidlist>
parameter are to be removed from the previously configured STP
instance_id.
<vidlist> – Specifies the ra
configured STP instance_id. Supported VIDs on the Switch range
from ID number 1 to 4094.
instance_id <value 1-15> [add_vlan | remove_vlan]
nge of VIDs to add to or remove from the
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure instance id 2 to a
To remove VID 10 from insta
dd VID 10:
DGS3100# co ig
Success.
DGS3100#
DGS3100
Succes
DGS3100#
nf stp instance_id 2 add_vlan 10
nce id 2:
# config stp instance_id 2 remove_vlan 10
s.
66
Page 75
config stp priority
Purpose update the STP instance configuration. To
Syntax
Description The config stp priority command updates the STP instance
Parameters priority <value 0-61440> - The priority for a specified instance_id for
Restrictions Only administrator-level users can issue this command.
Example usage:
To set the priority value for instance_id 2 as 4096:
configuration settings on the Switch. The MSTP uses the priority in
selecting the root bridge, root port and designated port. Assigning
higher priorities to STP regions instructs the Switch to give
precedence to the selected instance_id for forwarding packets. The
lower the priority value set, the higher the priority.
forwarding packets. The value may be between 0 and 61440, and
must be divisible by 4096. A lower value indicates a higher priority.
instance_id <value 0-15> - The value of the previously configured
instance id for 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.
DGS3100# config stp priority 4096 instance_id 2
Success.
DGS3100#
config stp mst_config_id
Purpose To update the MSTP configuration identification.
Syntax
Description The config stp mst_config_id command uniquely identifies the
Parameters revision_level <int 0-65535>– The MSTP region id number. The
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the MSTP region of the Switch with revision_level 10 and the name “Trinity”:
config stp mst_config_id {revision_level <int 0-65535> | name
<string>}
MSTP configuration currently configured on the Switch. Information
entered here is attached to BDPU packets as an identifier for the
MSTP region to which it belongs. Switches having the same
revision_level and name are considered to be part of the same
MSTP region.
value may be between 0 and 65535. This value, along with the
name, identifies the MSTP region configured on the Switch. The
default setting is 0.
name <string> - A string of up to 32 alphanumeric characters to
uniquely identify the MSTP region on the Switch. This name, along
with the revision_level value identifies the MSTP region configured
on the Switch. If no name is entered, the default name is the MAC
address of the device.
67
Page 76
DGS-3100 Gigabit Ethernet Switch Manual
DGS3100# config stp mst_config_id revision_level 10 name Trinity
Success.
DGS3100#
config stp mst_ports
Purpose STP instance. To update the port configuration for a M
Syntax
Description the port configuration
Parameters t is
config stp mst_ports < p
{internalCost [auto | va
The config stp mst_ports command updates
for a STP
port priority
a higher priority value
first. In instances whrity value is identical, the MSTP
function implements the lowest port number into the forwarding state
and other interfaces are blocked. Remem
values mean higher priorities for forwarding pa
<portlist> - A port or range of ports to be configured. The port lis
specifi
number on that switch, separated by a colon. Then the highest
switch nu
separated by
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:32:4 specifies all of the ports between switch 1, port 3 and switch 2,
port 4, in numerical order.
instance_id <value 0-15> - The previously configured instance_id.
The value may be between 0 and 15. An entry of 0 denotes the
CIST (Common and Internal Spanning Tree.
internalCost – The relative cost of forwarding packets to specified
ports when an interface is selected within
default setting is auto. There are two options:
priority <value 0-240> - The priority for the port interface The value
may be
priority.
first.
instance_id. If a loop occurs, the MSTP function uses the
to select an interface to put into the forwarding state. Set
ed by listing the lowest switch number and the beginning port
mber, and the highest port number of the range (also
a colon) are specified. The beginning and end of the
•auto – Sp
optimally for an interface. The default value is derived from
the media speed of the interface.
•value 1-200000000 – Specifies setting the quickest route
when a loop occurs. The value may be in the range of 1-
200000000. A lower inte
transmission.
between 0 and 240. A lower number denotes a higher
A higher priority designates the interface to forward packets
ecifies setting the quickest route automatically and
ortlist> instance_id <value 0-15>
lue 1-200000000] | priority <value 0-240>}
for interfaces to be selected for forwarding
ere the prio
ber that lower priority
ckets.
an STP instance. The
rnalCost represents a quicker
Restrictions Only administrator-level users can issue this command.
Example usage:
To designate ports module one, with instance ID 2, to have an auto internalCost and a priority of 16:
Purpose To set the aging time of the forwarding database.
Syntax
Description The config fdb aging_time command sets the aging time of the
Parameters <value 0-630>− The aging time for the MAC address forwarding
Restrictions Only administrator-level users can issue this command.
Example usage:
To set the fdb aging time:
config fdb aging_time <value 10-6
forwarding database. The aging
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 0 to 630 minutes with a default value of
5 minutes. A very long aging time can result in dynamic forwarding
table entries that
incorrect packet forwarding decisions by the Switch. If the agin
is too short however, many entries may be aged out too soon. This
will result i
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
database value, in minutes.
GS3100# config fdb aging_time 300
D
Success.
DGS3100#
are out-of-date or no longer exist. This may cau
n a high percentage of received packets whose source
30>
time affects the learning process of
se
g time
.
delete fdb
Purpose abase. To delete an entry in the Switch’s forwarding dat
Syntax
Description the Switch’s MAC The delete fdb command deletes an entry in
Parameterson which the MAC
Restrictionss command. Only administrator-level users can issue thi
Example usage:
To delete a perman
delete fdb <vlan_name 32> <macaddr>
address forwarding database.
<vlan_name 32>− The name of the VLAN
address resides.
<macaddr>− The MAC address to be removed
table.
ent FDB entry:
DGS3100# delete fdb default 00-00-00-00-01-02
Success.
DGS31
00#
72
from the forwarding
Page 81
clear fdb
Purpose clear the Switch’s forwarding database of all dynamically learned
Syntax
Description The clear fdb command clears dynamically learned entries from the
Parameters all− Clears all dynamic entries in the Switch’s forwarding database.
Restrictions Only administrator-level users can issue this command.
Example usage:
To clear all FDB dynamic entries:
show multicast_fdb
Purpose To display the contents of the Switch’s multicast forwarding
To
C addresses.
MA
clear fdb all
Switch’s forwarding database.
DGS3100# clear fdb all
Success.
DGS3100#
database.
Syntax
Description The show multicast_fdb command displays the current contents of
Parameters vlan <vlan_name 32>− The name of the VLAN on which the MAC
Restrictions None.
Example usage:
To display multicast MAC address table:
show multicast_fdb {vlan <vlan_name 32> | mac_address
<macaddr>}
the Switch’s multicast MAC address forwarding database.
address resides.
mac_address <macaddr>− The MAC address that will be added to
the forwarding table.
DGS3100# show multicast_fdb
VLAN Name : default
MAC Address : 01-00-5E-00-00-00
Egress Ports : 1-5,26
Mode : Static
Total Entries : 1
DGS3100#
73
Page 82
DGS-3100 Gigabit Ethernet Switch Manual
show fdb
Purpose To display the current unicast MAC address forwarding database.
Example usa
To di MAC addr
To display the agin time: g
Syntax
Description The show fdb command displays the current contents of the
Parameters he port number corresponding to the MAC destination
all − Specifies all ports on the Switch are to
storm_typ
traffic con
<int 3
traffic
broadcast/multicast/dlf packets, in Kbps, received by the Switch that
will trigger the storm traffic control measures. The value ranges in
size from 3500 to 1000000 Kbps.
traffic control {[<portlist> | all] state [enable | disable] |
• broadcast – Enables broadcast storm control only.
• b
500-1000000>− The upper threshold at which the specified
rm_type [broadcast |
reshold <int 3500-1000000>}
be configured.
e – The type of broadcast storm for which to configure the
trol. The options are:
roadcast_multicast – Enables broadcast and multicast
storm control.
control is switched on. The value is the number of
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure traffic control an
DGS3100
Success.
DGS3100
Success.
DGS3100
d enable broadcast storm control system wide:
# config traffic control ports all state enable
# config traffic control storm_type broadcast threshold 15000
# config traffic control threshold 15000
76
Page 85
Success.
DGS3100
#
show traffic control
Purpose To display current traffic control settings.
Syntax
Description The show traffic control command displays the current storm traffic
Parameters ports <portlist> - A port or range of ports whose settings are to be
Restrictions None.
Example usage:
To display traffic control setti
show traffic control {ports <portlist>}
control configuration on the Switch.
displayed.
ng for ports 1-5:
100
DGS3# show traffic control
Traffic Cont
Broadcast Multicast Destination
Port Threshold Storm Storm Lookup
each of the Switch’s QoS queues.
The Switch contains four hardware classes of service. Incoming
packet
s must be mapped to one of these four hardware queues.
This command is used to specify the rotation by which these four
ware queues are emptied.
hard
e Switch’s default (if the config scheduling command is not
Th
used, or if the config scheduling command is entered with the
max_packet set to 0) is to empty the hardware queues in order –
from the highest
priority queue (ha
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 qu
priority queue (hardware class 3) to the lowest
rdware class 0). Each hardware queue transmits
eue can again transmit any packets it may have
78
Page 87
received.
The max_packets parameter allows the user 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
specifie
hardwa
packets
will be allowed to transmit 3 packets, and so on, until all of the
queu
d. For example, if a value of 3 is specified, then the highest
re priority queue (number 3) will be allowed to transmit 3
– then the next lowest hardware priority queue (number 2)
es have transmitted 3 packets. The process will then repeat.
between 1 and 15 can be
Parametersare classes of service to which the
Restrictionsor-level users can issue this command. Only administrat
Example usage:
To configure traffi
show scheduling
<class_id 0-3>− The hardw
config scheduling command i
classes of service are identified by number (from 0 to 3) with class 3
having the hi
max_packet <value 1-15>− Specifies the maximum number of
packets the abo
transmit before
transmit its pack
The default valu
2, and 8 for clas
c scheduling:
GS3100# config scheduling 3 max_packet 15
D
Success.
DGS3100#
ghest priority.
ve specified priority class of service is allowed to
allowing the next lower priority class of service to
ets. The value may be between 1 and 15 packets.
e is 1 for class_id 0, 2 for class_id 1, 4 for class_id
s_id 3.
s to be applied. The four hardware
Purpose To display the currently configured traffic scheduling on the Switch.
Syntax
Description and displays the current configuration
Parameters None.
Restrictions None.
Example usage:
To display the current scheduling configuration:
show scheduling
The show scheduling comm
for the maximum number of packets (max_packet) va
the four priority classes of service on the Switch. The Switch empties
the four hardware queues in order, from the highest priority (class 3)
to the lowest priority (class 0).
DGS3100# show scheduling
QOS Output Scheduling
---------------------------
MAX. Packet
lue assigned to
79
Page 88
DGS-3100 Gigabit Ethernet Switch Manual
Class-0 1
Class-1 2
Class-2 3
Class-3
DGS3100
4
#
config 802.1p user_priority
Purpose To map the 802.1p user priority of an incoming packet to one of the
four hard
ware classes of service available on the Switch.
Syntax
Description The config 802.1p user_priority command configures the way the
Parametersriority 0-7>− The 802.1p priority value (0 to 7) to map to one of
scheduling mechanism for the QoS function. It allows the user to
select between a round robin (WRR) and a strict mechanism for
emptying the priority classes of service of the QoS function. The
Switch contains four h
packets must be map
classes of service, or queues. This command is used to specify the
rotation b
The Switch’s default is to empty the four hardware priority queues in
order −
lowest pri
of the pa
que
be
hig
hig
allo
que
Parametersass_id 0-3> – This specifies to which of the four hardware
<cl
cla
app
num
stri
pro
em
rou
em
dis
nfig scheduling_mechanism command configures the
ardware priority classes of service. Incoming
ped to one of these four hardware priority
y which these four hardware priority queues are emptied.
from the highest priority hardware queue (class 3) to the
ority hardware queue (class 0). Each queue will transmit all
ckets in its buffer before allowing the next lower priority
ue to transmit its packets. A lower priority hardware queue will
pre-empted from emptying its queue if a packet is received on a
her priority hardware queue. The packet that was received on the
her priority hardware queue will transmit its packet before
wing the lower priority hardware queue to resume clearing its
ue.
sses of service the config scheduling_mechanism command
lies. The four hardware classes of service are identified by
ber (from 0 to 3), with the 0 queue having the lowest priority.
ct – Specifies that the highest class of service is the first to be
cessed. That is, the highest class of service should finish
ptying before the others begin.
nd_robin – Specifies that the priority classes of service are to
pty packets in a weighted roundrobin (WRR) order, or in an even
tribution.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the tr
show scheduling_mechanism
Purpose To display the current traffic scheduling mechanisms in use on the
Syntax
Description The show scheduling_mechanism command displays the current
Parameters None.
Restrictions None.
affic scheduling mechanism for each COS queue:
DGS3100# config scheduling_mechanism strict
Success.
DGS3100#
Switch.
show scheduling_mechanism
traffic scheduling mechanisms in use on the Switch.
<portlist> − A port or range of ports to be set.
all − Specifies that all ports are to be configured.
disable − Di
<value 3500-1000000> The rate limit value. The value may
between 3500 and 1000000.
ress port 1:
DGS3100_limit 1:1
Success.
DGS3#
# config rate
100
sables rate limiting.
be
Purpose To show the rate limit of specific egress ports.
S
yntax
Dshow rate_limit command displays the rate limit of an egress
escription The
Parameters <portlist>− A port or range of ports whose rate limit is to be
show rate_limit [<portlist> | all]
port.
displayed.
all− Specifies that all ports are to be displayed.