6 Command Line Interface
D-Link Web Smart Switch User Manual
9
9
5
5
6
Command Line Interface
The D-Link SmartPro Switch allows a computer or terminal to perform some basic monitoring and
configuration tasks by using the Command Line Interface (CLI) via TELNET protocol.
To connect a switch via TELNET:
1. Make sure the network connection between the switch and PC is active.
2. To connect, launch any terminal software like HyperTerminal in Microsoft Windows, or just use the
command prompt by typing the command telnet followed by the switch IP address, eg. telnet 10.90.90.90.
3. The logon prompt will appear.
Logging on to the Command Line Interface:
Enter your User Name and Password to log in. The default user name and password is admin. Note that the
user name and password are case-sensitive. Press Enter in both the Username and Password fields. The
command prompt will appear as shown below (DGS-1500-28>):
DGS-1500-28 login: admin
Password:
DGS-1500-28>
Figure 6.1 – Command Prompt
The user session is automatically terminated if idle for the login timeout period. The default login timeout
period is 5 minutes. To change the login timeout session, please refer to chapter 5.
CLI Commands:
The Basic Switch commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command Syntax
Description of Usage
?
The ? Displays a list of CLI commands on the device.
download { firmware_fromTFTP |
cfg_fromTFTP} {<ipaddr> |
<ipv6addr>} <path_filename>
Download the firmware/configuration from TFTP server to
switch.
upload { firmware_toTFTP |
cfg_toTFTP} {<ipaddr> | <ipv6addr>}
<path_filename>
Upload the firmware or configuration from switch to TFTP
server.
config ipif <ipif_name> [ ipaddress
<ip-address> <subnet-mask> gateway
<gw-address> | dhcp | bootp ]
config ipif <ipif_name> <ipv6
ipv6address <ipv6networkaddr> |
dhcpv6_client <enable | disable>
Configure IP setting of interface.
logout
Logout from this session.
ping <ip_addr>
This command checks if another computer is on the network
and listens for connections.The terminal interface sends five
pings to the target station.
ping6 <ipv6addr>
This command checks if another computer is on the network
and listens for connections.The terminal interface sends five
pings to the target station.
reboot
This command reboots the system. All network connections
are terminated and the boot code executes.
reset config
Reset the device to factory default