DWS-3160 Series CLI Reference Guide
Page 6
Upon initial connection to enter commands after the command prompt (DWS-3160-24PC:admin#) appears. 2 This section will explain how to this Switch. All rights reserved. UserName: PassWord: DWS-3160-24PC:admin# By default, there is no Username and Password configured in the terminal. After press ... will be given to the Switch, the login screen appears (see example below). DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. The Switch supports user-based security that can allow the user to simply connect...
Upon initial connection to enter commands after the command prompt (DWS-3160-24PC:admin#) appears. 2 This section will explain how to this Switch. All rights reserved. UserName: PassWord: DWS-3160-24PC:admin# By default, there is no Username and Password configured in the terminal. After press ... will be given to the Switch, the login screen appears (see example below). DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. The Switch supports user-based security that can allow the user to simply connect...
DWS-3160 Series CLI Reference Guide
Page 19
... CLI command, that the usage and description information is needed from, here. DWS-3160-24PC:admin# 15 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin# logout Command: logout Logout DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. All rights reserved. ping Command: ping Usage: { times | timeout } Description...
... CLI command, that the usage and description information is needed from, here. DWS-3160-24PC:admin# 15 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin# logout Command: logout Logout DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. All rights reserved. ping Command: ping Usage: { times | timeout } Description...
DWS-3160 Series CLI Reference Guide
Page 22
... message (banner) will be returned to display the greeting message. Example To edit the banner: DWS-3160-24PC:admin#config greeting_message Command: config greeting_message Greeting Messages Editor DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. All rights reserved Ctrl+C Quit without save left/right/ Ctrl+W Save and quit...
... message (banner) will be returned to display the greeting message. Example To edit the banner: DWS-3160-24PC:admin#config greeting_message Command: config greeting_message Greeting Messages Editor DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. All rights reserved Ctrl+C Quit without save left/right/ Ctrl+W Save and quit...
DWS-3160 Series CLI Reference Guide
Page 23
.... Restrictions Only Administrators and Operators can issue this command. 19 Example To display the greeting message: DWS-3160-24PC:admin#show greeting_message Command: show greeting_message DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. Enter the new command prompt string of 16 characters, or to its original factory default...
.... Restrictions Only Administrators and Operators can issue this command. 19 Example To display the greeting message: DWS-3160-24PC:admin#show greeting_message Command: show greeting_message DWS-3160-24PC Gigabit Ethernet Switch Command Line Interface Firmware: Build 1.00.034 Copyright(C) 2012 D-Link Corporation. Enter the new command prompt string of 16 characters, or to its original factory default...
DWS-3160 Series CLI Reference Guide
Page 27
...transceiver type. details - (Optional) Displays the port details. Restrictions None. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide Format show ports details Port : 1 Port Status : Link Down Description : HardWare Type : Gigabits Ethernet MAC Address : 00-11-22... Previous Page r Refresh 23 Specifies a range of ports to be included in the display . Example To display the port details: DWS-3160-24PC:admin#show ports details Command: show ports {} {[description | err_disabled | details | media_type]} Parameters ports - err_disabled - (Optional) ...
...transceiver type. details - (Optional) Displays the port details. Restrictions None. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide Format show ports details Port : 1 Port Status : Link Down Description : HardWare Type : Gigabits Ethernet MAC Address : 00-11-22... Previous Page r Refresh 23 Specifies a range of ports to be included in the display . Example To display the port details: DWS-3160-24PC:admin#show ports details Command: show ports {} {[description | err_disabled | details | media_type]} Parameters ports - err_disabled - (Optional) ...
DWS-3160 Series CLI Reference Guide
Page 152
... address is not configured and the IPv6 processing will be disabled. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin#show ipif Command: show ipif IP Interface VLAN Name Interface Admin State Link Status IPv4 Address Proxy ARP IPv4 State : Inter2 : default : Enabled : LinkUp : 192.168.16.1/24 (Manual) Secondary : Disabled...
... address is not configured and the IPv6 processing will be disabled. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin#show ipif Command: show ipif IP Interface VLAN Name Interface Admin State Link Status IPv4 Address Proxy ARP IPv4 State : Inter2 : default : Enabled : LinkUp : 192.168.16.1/24 (Manual) Secondary : Disabled...
DWS-3160 Series CLI Reference Guide
Page 153
... be up to 12 characters long. Format show ipif_ipv6_link_local_auto Description This commands is used here. DWS-3160-24PC:admin# 12-20 disable ipif_ipv6_link_local_auto Description This command is used here. Example To disable the IP interface for IPv6 link local automatic: DWS-3160-24PC:admin#disable ipif_ipv6_link_local_auto newone Command: disable ipif_ipv6_link_local_auto newone Success. Specifies that all the IP...
... be up to 12 characters long. Format show ipif_ipv6_link_local_auto Description This commands is used here. DWS-3160-24PC:admin# 12-20 disable ipif_ipv6_link_local_auto Description This command is used here. Example To disable the IP interface for IPv6 link local automatic: DWS-3160-24PC:admin#disable ipif_ipv6_link_local_auto newone Command: disable ipif_ipv6_link_local_auto newone Success. Specifies that all the IP...
DWS-3160 Series CLI Reference Guide
Page 154
Restrictions Only Administrators, Operators and Power-Users can issue this command. Example T o display the link local address automatic configuration state. DWS-3160-24PC:admin#show ipif_ipv6_link_local_auto Command: show ipif_ipv6_link_local_auto IPIF: System Automatic Link Local Address: Enabled DWS-3160-24PC:admin# 150 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide characters long.
Restrictions Only Administrators, Operators and Power-Users can issue this command. Example T o display the link local address automatic configuration state. DWS-3160-24PC:admin#show ipif_ipv6_link_local_auto Command: show ipif_ipv6_link_local_auto IPIF: System Automatic Link Local Address: Enabled DWS-3160-24PC:admin# 150 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide characters long.
DWS-3160 Series CLI Reference Guide
Page 161
DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide Example Test the cable on port 1, 2, 3, 23 and 24: DWS-3160-24PC:admin#cable_diag ports 1,2,3,23,24 Command: cable_diag ports 1-3,23-24 Perform Cable Diagnostics ... Port -----1 2 3 23 24 Type ---------1000BASE-T 1000BASE-T 1000BASE-T 1000BASE-T 1000BASE-T Link Status Link Up Link Up Link Down Link Up Link Down Test Result OK OK Pair 1 Open at 3M Pair 2 Open at 3M Pair 3 Open at 3M Pair 4 Open at 3M OK No Cable Cable Length (M 1 1 - 4 - DWS-3160-24PC:admin# 157
DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide Example Test the cable on port 1, 2, 3, 23 and 24: DWS-3160-24PC:admin#cable_diag ports 1,2,3,23,24 Command: cable_diag ports 1-3,23-24 Perform Cable Diagnostics ... Port -----1 2 3 23 24 Type ---------1000BASE-T 1000BASE-T 1000BASE-T 1000BASE-T 1000BASE-T Link Status Link Up Link Up Link Down Link Up Link Down Test Result OK OK Pair 1 Open at 3M Pair 2 Open at 3M Pair 3 Open at 3M Pair 4 Open at 3M OK No Cable Cable Length (M 1 1 - 4 - DWS-3160-24PC:admin# 157
DWS-3160 Series CLI Reference Guide
Page 210
... Next Entry a All The following example illustrates how the special filters 'modified' affect the configuration display: DWS-3160-24PC:admin#show config modified Command: show config modified # DWS-3160-24PC Gigabit Ethernet Switch # Configuration # # Firmware: Build 1.00.034 # Copyright(C) 2012 D-Link Corporation. The lower level setting will be displayed when the higher level setting is implied. file...
... Next Entry a All The following example illustrates how the special filters 'modified' affect the configuration display: DWS-3160-24PC:admin#show config modified Command: show config modified # DWS-3160-24PC Gigabit Ethernet Switch # Configuration # # Firmware: Build 1.00.034 # Copyright(C) 2012 D-Link Corporation. The lower level setting will be displayed when the higher level setting is implied. file...
DWS-3160 Series CLI Reference Guide
Page 211
... a All 18-2 config configuration Description This command is required when multiple configuration files are supported. boot_up - (Optional) Specifies it as a boot up : 207 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin#show config effective Command: show config effective # DWS-3160-24PC Gigabit Ethernet Switch # Configuration # # Firmware: Build 1.00.034 # Copyright(C) 2012 D-Link Corporation.
... a All 18-2 config configuration Description This command is required when multiple configuration files are supported. boot_up - (Optional) Specifies it as a boot up : 207 DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide DWS-3160-24PC:admin#show config effective Command: show config effective # DWS-3160-24PC Gigabit Ethernet Switch # Configuration # # Firmware: Build 1.00.034 # Copyright(C) 2012 D-Link Corporation.
DWS-3160 Series CLI Reference Guide
Page 215
...7. Example To create a maintenance domain called "op_domain" and assign a maintenance domain level of "2": DWS-3160-24PC:admin# create cfm md op_domain level 2 Command: create cfm md op_domain level 2 Success. DWS-3160-24PC:admin# 19-2 config cfm md Description This command is used to create a maintenance domain. Specifies ... here. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide 19-1 create cfm md Description This command is used to configure the parameters of a maintenance domain. It also allows the user to perform a loopback from an MEP to trace the link, MIP by...
...7. Example To create a maintenance domain called "op_domain" and assign a maintenance domain level of "2": DWS-3160-24PC:admin# create cfm md op_domain level 2 Command: create cfm md op_domain level 2 Success. DWS-3160-24PC:admin# 19-2 config cfm md Description This command is used to create a maintenance domain. Specifies ... here. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide 19-1 create cfm md Description This command is used to configure the parameters of a maintenance domain. It also allows the user to perform a loopback from an MEP to trace the link, MIP by...
DWS-3160 Series CLI Reference Guide
Page 225
MEPs created on that port, and the configuration can never generate or process CFM PDUs. If the user issues a Loopback or Link trace test on those MEPs, it will be disabled. enable - Format show cfm ports Description This command is used to display the CFM state of... on that the CFM function will be enabled. Specifies the logical port list. - Enter the list of specified ports. Example To configure the CFM ports: DWS-3160-24PC:admin#config cfm ports 2-5 state enable Command: config cfm ports 2-5 state enable Success. MEPs can still be created on that port can be saved. 3. ...
MEPs created on that port, and the configuration can never generate or process CFM PDUs. If the user issues a Loopback or Link trace test on those MEPs, it will be disabled. enable - Format show cfm ports Description This command is used to display the CFM state of... on that the CFM function will be enabled. Specifies the logical port list. - Enter the list of specified ports. Example To configure the CFM ports: DWS-3160-24PC:admin#config cfm ports 2-5 state enable Command: config cfm ports 2-5 state enable Success. MEPs can still be created on that port can be saved. 3. ...
DWS-3160 Series CLI Reference Guide
Page 231
...with an indication whether the Data TLV is used here. md_index - (Optional) Specifies the maintenance domain index. - Example To transmit a LBM: DWS-3160-24PC:admin# cfm loopback 00-01-02-03-04-05 mepname mep1 Command: cfm loopback 00-01-02-03-04-05 mepname mep1 Request timed out... (Optional) The 802.1p priority to issue a CFM link track message. This value must be up to 1500 characters long. Restrictions None. CFM loopback statistics for 00-01-02-03-04-05: Packets: Sent=4, Received=1, Lost=3(75% loss). DWS-3160-24PC:admin# 19-18 cfm linktrace Description This command is to...
...with an indication whether the Data TLV is used here. md_index - (Optional) Specifies the maintenance domain index. - Example To transmit a LBM: DWS-3160-24PC:admin# cfm loopback 00-01-02-03-04-05 mepname mep1 Command: cfm loopback 00-01-02-03-04-05 mepname mep1 Request timed out... (Optional) The 802.1p priority to issue a CFM link track message. This value must be up to 1500 characters long. Restrictions None. CFM loopback statistics for 00-01-02-03-04-05: Packets: Sent=4, Received=1, Lost=3(75% loss). DWS-3160-24PC:admin# 19-18 cfm linktrace Description This command is to...
DWS-3160 Series CLI Reference Guide
Page 232
ma_index - (Optional) Specifies the maintenance association index. - ttl - (Optional) Specifies the link trace message TTL value. The default value is 128. DWS-3160-24PC:admin# 19-19 show cfm linktrace [mepname | mepid md [ | md_index ] ma [ | ma_index ]] {trans_id } Parameters mepname - (Optional) Specifies the MEP name used here. This value must ...
ma_index - (Optional) Specifies the maintenance association index. - ttl - (Optional) Specifies the link trace message TTL value. The default value is 128. DWS-3160-24PC:admin# 19-19 show cfm linktrace [mepname | mepid md [ | md_index ] ma [ | ma_index ]] {trans_id } Parameters mepname - (Optional) Specifies the MEP name used here. This value must ...
DWS-3160 Series CLI Reference Guide
Page 233
... ID used here. trans_id - (Optional) Specifies the identifier of the transaction displayed. - Example To display the link trace reply when the "all MPs reply LTRs" function is enabled: DWS-3160-24PC:admin# show cfm linktrace mepname mep1 trans_id 26 Command: show cfm linktrace mepname mep1 trans_id 26 Transaction ID: 26... 00-33-44-55-66-77 Yes MPDB 3 00-11-22-33-44-55 No Hit DWS-3160-24PC:admin# To display the link trace reply when the "all MPs reply LTRs" function is disabled: DWS-3160-24PC:admin# show cfm linktrace mep mep1 trans_id 26 Command: show cfm linktrace mep mep1 trans_id 26...
... ID used here. trans_id - (Optional) Specifies the identifier of the transaction displayed. - Example To display the link trace reply when the "all MPs reply LTRs" function is enabled: DWS-3160-24PC:admin# show cfm linktrace mepname mep1 trans_id 26 Command: show cfm linktrace mepname mep1 trans_id 26 Transaction ID: 26... 00-33-44-55-66-77 Yes MPDB 3 00-11-22-33-44-55 No Hit DWS-3160-24PC:admin# To display the link trace reply when the "all MPs reply LTRs" function is disabled: DWS-3160-24PC:admin# show cfm linktrace mep mep1 trans_id 26 Command: show cfm linktrace mep mep1 trans_id 26...
DWS-3160 Series CLI Reference Guide
Page 234
md_index - (Optional) Specifies the maintenance domain index. - DWS-3160-24PC:admin# 19-21 show cfm mipccm Description This command is used to delete the stored link trace response data that have been initiated by the specified MEP. Format delete cfm linktrace {[md [ | md_index ] {ma [ | ma_index...Optional) Specifies the MEP ID used here. Example To delete the CFM link trace reply: DWS-3160-24PC:admin# delete cfm linktrace mepname mep1 Command: delete cfm linktrace mepname mep1 Success. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide 19-20 delete cfm ...
md_index - (Optional) Specifies the maintenance domain index. - DWS-3160-24PC:admin# 19-21 show cfm mipccm Description This command is used to delete the stored link trace response data that have been initiated by the specified MEP. Format delete cfm linktrace {[md [ | md_index ] {ma [ | ma_index...Optional) Specifies the MEP ID used here. Example To delete the CFM link trace reply: DWS-3160-24PC:admin# delete cfm linktrace mepname mep1 Command: delete cfm linktrace mepname mep1 Success. DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide 19-20 delete cfm ...
DWS-3160 Series CLI Reference Guide
Page 280
...'s system MAC address as remote ID. Use user-defined string as remote ID. Enter the user defined description here. DWS-3160-24PC:admin# 24-7 config dhcp_relay option_82 state Description This command is used to server without further check and processing on the behavior...To configure the remote ID of the DHCP Option 82 for the DHCP relay function: DWS-3160-24PC:admin#config dhcp_relay option_82 remote_id user_define "D-Link Switch" Command: config dhcp_relay option_82 remote_id user_define "D-Link Switch" Success. The space character is enabled, the DHCP packet will be disabled....
...'s system MAC address as remote ID. Use user-defined string as remote ID. Enter the user defined description here. DWS-3160-24PC:admin# 24-7 config dhcp_relay option_82 state Description This command is used to server without further check and processing on the behavior...To configure the remote ID of the DHCP Option 82 for the DHCP relay function: DWS-3160-24PC:admin#config dhcp_relay option_82 remote_id user_define "D-Link Switch" Command: config dhcp_relay option_82 remote_id user_define "D-Link Switch" Success. The space character is enabled, the DHCP packet will be disabled....
DWS-3160 Series CLI Reference Guide
Page 411
... mode detailed Command: show lldp local_ports 1 mode detailed Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 Port PVID : 1 Management Address Count : 1 Subtype : IPv4 Address : 192.168.69.123 IF Type : ... allocated power : : PSE : Supported : Enabled : Uncontrollable : 1 : 1 : Type 2 PSE : Primary power source : low : 0 : 0 Link Aggregation Aggregation Capability Aggregation Status Aggregation Port ID : : Aggregated : Not Currently in detailed mode. Port description on the display should use the same value as...
... mode detailed Command: show lldp local_ports 1 mode detailed Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 Port PVID : 1 Management Address Count : 1 Subtype : IPv4 Address : 192.168.69.123 IF Type : ... allocated power : : PSE : Supported : Enabled : Uncontrollable : 1 : 1 : Type 2 PSE : Primary power source : low : 0 : 0 Link Aggregation Aggregation Capability Aggregation Status Aggregation Port ID : : Aggregated : Not Currently in detailed mode. Port description on the display should use the same value as...
DWS-3160 Series CLI Reference Guide
Page 412
... mode normal Command: show lldp local_ports 1 mode normal Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 Port PVID : 1 Management Address Count : 1 PPVID Entries Count : 0 VLAN Name Entries Count : 1 Protocol ...show lldp local_ports 1 mode brief Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 DWS-3160-24PC:admin# 39-11 show lldp remote_ports {} [brief | normal | detailed] 408 Format show lldp remote_ports Description This command is...
... mode normal Command: show lldp local_ports 1 mode normal Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 Port PVID : 1 Management Address Count : 1 PPVID Entries Count : 0 VLAN Name Entries Count : 1 Protocol ...show lldp local_ports 1 mode brief Port ID : 1 Port ID Subtype : Local Port ID : 1/1 Port Description : D-Link DWS-3160-24PC R1.00.034 Port 1 DWS-3160-24PC:admin# 39-11 show lldp remote_ports {} [brief | normal | detailed] 408 Format show lldp remote_ports Description This command is...