D-link DGS-3048 BROCHURE

DGS-3048
Layer 2 Switch
Command Line Interface Reference Manual
6DGS3048C.02
RECYCLABLE
Introduction 1 Using the Console CLI 4 Command Syntax 9 Basic Switch Commands 11 Switch Port Commands 25 Network Management (SNMP) Commands 29 Download/Upload Commands 51 Network Monitoring Commands 54 Multiple Spanning Tree Protocol (MSTP) Commands 65 Forwarding Database Commands 77 Broadcast Storm Control Commands 83 QoS Commands 85 Port Mirroring Commands 95 VLAN Commands 97
Table of Contents
Link Aggregation Commands 103 Basic IP Commands 106 IGMP Snooping Commands 108
802.1X Commands 114 Access Authentication Control Commands 125 SSH Commands 142 SSL Commands 148 Time and SNTP Commands 156 Routing Table Commands 163 ARP Commands 165 Command History List 169 Technical Specifications 173
DGS-3048 Layer 2 Switch CLI Reference Manual
1
INTRODUCTION
The DGS 3048 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.
User Name:
Figure 1-1. Initial CLI screen
There is no initial username or password. Just press the Enter key twice to display the CLI input cursor DGS3048#. This is the command line where all commands are input.
1
DGS-3048 Layer 2 Switch CLI Reference Manual

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.0.0.1. 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.
------ Performing the Power-On Self Test (POST) ------
UART Channel Loopback Test........................PASS
Testing the System SDRAM..........................PASS
Boot1 Checksum Test...............................PASS
Boot2 Checksum Test...............................PASS
Flash Image Validation Test.......................PASS
BOOT Software Version 1.0.0.02 Built 19-Feb-2006 19:32:26 ############ ###### ### #### #### ##### ##### ### ###
#### #### ##### ############ #### #### #### #### ##### ### #### #### #### #####
#### #### #### ##### #### #### #### ###### ## #### ##### ##### # #### #### #### ######### #### ##### ##### # #### #### #### #### ##### ############ ########### #### ###### #### ##### ######
D-Link DGS3048 board - based on MPC8241.14 CPU. SDRAM: 64 MB. Flash: 8 MB. CPU speed: 266 MHz. Bus: 133 MHz. I-Cache 16 KB, linesize 32. D-Cache 16 KB, linesize 32. Cache Enabled.
Autoboot in 2 seconds - press RETURN or Esc. to abort and enter prom.
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-3048 Layer 2 Switch CLI Reference Manual
DGS3048# config ipif system ipaddress 10.53.13.222/8
Success
DGS3048#
Figure 1-3. Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.53.13.111 with a subnet mask of 255.0.0.0 (8 in CIDR from). 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-3048 Layer 2 Switch CLI Reference Manual
2

USING THE CONSOLE CLI

The DGS-3048 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
9,600 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:
User Name: XXXXX
DGS3048#
Figure 2-1. Console Screen after login
Commands are entered at the command prompt, DGS3048#.
There are a number of helpful features included in the CLI. Entering the ? command will display a list of all of the top-level commands.
4
DGS-3048 Layer 2 Switch CLI Reference Manual
DGS3048# clear clear config config create create crypto Cryptographic commands debug-mode Exit from the EXEC to debug mode delete delete dir display all commands. disable disable download download enable enable login log in a user to the switch's console. logout log out a user from the switch's console. ping test the connectivity between network devices. reboot restart the switch. reset reset the switch to the factory default settings. save save changes in the switch's configuration to non-volatile ram. show show upload upload the current switch settings or the switch history log to a tftp server. DGS3048#
Figure 2-2. The ? Command
The dir command has the same function as the ? command.
When you enter a command without its required parameters, the CLI will prompt you with a Next possible completions: message.
DGS3048# show Command: show
802.1p 80.21p
802.1x 802.1x information account display user accounts. arpentry Display the current contents of the Switch's ARP tabl authen authen authen_enable display the method list of authentication methods for promoting normal user level privileges to administrator level privileges on the switch. authen_login display a previously configured user defined method list of authentication methods for users logging on t the switch. command_history display the command history. configuration configuration cpu cpu crypto Cryptographic commands
5
DGS-3048 Layer 2 Switch CLI Reference Manual
error display the error statistics for a range of ports. fdb show fdb gvrp show gvrp igmp_snooping Show igmp_snooping information ipif Used to display the configuration of an IP interface on the Switch. iproute show iproute
link_aggregation show link_aggregation More: <space>, Quit: q, One line: <return>
Figure 2-3. Example Command Parameter Help
In this case, the command show was entered without a parameter. The CLI will then prompt you to enter the next possible completions 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 a previously entered command at the command prompt, press the up arrow cursor key. The previous command will appear at the command prompt.
DGS3048# config account Command: config account
WORD<1-15> username DGS3048# config account Command: config account WORD<1-15> username
DGS3048#
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.
6
DGS-3048 Layer 2 Switch CLI Reference Manual
DGS3048# the
clear clear config config create create crypto Cryptographic commands debug-mode Exit from the EXEC to debug mode delete delete dir display all commands. disable disable download download enable enable login log in a user to the switch's console. logout log out a user from the switch's console. ping test the connectivity between network devices. reboot restart the switch. reset reset the switch to the factory default settings. save save changes in the switch's configuration to non-volatile ram. show show upload upload the current switch settings or the switch history log to a tftp server. DGS3048# the
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.
DGS3048# show Command: show
802.1p 80.21p
802.1x 802.1x information
account display user accounts. arpentry Display the current contents of the Switch's ARP table. authen authen authen_enable display the method list of authentication methods for promoting normal user level privileges to
7
DGS-3048 Layer 2 Switch CLI Reference Manual
administrator level privileges on the switch. authen_login display a previously configured user defined method
list of authentication methods for users logging on to the switch. command_history display the command history. configuration configuration cpu cpu crypto Cryptographic commands error display the error statistics for a range of ports. fdb show fdb gvrp show gvrp igmp_snooping Show igmp_snooping information ipif Used to display the configuration of an IP interface on the Switch. iproute show iproute More: <space>, Quit: q, One line: <return>
Figure 2-6. Next possible completions: show command
In the above example, all of the possible next parameters for the show command are displayed. At the next command prompt, the up arrow was used to re-enter the show command, followed by the account parameter. The CLI then displays the user accounts configured on the Switch.
8
DGS-3048 Layer 2 Switch CLI Reference 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, you must supply an IP interface name in the
Example Command
create ipif <ipif_name> vlan <vlan_name 32> ipaddress <network_address>
<ipif_name> space, a VLAN name in the <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
create account [admin | user]
In the above syntax example, you must specify either an admin or a user
level account to be created. Do not type the square brackets.
create account admin
| vertical bar
Purpose Separates two or more mutually exclusive items in a list, one of which must
be entered. Syntax Description
Example Command
show snmp [community | detail]
In the above syntax example, you must specify either community, or
detail. Do not type the vertical bar.
show snmp community
9
DGS-3048 Layer 2 Switch CLI Reference Manual
{braces}
Purpose Encloses an optional value or set of optional arguments. Syntax Description
Example command
reset {[config | system]} In the above syntax example, you have the option to specify config or
system. It is not necessary to specify either optional value, however the
effect of the system reset is dependent on which, if any, value is specified. Therefore, with this example there are three possible outcomes of performing a system reset. See the chapter Basic Commands for more 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.
q Stops the display of remaining pages when multiple pages are to be
displayed.
Enter Displays the next line or table entry.
10
DGS-3048 Layer 2 Switch CLI Reference Manual
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.
Command Parameters
create account [admin | user] <username 15> config account <username 15> show account delete account <username 15> show session show switch show serial_port config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] auto_logout [never |
2_minutes | 5_minutes| 10_minutes | 15_minutes]} enable clipaging disable clipaging enable web <tcp_port_number 1-65535> disable web save reboot reset login logout ping <ipaddr> {times <value 1-255>} {timeout <sec 1-99>} show CPU Utilization show configuration enable jumbo_frame disable jumbo_frame show jumbo_frame
11
DGS-3048 Layer 2 Switch CLI Reference Manual
Each command is listed, in detail, in the following sections.
create account
Purpose Used to create user accounts. Syntax Description The create account command is used to create user accounts that
Parameters admin <username>
Restrictions Only Administrator-level users can issue this command.
Example usage:
To create an administrator-level user account with the username “dlink”.
create [admin | user] <username 15>
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.
user <username>
Usernames can be between 1 and 15 characters. Passwords can be between 0 and 15 characters.
DGS3048#:4#create account admin dlink Command: create account admin dlink
Enter a case-sensitive new password:**** Enter the new password again for confirmation:**** Success.
DGS3048#:4#
config account
Purpose Used to configure user accounts. Syntax Description The config account command configures a user account that has
Parameters <username> Restrictions Only Administrator-level users can issue this command.
config account <username 15 >
been created using the create account command.
Usernames can be between 1 and 15 characters. Passwords can be between 0 and 15 characters.
12
Example usage:
To configure the user password of “dlink” account:
show account
Purpose Used to display user accounts.
DGS-3048 Layer 2 Switch CLI Reference Manual
DGS3048#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.
DGS3048#
Syntax Description Displays all user accounts created on the Switch. Up to 8 user
Parameters None. Restrictions None.
Example usage:
To display the accounts that have been created:
show account
accounts can exist on the Switch at one time.
DGS3048#show account Command: show account
Current Accounts: Username Access Level
--------------- -----------­dlink Admin
Total Entries: 1
DGS3048#
delete account
Purpose Used to delete an existing user account. Syntax Description The delete account command deletes a user account that has been
Parameters <username> Restrictions Only Administrator-level users can issue this command.
Example usage:
delete account <username 15>
created using the create account command.
13
DGS-3048 Layer 2 Switch CLI Reference Manual
To delete the user account “System”:
DGS3048#delete account System Command: delete account System
Are you sure to delete the last administrator account?(y/n) Success.
DGS3048#
show session
Purpose Used to display a list of currently logged-in users. Syntax Description This command displays a list of all the users that are logged-in at
Parameters None. Restrictions None.
Example usage:
To display the way that the users logged in:
show session
the time the command is issued.
DGS3048#show session Command: show session
DGS3048# show session ID Protocol From Level Name
---- ------------ ---------------- ----- ---------------------­ 0 HTTP 10.6.10.43 15 admin 1 HTTP 10.6.10.43 15 admin 2 Telnet 10.6.60.13 15 admin
DGS3048#
show switch
Purpose Used to display information about the Switch. Syntax Description This command displays information about the Switch. Parameters None. Restrictions None.
Example usage:
show switch
14
DGS-3048 Layer 2 Switch CLI Reference Manual
To display the Switch information:
DGS3048#show switch Command: show switch
Device Type : DGS3048# Gigabit-Ethernet Switch 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.004 Firmware Version : Build 2.00-B04 Hardware Version : 1A1 System Name : DGS3048#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 : Enabled
DGS3048#
show serial_port
Purpose Used to display the current serial port settings. Syntax Description This command displays the current serial port settings. Parameters None. Restrictions None.
Example usage:
To display the serial port setting:
show serial_port
DGS3048# show serial_port Command: show serial_port
Baud Rate : 9600 Data Bits : 8 Parity Bits : None Stop Bits : 1 Auto-Logout : 10 mins
DGS3048#
15
DGS-3048 Layer 2 Switch CLI Reference Manual
config serial_port
Purpose Used to configure the serial port. Syntax
Description
Parameters
config serial_port {baud_rate [9600 | 19200 | 38400 | 115200] auto_logout [never | 2_minutes | 5_minutes| 10_minutes | 15_minutes]}
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 that will be used to communicate with the management host.
auto_logout - This parameter will allow the user to choose the time the Switch’s serial port will be idle before automatically logging out. The user may choose one of the following.
never − No time limit on the length of time the console can be open with no user input.
2_minutes The console will log out the current user if there is no user input for 2 minutes.
5_minutes The console will log out the current user if there is no user input for 5 minutes.
10_minutes − The console will log out the current user if there is no user input for 10 minutes.
15_minutes The console will log out the current user if there is no user input for 15 minutes.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the baud rate:
DGS3048# config serial_port baud_rate 9600 Command: config serial_port baud_rate 9600
Success.
DGS3048#
16
DGS-3048 Layer 2 Switch CLI Reference Manual
enable clipaging
Purpose Used to pause the scrolling of the console screen when the show
command displays more than one page. Syntax Description This command is used when issuing a command which causes the
Parameters None. Restrictions Only administrator-level users can issue this command.
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
disable clipaging
enable clipaging
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.
DGS3048# enable clipaging Command: enable clipaging
Success.
DGS3048#
Purpose Used to disable the pausing of the console screen scrolling at the
Syntax Description This command is used to disable the pausing of the console screen
Parameters None. Restrictions Only administrator-level users can issue this command.
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
end of each page when the command displays more than one screen of information.
disable clipaging
at the end of each page when the command would display more than one screen of information.
DGS3048# disable clipaging Command: disable clipaging
Success.
DGS3048#
17
DGS-3048 Layer 2 Switch CLI Reference Manual
enable web
Purpose Used to enable the HTTP-based management software on the
Switch. Syntax Description This command is used to enable the Web-based management
Parameters
Restrictions Only administrator-level users can issue this command.
Example usage:
To enable HTTP and configure port number:
disable web
enable web <tcp_port_number 1-65535>
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.
DGS3048# enable web 80 Command: enable web 80
Success.
DGS3048#
Purpose Used to disable the HTTP-based management software on the
Syntax Description This command disables the Web-based management software on
Parameters None. Restrictions Only administrator-level users can issue this command.
Example usage:
To disable HTTP:
Switch.
disable web
the Switch.
DGS3048# disable web Command: disable web
Success.
DGS3048#
18
DGS-3048 Layer 2 Switch CLI Reference Manual
save
Purpose Used to save changes in the Switch’s configuration to non-volatile
RAM. Syntax Description This command is used to enter the current switch configuration into
Parameters None. Restrictions Only administrator-level users can issue this command.
Example usage:
To save the Switch’s current configuration to non-volatile RAM:
reboot
Purpose Used to restart the Switch.
save
non-volatile RAM. The saved switch configuration will be loaded into
the Switch’s memory each time the Switch is restarted.
DGS3048#save Command: save
Saving all configurations to NV-RAM... Done.
DGS3048#
Syntax Description This command is used to restart the Switch. Parameters None. Restrictions None.
Example usage:
To restart the Switch:
DGS3048# reboot Command: reboot Are you sure want to proceed with the system reboot? (y/n)
reboot
19
DGS-3048 Layer 2 Switch CLI Reference Manual
reset
Purpose Used to reset the Switch to the factory default settings. Syntax Description This command is used to restore the Switch’s configuration to the
Parameters
Restrictions Only administrator-level users can issue this command.
Example usage:
To restore all of the Switch’ s parameters to their default values:
DGS3048# reset config Command: reset config
Success.
DGS3048#
reset
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.
login
Purpose Used to log in a user to the Switch’s console. Syntax Description This command is used to initiate the login procedure. The user will be
Parameters None. Restrictions None.
Example usage:
To initiate the login procedure:
DGS3048#login Command: login UserName:
login
prompted for his Username and Password.
20
DGS-3048 Layer 2 Switch CLI Reference Manual
logout
Purpose Used to log out a user from the Switch’s console. Syntax Description This command terminates the current user’s session on the Switch’s
Parameters None. Restrictions None.
Example usage:
To terminate the current user’s console session:
ping
Purpose Used to test the connectivity between network devices. Syntax Description The ping command sends Internet Control Message Protocol
Parameters <ipaddr> - Specifies the IP address of the host.
logout
console.
DGS3048#logout
ping <ipaddr> {times <value 1-255>} {timeout <sec 1-99>}
(ICMP) echo messages to a remote IP address. The remote IP address will then “echo” or return the message. This is used to confirm connectivity between the Switch and the remote device.
times <value 1-255> - The number of individual ICMP echo messages to be sent. The maximum value is 255. The default is
0. timeout <sec 1-99> - Defines the time-out period while waiting for
a response from the remote device. A value of 1 to 99 seconds can be specified. The default is 1 second.
Pinging an IP address without the times parameter will ping the target device an infinite amount of times.
Restrictions None.
21
DGS-3048 Layer 2 Switch CLI Reference Manual
Example usage:
To ping the IP address 10.48.74.121 four times:
DGS3048#ping 10.48.74.121 times 4 Command: ping 10.48.74.121
Reply from 10.48.74.121, time<10ms Reply from 10.48.74.121, time<10ms Reply from 10.48.74.121, time<10ms Reply from 10.48.74.121, time<10ms
Ping statistics for 10.48.74.121 Packets: Sent =4, Received =4, Lost =0
DGS3048#
Show CPU Utilization
Purpose Used to measuring CPU utilization. Syntax Description This command presents information about CPU utilization Parameters None. Restrictions None.
Example usage:
To show utilization information:
show cpu utilization
DGS3048# show cpu utilization CPU utilization service is on.
CPU utilization
--------------­five seconds:2% ;one minute:1% ;five minutes:1% DGS3048#
Show Configuration
Purpose Used to show configuration. Syntax Description This command shows configuration. Parameters None. Restrictions None.
Example usage:
show configuration
22
DGS-3048 Layer 2 Switch CLI Reference Manual
To show configuration information:
DGS3048# show configuration
Command: show configuration
running running-config startup startup-config
DGS3048# show configuration
enable jumbo_frame
Purpose Used to enable jumbo frames on the device. Syntax Description The port jumbo-frame command enables jumbo frames on the
Parameters None. Restrictions None.
Example usage:
To enable jumbo frames:
disable jumbo_frame
Purpose Used to disable Jumbo frames on the device. Syntax
enable jumbo_frame
device.
DGS3048# enable jumbo_frame
Success. DGS3048#
disable jumbo_frame
Description The disable jumbo_frame disables jumbo frames on the device. Parameters None. Restrictions None.
Example usage:
23
DGS-3048 Layer 2 Switch CLI Reference Manual
To disable jumbo_frames:
DGS3048# disable jumbo_frame
Success. DGS3048#
show jumbo_frame
Purpose Used to display the jumbo frame configuration. Syntax Description The show ports jumbo-frame displays the configuration of jumbo
Parameters None. Restrictions None.
Example usage:
To show the configuration of jumbo_frames status on the dev ice:
show ports jumbo-frame
frames.
DGS3048# show jumbo_frame
Jumbo frames are disabled.
Jumbo frames will be enabled after save and restart.
DGS3048#
24
DGS-3048 Layer 2 Switch CLI Reference Manual
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.
Command Parameters
config ports [<portlist> | all] {speed [auto | 10_half | 10_full | 100_half |
100_full | 1000_full {[master | slave]}] | flow_control [enable | disable] | learning [enable | disable] | state [enable |
disable]} show ports {<portlist>} config ports description <portlist> <string 1-64> delete ports description <portlist> show ports description {<portlist>}
Each command is listed, in detail, in the following sections.
25
DGS-3048 Layer 2 Switch CLI Reference Manual
config ports
Purpose Used to configure the Switch’s Ethernet port settings. Syntax
Description This command allows for the configuration of the Switch’s Ethernet ports.
Parameters
config ports [all | <portlist>] {speed [auto | 10_half | 10_full | 100_half | 100_full | 1000_full] | flow_control [enable | disable] | learning [enable | disable] | state [enable | disable]}
Only the ports listed in the <portlist> will be affected. <portlist> Specifies a range of ports to be configured. all Configure all ports on the Switch. speed – Allows the user to set the speed of a port or range of ports, with
the addition of one of the following:
auto Enables auto-negotiation for the specified range of ports. [10 | 100 | 1000] Configures the speed in Mbps for the specified
range of ports. The [half | full] − Configures the specified range of ports as either full-
or half-duplex.
[master | slave] – The master and slave parameters refer to connections running a 1000BASE-T cable for connection between the Switch port and other device capable of a gigabit connection. The master setting will allow the port to advertise capabilities related to duplex, speed and physical layer type. The master setting will also determine the master and slave relationship between the two connected physical layers. This relationship is necessary for establishing the timing control between the two physical layers. The timing control is set on a master physical layer by a local source. The slave setting uses loop timing, where the timing comes form a data stream received from the master. If one connection is set for 1000 master, the other side of the connection must be set for 1000 slave. Any other configuration will result in a link down status for both ports.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure the speed of ports 1-3 to be 10 Mbps, full duplex, learning and state enabled:
flow_control [enable | disable] – Enable or disable flow control for the specified ports.
learning [enable | disable] Enables or disables the MAC address learning on the specified range of ports.
state [enable | disable] − Enables or disables the specified range of ports.
DGS3048#config ports 1-3 speed 10_full learning enable state enable Command: config ports 1-3 speed 10_full learning enable state enable
Success.
DGS3048#
26
Loading...
+ 148 hidden pages