Basic Switch Commands. D-Link DES-3550, DS-3550
Advertisement
Advertisement
4
B
ASIC
S
WITCH
C
OMMANDS
The basic switch commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the following table.
Command Parameters create account config account show account delete account show session show switch show serial_port
[admin|user]
<username 15>
<username 15>
<username 15> config serial_port {baud_rate [9600|19200|38400|115200] auto_logout [never|2_minutes|5_minutes
|10_minutes|15_minutes]} enable clipaging disable clipaging enable telnet <tcp_port_number 1-65535> disable telnet enable web <tcp_port_number 1-65535> disable web save reboot reset {[config|system]} login logout
Each command is listed, in detail, in the following sections.
create account
Purpose Used to create user accounts
Syntax
Description
Parameters
Restrictions create [admin | user] <username 15>
The create account command is used to create user accounts that consist of a username of 1 to 15 characters and a password of 0 to 15 characters. Up to 8 user accounts can be created.
Admin <username>
User <username>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
10
Example usage:
To create an administrator-level user account with the username “dlink”.
DES-3550:4#create account admin dlink
Command: create account admin dlink
Enter a case-sensitive new password:****
Enter the new password again for confirmation:****
Success.
DES-3550:4#
config account
Purpose Used to configure user accounts
Description
Parameters
Restrictions
The config account command configures a user account that has been created using the create account command.
<username>
Only Administrator-level users can issue this command.
Usernames can be between 1 and 15 characters.
Passwords can be between 0 and 15 characters.
Example usage:
To configure the user password of “dlink” account:
DES-3550: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.
DES-3550:4#
show account
Purpose Used to display user accounts
11
show account
Description Displays all user accounts created on the switch. Up to 8 user accounts can exist on the switch at one time.
Parameters
Restrictions
None.
Only Administrator-level users can issue this command.
Example usage:
To display the accounts that have been created:
DES-3550:4#show account
Command: show account
Current Accounts:
Username Access Level
--------------- ------------
dlink Admin
Total Entries: 1
DES-3550:4#
delete account
Purpose Used to delete an existing user account
Description
Parameters
Restrictions
The delete account command deletes a user account that has been created using the create account command.
<username>
Only Administrator-level users can issue this command.
Example usage:
To delete the user account “System”:
DES-3550:4#delete account System
Command: delete account System
Success.
DES-3550:4#
show session
Purpose Used to display a list of currently logged-in users.
12
show session
Description
Parameters
Restrictions
This command displays a list of all the users that are logged-in at the time the command is issued.
None
None.
Example usage:
To display the way that the users logged in:
DES-3550:4#show session
Command: show session
ID Login Time Live Time From Level Name
-- ------------------------------- --------- ------------ ----- -----------
*8 00000 days 00:00:37 03:36:27 Serial Port 4 Anonymous
show switch
Purpose Used to display information about the switch.
Description
Parameters
Restrictions
This command displays information about the switch.
None.
Only Administrator-level users can issue this command.
Example usage:
To display the switch information:
DES-3550:4#show switch
Command: show switch
Device Type : DES-3550 Fast Ethernet Switch
Combo Port : 1000Base-T + 1000Base-T
MAC Address : 00-01-02-03-04-00
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 3.00.001
Firmware Version : Build 1.00-B02
Hardware Version : 2A1
Device S/N :
Power Status : Main – Normal, Redundant – Not Present
System Name : DES-3550
13
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
Asymmetric VLAN : Disabled
DES-3550:4#
show serial_port
Purpose Used to display the current serial port settings.
Description
Parameters
Restrictions
This command displays the current serial port settings.
None.
None
Example usage:
To display the serial port setting:
DES-3550:4#show serial_port
Command: show serial_port
Baud Rate : 9600
Data Bits : 8
Parity Bits : None
Stop Bits : 1
Auto-Logout : 10 mins
DES-3550:4#
config serial_port
Purpose Used to configure the serial port and the auto logout time for idle connections.
Syntax config serial_port {baud_rate [9600|19200|38400|115200] | auto_logout [never | 2_minutes | 5_minutes | 10_minutes |
15_minutes]}
Description This command is used to configure the serial port’s baud rate and auto logout settings.
Parameters baud_rate[9600|19200|38400|115200] − The serial bit rate that will be used to communicate with the management host. There are four options: 9600,
14
config serial_port
19200, 38400, 115200. never − No time limit on the length of time the console can be open with no user input.
2_minutes − The console will log out the current user if there is no user input for 2 minutes.
5_minutes − The console will log out the current user if there is no user input for 5 minutes.
10_minutes − The console will log out the current user if there is no user input for 10 minutes.
15_minutes − The console will log out the current user if there is no user input for 15 minutes.
Restrictions Only administrator-level users can issue this command.
Example usage:
To configure baud rate:
DES-3550:4#config serial_port baud_rate 115200
Command: config serial_port baud_rate 115200
Success.
DES-3550:4#
enable clipaging
Purpose Used to pause the scrolling of the console screen when the show command displays more than one page.
Description
Parameters
Restrictions
This command is used when issuing the show command which causes the console screen to rapidly scroll through several pages.
This command will cause the console to pause at the end of each page. The default setting is enabled.
None.
Only administrator-level users can issue this command.
Example usage:
To enable pausing of the screen display when the show command output reaches the end of the page:
15
DES-3550:4#enable clipaging
Command: enable clipaging
Success.
DES-3550:4#
disable clipaging
Purpose 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.
Description
Parameters
Restrictions
This command is used to disable the pausing of the console screen at the end of each page when the show command would display more than one screen of information.
None.
Only administrator-level users can issue this command.
Example usage:
To disable pausing of the screen display when show command output reaches the end of the page:
DES-3550:4#disable clipaging
Command: disable clipaging
Success.
DES-3550:4#
enable telnet
Purpose Used to enable communication with and management of the switch using the Telnet protocol.
Syntax
Description
Parameters
Restrictions enable telnet <tcp_port_number 1-65535>
This command is used to enable the Telnet protocol on the switch.
The user can specify the TCP or UDP port number the switch will use to listen for Telnet requests.
<tcp_port_number> − The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” TCP port for the
Telnet protocol is 23.
Only administrator-level users can issue this command.
Example usage:
To enable Telnet and configure port number:
16
DES-3550:4#enable telnet 23
Command: enable telnet 23
Success.
DES-3550:4#
disable telnet
Purpose Used to disable the Telnet protocol on the switch.
Description
Parameters
Restrictions
This command is used to disable the Telnet protocol on the switch.
None.
Only administrator-level users can issue this command.
Example usage:
To disable the Telnet protocol on the switch:
DES-3550:4#disable telnet
Command: disable telnet
Success.
DES-3550:4#
enable web
Purpose
Syntax
Used to enable the HTTP-based management software on the switch. enable web <tcp_port_number 1-65535>
Description
Parameters
Restrictions
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> − The TCP port number. TCP ports are numbered between 1 and 65535. The “well-known” port for the Webbased management software is 80.
Only administrator-level users can issue this command.
Example usage:
To enable HTTP and configure port number:
17
DES-3550:4#enable web 80
Command: enable web 80
Success.
DES-3550:4#
disable web
Purpose Used to disable the HTTP-based management software on the switch.
Description
Parameters
Restrictions
Example usage:
To disable HTTP:
This command disables the Web-based management software on the switch.
None.
Only administrator-level users can issue this command.
DES-3550:4#disable web
Command: disable web
Success.
DES-3550:4#
save
Purpose Used to save changes in the switch’s configuration to non-volatile
RAM.
Syntax save
Description
Parameters
Restrictions
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.
None
Only administrator-level users can issue this command.
Example usage:
To save the switch’s current configuration to non-volatile RAM:
18
DES-3550:4#save
Command: save
Saving all configurations to NV-RAM... Done.
DES-3550:4#
reboot
Purpose Used to restart the switch.
Syntax reboot
Description This command is used to restart the switch.
Parameters
Restrictions
None.
None.
Example usage:
To restart the switch:
DES-3550: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 reset the switch to the factory default settings.
Description
Parameters
Restrictions
Example usage:
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.
19
To restore all of the switch’s parameters to their default values:
DES-3550:4#reset config
Command: reset config
Are you sure to proceed with system reset?(y/n)
Success.
DES-3550:4#
login
Purpose Used to log in a user to the switch’s console.
Syntax login
Description
Parameters
Restrictions
This command is used to initiate the login procedure. The user will be prompted for his Username and Password.
None.
None.
Example usage:
To initiate the login procedure:
DES-3550:4#login
Command: login
UserName:
logout
Purpose Used to log out a user from the switch’s console.
Syntax logout
Description This command terminates the current user’s session on the switch’s console.
Parameters
Restrictions
None.
None.
Example usage:
To terminate the current user’s console session:
DES-3550:4#logout
20
Download
Advertisement
Key features
Telnet, RMON, SNMPv1/v2c/v3
Basic switching RJ-45 Ethernet ports quantity: 50
1000BASE-T, 100BASE-TX, 10BASE-T
MAC address table: 8000 entries Switching capacity: 13.6 Gbit/s