D-Link DGS-3100 Switch User Manual


 
DGS-3100 Series Gigabit Stackable Managed Switch CLI Manual
33
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 Parameter
config ports
[all | <portlist> | <ch1–32>] {speed [auto | 10_half | 10_full | 100_half | 100_full |
1000_full] | flow_control [enable | disable | auto] | 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, as follows:
config ports
Purpose To configure the Switch’s Ethernet port settings.
Syntax
config ports [all | <portlist> | <ch1–32> ] {speed [auto | 10_half |
10_full | 100_half | 100_full | 1000_full] | flow_control [enable |
disable | auto] | learning [enable | disable] | state [enable |
disable]}
Description The config ports command configures the Switch’s Ethernet port
settings. Only the ports listed in the <portlist> are affected.
Parameters <portlist> A port or range of ports to be configured.
all Configures all ports on the Switch.
<ch1–32> A LAG or range of LAGs to be configured.
speed – Sets 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.
[half | full] Configures the specified range of ports as either
full or half-duplex.
flow_control [enable] – Enables flow control for the specified ports.
flow_control [disable] – Disables flow control for the specified ports.
flow_control [auto] – Specifies auto-negotiation of 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.