Page 6 / 757 Scroll up to view Page 1 - 5
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
2
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.
Boot Procedure
1.10-B09
-----------------------------------------------------------------------------
Power On Self Test
......................................
100 %
MAC Address
: 00-19-5B-F5-26-C0
H/W Version
: 1A1G
Please wait, loading V2.80.B31 Runtime image
............
100 %
UART init
...............................................
100 %
Device Discovery
........................................
-
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 in 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.
DGS-3627:admin# config ipif System ipaddress 10.24.22.200/255.0.0.0
Command: config ipif System ipaddress 10.24.22.200/8
Success.
DGS-3627:admin#
Figure 1-3.
Assigning an IP Address
In the above example, the Switch was assigned an IP address of 10.24.22.200 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, SNMP MIB browser and the CLI or via the Web-based management agent using the above IP
address to connect to the Switch.
Page 7 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
3
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 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
115200 baud
8 data bits
No parity
One stop bit
No flow control
Users can also access the same functions over a Telnet interface. Once an IP address has been set for the Switch, users
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:
DGS-3627 Gigabit Ethernet Switch
Command Line Interface
Firmware: Build 2.80.B31
Copyright(C) 2010 D-Link Corporation. All rights reserved.
UserName:
PassWord:
DGS-3627:admin# _
Figure 2- 1.
Initial Console Screen after logging in
Commands are entered at the command prompt,
DGS-3627:admin#
.
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.
Page 8 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
4
DGS-3627:admin# ?
Command: ?
..
?
cable_diag ports
cd
clear
clear address_binding dhcp_snoop binding_entry ports
clear address_binding nd_snoop binding_entry ports
clear arptable
clear attack_log
clear bgp
clear bgp dampening
clear bgp flap_statistics
clear counters
clear dhcp_binding
clear dhcpv6 binding
clear fdb
clear ip prefix_list counter
clear jwac auth_state
clear log
clear mac_based_access_control auth_state
clear port_security_entry port
clear wac auth_state
CTRL+C ESC q
Quit
SPACE n
Next Page
Enter
Next Entry
a
All
Figure 2- 2.
The ? Command
When users enter a command without its required parameters, the CLI will prompt a
Next possible completions:
message.
DGS-3627:admin# config account
Command: config account
Next possible completions:
<username>
DGS-3627:admin#
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,
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, all of the next possible sub-commands can be seen, 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.
DGS-3627:admin# config account
Command: config account
Next possible completions:
<username>
DGS-3627:admin# config account
Figure 2- 4.
Using the Up Arrow to Re-enter a Command
Page 9 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
5
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 username 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.
DGS-3627:admin# the
Available commands:
..
?
cable_diag
cd
clear
config
copy
create
debug
delete
dir
disable
download
enable
erase
login
logout
no
ping
ping6
reboot
reconfig
rename
reset
save
show
telnet
traceroute
traceroute6
upload
DGS-3627:admin#
Figure 2- 5. Available Commands
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
create
command with no additional parameters, the CLI will then display all of the possible
next parameters.
DGS-3627:admin# create
Command: create
Next possible completions:
802.1x
access_profile
account
address_binding
arpentry
authen
authen_enable
authen_login
authentication
bgp
cpu
dhcp
dhcpv6
dot1v_protocol_group
double_vlan
erps
fdb
host_name
igmp_snooping
ip
ip_tunnel
ipif
ipmroute
iproute
ipv6
ipv6route
jwac
link_aggregation
loopback
mac_based_access_control
mac_based_access_control_local
mac_based_vlan
md5
mirror
multicast_fdb
multicast_range
nlb
ospf
ospfv3
pim
policy_route
route
route_map
rspan
sflow
snmp
stp
subnet_vlan
super_vlan
syslog
trusted_host
vlan
vlan_translation
vrrp
wac
DGS-3627:admin#
Figure 2- 6.
Next possible completions: Create command
In the above example, all of the possible next parameters for the
create
command are displayed.
Page 10 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
6
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
create ipif <ipif_name 12> <network_address> (<ip_addr/netmask>) <vlan_name 32>
{secondary | state [enable | disable]}
Description
In the above syntax example, users must supply an IP interface name in the <ipif_name>
space, a VLAN name in the <vlan_name 32> space, and the network address, including the
netmask, in the <network_address> (<ip_addr/netmask>) space. Do not type the angle
brackets.
Example Command
create ipif Engineering 10.24.22.5/255.0.0.0 Design
[square brackets]
Purpose
Encloses a required value or set of required arguments. One value or argument can be
specified.
Syntax
create account [admin | operator | user] <username 15>
Description
In the above syntax example, users must specify the
admin,
operator
, or
user
level account to
be created. Do not type the square brackets.
Example Command
create account admin ctsnow
| vertical bar
Purpose
Separates two or more mutually exclusive items in a list, one of which must be entered.
Syntax
create account [admin | operator |user] <username 15>
Description
In the above syntax example, you must specify the
admin,
operator
, or
user
level account to
be created. Do not type the backslash.
Example Command
create account admin ctsnow
{braces}
Purpose
Encloses an optional value or set of optional arguments.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top