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.
Using the Console CLI..................................................................................................................................................................... 4
Switch Port Commands.................................................................................................................................................................. 24
Port Security Commands................................................................................................................................................................ 27
Broadcast Storm Control Commands............................................................................................................................................. 89
Port Mirroring Commands ............................................................................................................................................................. 99
Link Aggregation Commands...................................................................................................................................................... 111
IP Commands (Including IP Multinetting)................................................................................................................................... 117
MAC Notification Commands ..................................................................................................................................................... 133
Access Authentication Control Commands.................................................................................................................................. 137
Access Control List (ACL) Commands ....................................................................................................................................... 186
D-Link Single IP Management Commands ................................................................................................................................. 200
Time and SNTP Commands......................................................................................................................................................... 210
DNS Relay Commands ................................................................................................................................................................ 241
IP Multicasting Commands...........................................................................................................................................................257
Command History List..................................................................................................................................................................282
The switch can be managed through the switch’s serial port, Telnet, or the Web-based management agent. The Command Line
Interface (CLI) can be used to configure and manage the switch via the serial port or Telnet interfaces.
This manual provides a reference for all of the commands contained in the CLI. Configuration and management of the switch
via the Web-based management agent is discussed in the User’s Guide.
Accessing the Switch via the Serial Port
The switch’s serial port’s default settings are as follows:
• 9600 baud
• no parity
• 8 data bits
• 1 stop bit
A computer running a terminal emulation program capable of emulating a VT-100 terminal and a serial port configured as
above is then connected to the switch’s serial port via an RS-232 DB-9 cable.
With the serial port properly connected to a management computer, the following screen should be visible. If this screen does
not appear, try pressing Ctrl+r to refresh the console screen.
Figure 1-1. Initial CLI screen
1
DGS-3312SR Layer 3 Gigabit Switch
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor − DGS-3312SR:4#.
This is the command line where all commands are input.
Setting the Switch’s IP Address
Each Switch must be assigned its own IP Address, which is used for communication with an SNMP network manager or other
TCP/IP application (for example BOOTP, TFTP). The switch’s default IP address is 10.90.90.90. You can change the default
Switch IP address to meet the specification of your networking address scheme.
The switch is also assigned a unique MAC address by the factory. This MAC address cannot be changed, and can be found on
the initial boot console screen – shown below.
Figure 1-2. Boot Screen
The switch’s MAC address can also be found in the Web management program on the Switch Information (Basic Settings)
window on the Configuration menu.
The IP address for the switch must be set before it can be managed with the Web-based manager. The switch IP address can be
automatically set using BOOTP or DHCP protocols, in which case the actual address assigned to the switch must be known.
The IP address may be set using the Command Line Interface (CLI) over the console serial port as follows:
1. Starting at the command line prompt, enter the commands config ipif System ipaddress
xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy. Where the x’s represent the IP address to be assigned to the IP interface named
System and the y’s represent the corresponding subnet mask.
2. Alternatively, you can enter config ipif System ipaddress xxx.xxx.xxx.xxx/z. Where the x’s represent the IP address
to be assigned to the IP interface named System and the z represents the corresponding number of subnets in CIDR
notation.
The IP interface named System on the switch can be assigned an IP address and subnet mask which can then be used to connect
a management station to the switch’s Telnet or Web-based management agent.
2
DGS-3312SR Layer 3 Gigabit Switch
Figure 1-3. Assigning an IP Address
In the above example, the switch was assigned an IP address of 10.53.13.144/8 with a subnet mask of 255.0.0.0. The system
message Success indicates that the command was executed successfully. The switch can now be configured and managed via
Telnet and the CLI or via the Web-based management agent using the above IP address to connect to the switch.
3
DGS-3312SR Layer 3 Gigabit Switch
2
USING THE CONSOLE CLI
The DGS-3312SR supports a console management interface that allows the user to connect to the switch’s management agent
via a serial port and a terminal or a computer running a terminal emulation program. The console can also be used over the
network using the TCP/IP Telnet protocol. The console program can be used to configure the switch to use an SNMP-based
network management software over the network.
This chapter describes how to use the console interface to access the switch, change its settings, and monitor its operation.
Note: Switch configuration settings are saved to non-volatile RAM using
the save command. The current configuration will then be retained in the
switch’s NV-RAM, and reloaded when the switch is rebooted. If the switch
is rebooted without using the save command, the last configuration saved
to NV-RAM will be loaded.
Connecting to the Switch
The console interface is used by connecting the Switch to a VT100-compatible terminal or a computer running an ordinary
terminal emulator program (e.g., the HyperTerminal program included with the Windows operating system) using an RS-232C
serial cable. Your terminal parameters will need to be set to:
• VT-100 compatible
• 9600 baud
• 8 data bits
• No parity
• One stop bit
• No flow control
You can also access the same functions over a Telnet interface. Once you have set an IP address for your Switch, you can use a
Telnet program (in VT-100 compatible terminal mode) to access and control the Switch. All of the screens are identical,
whether accessed from the console port or from a Telnet interface.
After the switch reboots and you have logged in, the console looks like this:
4
DGS-3312SR Layer 3 Gigabit Switch
Figure 2-1. Initial Console Screen
Commands are entered at the command prompt, DGS-3312SR:4#.
There are a number of helpful features included in the CLI. Entering the ? command will display a list of all of the top-level
commands.
Figure 2-2. The ? Command
5
DGS-3312SR Layer 3 Gigabit Switch
When you enter a command without its required parameters, the CLI will prompt you with a Next possible completions:
message.
Figure 2-3. Example Command Parameter Help
In this case, the command config account was entered with the parameter <username>. The CLI will then prompt you to enter
the <username> with the message, Next possible completions:. Every command in the CLI has this feature, and complex
commands have several layers of parameter prompting.
In addition, after typing any given command plus one space, you can see all of the next possible sub-commands, in sequential
order, by repeatedly pressing the Tab key.
To re-enter the previous command at the command prompt, press the up arrow cursor key. The previous command will appear at
the command prompt.
6
DGS-3312SR Layer 3 Gigabit Switch
Figure 2-4. Using the Up Arrow to Re-enter a Command
In the above example, the command config account was entered without the required parameter <username>, the CLI returned
the Next possible completions: <username> prompt. The up arrow cursor control key was pressed to re-enter the previous
command (config account) at the command prompt. Now the appropriate User name can be entered and the config account
command re-executed.
All commands in the CLI function in this way. In addition, the syntax of the help prompts are the same as presented in this
manual − angle brackets < > indicate a numerical value or character string, braces { } indicate optional parameters or a choice of
parameters, and brackets [ ] indicate required parameters.
If a command is entered that is unrecognized by the CLI, the top-level commands will be displayed under the Available commands: prompt.
7
DGS-3312SR Layer 3 Gigabit Switch
Figure 2-5. The Next Available Commands Prompt
The top-level commands consist of commands such as show or config. Most of these commands require one or more parameters
to narrow the top-level command. This is equivalent to show what? or config what? Where the what? is the next parameter.
For example, if you enter the show command with no additional parameters, the CLI will then display all of the possible next
parameters.
Figure 2-6. Next possible completions: Show Command
8
DGS-3312SR Layer 3 Gigabit Switch
In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt,
the up arrow was used to re-enter the show command, followed by the account parameter. The CLI then displays the user
accounts configured on the switch.
9
DGS-3312SR Layer 3 Gigabit Switch
3
COMMAND SYNTAX
The following symbols are used to describe how command entries are made and values and arguments are specified in this
manual. The online help contained in the CLI and available through the console interface uses the same syntax.
Note: All commands are case-sensitive. Be sure to disable Caps Lock or
any other unwanted function that changes text case.
<angle brackets>
Purpose Encloses a variable or value that must be specified.
Syntax
Description In the above syntax example, you must supply an IP interface
<vlan_name 32> space, and the network address in the
<network_address> space. Do not type the angle brackets.
create ipif Engineering vlan Design ipaddress
10.24.22.5/255.0.0.0
[square brackets]
Purpose Encloses a required value or set of required arguments. One
value or argument can be specified.
Syntax
Description
Example Command
In the above syntax example, you must specify either an admin
or a user level account to be created. Do not type the square
create account [admin | user]
brackets.
create account admin
| 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, you must specify either
community, or detail. Do not type the backslash.
Example Command
show snmp [community | detail]
show snmp community
{braces}
Purpose Encloses an optional value or set of optional arguments.
10
DGS-3312SR Layer 3 Gigabit Switch
{braces}
Syntax
Description In the above syntax example, you have the option to specify
config or system. It is not necessary to specify either optional
value, however the effect of the system reset is dependent on
which, if any, value is specified. Therefore, with this example
there are three possible outcomes of performing a system
reset. See the following chapter, Basic Commands for more
Example command
reset {[config | system]}
details about the reset command.
reset config
Line Editing Key Usage
Delete Deletes the character under the cursor and then shifts the
remaining characters in the line to the left.
Backspace Deletes the character to the left of the cursor and shifts the
remaining characters in the line to the left.
Left Arrow Moves the cursor to the left.
Right Arrow Moves the cursor to the right.
Up Arrow Repeat the previously entered command. Each time the up
arrow is pressed, the command previous to that displayed
appears. This way it is possible to review the command history
for the current session. Use the down arrow to progress
sequentially forward through the command history list.
Down Arrow The down arrow will display the next command in the command
history entered in the current session. This displays each
command sequentially as it was entered. Use the up arrow to
review previous commands.
Tab Shifts the cursor to the next field to the left.
Multiple Page Display Control Keys
Space Displays the next page.
CTRL+c Stops the display of remaining pages when multiple pages are to
be displayed.
ESC Stops the display of remaining pages when multiple pages are to
be displayed.
n Displays the next page.
p Displays the previous page.
q Stops the display of remaining pages when multiple pages are to
be displayed.
r Refreshes the pages currently displayed.
a Displays the remaining pages without pausing between pages.
Enter Displays the next line or table entry.
11
DGS-3312SR Layer 3 Gigabit Switch
4
BASIC SWITCH COMMANDS
The basic switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Each command is listed, in detail, in the following sections.
create account
Purpose Used to create user accounts
Syntax create [admin | user] <username>
Description
Parameters
Restrictions
The create account command is used to create user accounts that
consist of a username of 1 to 15 characters and a password of 0
to 15 characters. Up to 8 user accounts can be created.
admin <username>
user <username>
Only Administrator-level users can issue this command.
12
create account
Example usage:
To create an administrator-level user account with the username “dlink”.
config account
DGS-3312SR Layer 3 Gigabit Switch
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
DGS-3312SR:4#create account admin dlink
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3312SR:4#
Purpose Used to configure user accounts
Syntax config account <username>
Description The config account command configures a user account that has
Parameters <username>
Restrictions Only Administrator-level users can issue this command.
Example usage:
To configure the user password of “dlink” account:
been created using the create account command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
DGS-3312SR:4#config account dlink
Command: config account dlink
Enter a old password:****
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DGS-3312SR:4#
13
show account
DGS-3312SR Layer 3 Gigabit Switch
Purpose
Syntax show account
Description
Parameters
Restrictions
Example usage:
To display the accounts created:
Used to display user accounts
Displays all user accounts created on the switch. Up to 8 user
accounts can exist on the switch at one time.
None.
None.
DGS-3312SR:4#show account
Command: show account
Current Accounts:
Username Access Level
--------------- ------------
dlink Admin
delete account
Purpose
Syntax delete account <username>
Description
Parameters
Restrictions
Example usage:
To delete the user account “System”:
DGS-3312SR:4#
Used to delete an existing user account
The delete account command deletes a user account that has been
created using the create account command.
<username>
Only Administrator-level users can issue this command.
DGS-3312SR:4#delete account System
Command: delete account System
Success.
DGS-3312SR:4#
14
show switch
DGS-3312SR Layer 3 Gigabit Switch
Purpose
Syntax show switch
Description
Parameters
Restrictions
Example usage:
To display the switch information:
Used to display information about the switch.
This command displays information about the switch.
None.
None.
DGS-3312SR:4#show switch
Command: show switch
Device Type : DGS-3312SR Gigabit-Ethernet Switch
Module 1 Type : Empty
Module 2 Type : Empty
Unit ID : 15
MAC Address : DA-10-21-00-00-01
IP Address : 10.41.44.22 (Manual)
VLAN Name : default
Subnet Mask : 255.0.0.0
Default Gateway : 0.0.0.0
Boot PROM Version : Build 2.00.003
Firmware Version : Build 3.50-B06
Hardware Version : 2A1
Device S/N :
System Name : DGS-3312SR_#3
System Location : 7th_flr_east_cabinet
System Contact : Julius_Erving_212-555-6666
Spanning Tree : Disabled
GVRP : Disabled
IGMP Snooping : Disabled
TELNET : Enabled (TCP 23)
WEB : Enabled (TCP 80)
RMON : Disabled
RIP : Disabled
DVMRP : Disabled
PIM-DM : Disabled
OSPF : Disabled
DGS-3312SR:4#
15
show config
g
DGS-3312SR Layer 3 Gigabit Switch
Purpose
Syntax show config [current_config | config_in_NVRAM]
Description
Parameters
Restrictions
Example usage:
To display the switch’s configuration information:
Used to display the configuration of the switch.
This command displays either the current configuration of the
switch, or the configuration stored in the switch’s NVRAM.
current_config − displays the switch’s current configuration. If you
have entered a configuration command, but have not saved the
configuration in the switch’s Non-Volatile RAM (NVRAM), this
configuration will differ from the one saved in the switch’s NVRAM.
config_in_NVRAM − displays the switch’s configuration saved in the
switch’s NVRAM. Any configuration commands that have been
entered, but not saved in the switch’s NVRAM will not be shown.
Only Administrator-level users can issue this command.
DGS-3312SR:4#show config current_config
Command: show current_config
This command is used to configure the serial port’s baud rate
and auto logout settings.
baud_rate [9600 | 19200 | 38400 | 115200] − The serial bit rate
used to communicate with the management host.
auto logout – This parameter will set the time that the switch will
wait before logging out automatically, if left idle. The choices that
accompany this parameter are:
17
config serial_port
Restrictions
Example usage:
To configure baud rate:
DGS-3312SR Layer 3 Gigabit Switch
never − No time limit on the length of time the console
can be open with no user input.
2_minutes − The console will log out the current user if
there is no user input for 2 minutes.
5_minutes − The console will log out the current user if
there is no user input for 5 minutes.
10_minutes − The console will log out the current user if
there is no user input for 10 minutes.
15_minutes − The console will log out the current user if
there is no user input for 15 minutes.
Only administrator-level users can issue this command.
To enable pausing of the screen display when the show command output reaches the end of the page:
Used to pause the scrolling of the console screen when the show
command displays more than one page.
This command is used when issuing the show command which
causes the console screen to rapidly scroll through several
pages. This command will cause the console to pause at the end
of each page. The default setting is enabled.
None.
Only administrator-level users can issue this command.
DGS-3312SR:4#enable clipaging
Command: enable clipaging
Success.
DGS-3312SR:4#
18
disable clipaging
DGS-3312SR Layer 3 Gigabit Switch
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
Purpose
Syntax disable clipaging
Description
Parameters
Restrictions
DGS-3312SR:4#disable clipaging
Command: disable clipaging
Success.
DGS-3312SR:4#
Used to disable the pausing of the console screen scrolling at
the end of each page when the show command displays more
than one screen of information.
This command is used to disable the pausing of the console
screen at the end of each page when the show command
would display more than one screen of information.
None.
Only administrator-level users can issue this command.
enable telnet
Purpose
Syntax enable telnet <tcp_port_number 1-65535>
Description
Parameters
Restrictions
Example usage:
To enable Telnet and configure port number:
Used to enable communication with and management of the
switch using the Telnet protocol.
This command is used to enable the Telnet protocol on the
switch. The user can specify the TCP or UDP port number the
switch will use to listen for Telnet requests.
<tcp_port_number 1-65535>
ports are numbered between 1 and 65535. The “well-known”
TCP port for the Telnet protocol is 23.
Only administrator-level users can issue this command.
DGS-3312SR:4#enable telnet 23
Command: enable telnet 23
−
The TCP port number. TCP
Success.
DGS-3312SR:4#
19
DGS-3312SR Layer 3 Gigabit Switch
disable telnet
Purpose
Syntax disable telnet
Description
Parameters
Restrictions
Example usage:
To disable the Telnet protocol on the switch:
Used to disable the Telnet protocol on the switch.
This command is used to disable the Telnet protocol on the
switch.
None.
Only administrator-level users can issue this command.
DGS-3312SR:4#disable telnet
Command: disable telnet
Success.
DGS-3312SR:4#
enable web
Purpose
Syntax enable web <tcp_port_number 1-65535>
Description
Parameters
Restrictions
Example usage:
To enable HTTP and configure port number:
Used to enable the HTTP-based management software on the
switch.
This command is used to enable the Web-based management
software on the switch. The user can specify the TCP port
number the switch will use to listen for Telnet requests.
<tcp_port_number 1-65535> − The TCP port number. TCP ports
are numbered between 1 and 65535. The “well-known” port for
the Web-based management software is 80.
Only administrator-level users can issue this command.
DGS-3312SR:4#enable web 80
Command: enable web 80
Success.
DGS-3312SR:4#
20
disable web
DGS-3312SR Layer 3 Gigabit Switch
Purpose
Syntax disable web
Description
Parameters
Restrictions
Example usage:
To disable HTTP:
Used to disable the HTTP-based management software on the
switch.
This command disables the Web-based management software
on the switch.
None.
Only administrator-level users can issue this command.
DGS-3312SR:4#disable web
Command: disable web
Success.
DGS-3312SR:4#
save
Purpose
Syntax save
Description
Parameters Entering just the save command will save the switch configuration to
Restrictions
Example usage:
To save the switch’s current configuration to non-volatile RAM:
Used to save changes in the switch’s configuration to non-volatile
RAM.
This command is used to enter the current switch configuration into
non-volatile RAM. The saved switch configuration will be loaded into
the switch’s memory each time the switch is restarted.
NV-Ram
Only administrator-level users can issue this command.
DGS-3312SR:4#save
Command: save
Saving all configurations to NV-RAM… Done
DGS-3312SR:4#
21
reboot
DGS-3312SR Layer 3 Gigabit Switch
Purpose
Syntax reboot
Description
Parameters
Restrictions
Example usage:
To restart the switch:
DGS-3312SR:4#reboot
Command: reboot
Are you sure want to proceed with the system reboot? (y/n)
Please wait, the switch is rebooting...
reset
Purpose
Used to restart the switch.
This command is used to restart the switch.
None.
Only administrator-level users can issue this command.
Used to reset the switch to the factory default settings.
Syntax reset {[config | system]}
Description
Parameters
Restrictions
Example usage:
To restore all of the switch’s parameters to their default values:
DGS-3312SR:4#reset config
Command: reset config
Success.
DGS-3312SR:4#
This command is used to restore the switch’s configuration to the
default settings assigned from the factory.
config− If the keyword ‘config’ is specified, all of the factory
default settings are restored on the switch including the IP
address, user accounts, and the switch history log. The switch will
not save or reboot.
system− If the keyword ‘system’ is specified all of the factory
default settings are restored on the switch. The switch will save
and reboot after the settings are changed to default. Rebooting
will clear all entries in the Forwarding Data Base.
If no parameter is specified, the switch’s current IP address, user
accounts, and the switch history log are not changed. All other
parameters are restored to the factory default settings. The switch
will not save or reboot.
Only administrator-level users can issue this command.
22
DGS-3312SR Layer 3 Gigabit Switch
login
Purpose
Syntax login
Description
Parameters
Restrictions
Example usage:
To initiate the login procedure:
logout
Purpose
Used to log in a user to the switch’s console.
This command is used to initiate the login procedure. The user
will be prompted for his Username and Password.
None.
None.
DGS-3312SR:4#login
Command: login
UserName:
Used to log out a user from the switch’s console.
Syntax logout
Description
Parameters
Restrictions
Example usage:
To terminate the current user’s console session:
This command terminates the current user’s session on the
switch’s console.
None.
None.
DGS-3312SR:4#logout
23
DGS-3312SR Layer 3 Gigabit Switch
5
SWITCH PORT COMMANDS
The switch port commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Each command is listed, in detail, in the following sections.
NOTE: As a stand-alone switch or as a master switch in a switch stack,
the switch number will be referred to as 15 for all configurations, graphs
and tables.
This command allows for the configuration of the switch’s Ethernet
ports. Only the ports listed in the <portlist> will be affected.
<portlist> − Specifies a range of ports to be configured. The port
list is specified by listing the lowest switch number and the
beginning port number on that switch, separated by a colon. Then
the highest switch number, and the highest port number of the
range (also separated by a colon) are specified. The beginning
and end of the port list range are separated by a dash. For
example, 1:3 specifies switch number 1, port 3. 2:4 specifies
switch number 2, port 4. 1:3-2:4 specifies all of the ports between
switch 1, port 3 and switch 2, port 4 − in numerical order.
all − Configure all ports on the switch.
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 full-
or half-duplex.
{[master | slave}]
either master or slave ports.
−
Configures the specified range of ports as
24
Loading...
+ 275 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.