D-Link DGS-3130 Notes

From AN!Wiki
Revision as of 19:41, 12 April 2020 by Digimer (Talk | contribs)

Jump to: navigation, search

 AN!Wiki :: D-Link DGS-3130 Notes

This covers the steps needed to configure a pair of D-Link DGS-3130 series switches for use in an Anvil! system.

Template note icon.png
Note: Before forming the switch, configure each to have a user account, unique IP address, and that both switches have matching firmware versions (and upgrade if wanted/needed) before forming the stack.


Console Access

Template note icon.png
Note: This tutorial assumes the serial device is /dev/ttyUSB0. Change it to suit your system as needed.
  • Using screen;
screen /dev/ttyUSB0 115200

If you see a blank screen, press <enter> to have the terminal refresh. You should see a screen like:

                 DGS-3130-30TS Gigabit Ethernet Switch
                          Command Line Interface
                            Firmware: 1.01.B027
           Copyright(C) 2018 D-Link Corporation. All rights reserved.

Set the User Account

By default, there is no user account or password on the switch. We will create one with the user admin and the password Initial1. The privilege level 15 makes the user an administrator. The login local tells the switch to require a login in the future.

Switch#configure terminal
Switch(config)#username admin password Initial1
Switch(config)#username admin privilege 15  
Switch(config)#line console
Switch(config-line)#login local

Set the IP

Template note icon.png
Note: As of firmware v1.10.057, it does not appear to be possible to set/change the IP address via the web interface.
Template note icon.png
Note: Remember to set switch 1 as and switch 2 as

The default VLAN is 1, which is what we'll switch to before setting the IP address

Switch#configure terminal 
Switch(config)#interface vlan 1
Switch(config-if)#ip address

You can now access the web interface for the switch for the remainder of the configuration.

Web Interface

Web interface login. Use the user name and password set earlier (admin / Initial1 in this guide.
Template note icon.png
Note: For some reason known to D-Link only, they use flash to show the usage statistics in their web interface. As such, you will need to enable flash in Chrome and/or install adobe flash in your browser of choice.
Web interface main page.

Update the Firmware

Template note icon.png
Note: It is _strongly_ advised that both switches have matching firmware version before forming the stack.

If your pair of switches have mismatched firmware, or if a newer firmware is available and you would like to update, you need to know your hardware revision number and current firmware version.

From the web interface, be sure that the switch model number at the top of the selection tree in the left panel is selected. In the panel on the right, Firmware Version and Hardware Version are displayed.

Finding the firmware and hardware versions.

To check for and download the latest firmware, go to D-Link's support site. Choose your hardware version from the selection box, and then download and extract the latest Firmware.

The firmware upgrade process is a little ... confusing. The process will be;

  1. Use the firmware menu to upload the firmware to the switch.
  2. Find the firmware file in the File System and select it for use on Boot.
  3. Reboot the switch

Once downloaded and extracted, on the top panel, click on Tools -> Firmware Upgrade & Backup -> Firmware Upgrade from HTTP.

Finding the firmware upgrade menu.

On the firmware update page, there are two fields. The Source File selects the firmware file to upload to the switch. The Destination File is the name the file will have on the switch. Copy the firmware file's name (DGS3130_RUN_1.10.052.img in this example).

Ready to upload the firmware.
Template note icon.png
Note: Despite the button saying Upgrade, it doesn't, it just uploads the file.

When you click on Upgrade, the file is uploaded.

The file uploads...
Upload completed.

On the left panel, under Management, click on File System. On the right, under the Drive column, click on c:.

File System menu.

Under the Name column, look for the name you gave to the uploaded file, DGS3130_RUN_1.10.052.img in our example. To the right, click on the Boot Up button (if it's grayed out, it's been selected already).

Selecting to boot up on the new firmware image.

The next time the switch reboots, it will be on the new firmware. Confirm this by clicking on the switch model number of the left panel after the next reboot.

Saving The Configuration and Rebooting The Switch

Configuration changes are not committed to memory until the configuration is saved. Best as we can tell (and without any useful guidance from the manual), saving the configuration is only available when you reboot the switch. Without this, if the switch reboots otherwise (ie: a power loss event), the changes are lost.

To boot the new firmware (if updated), and to ensure the new configuration will be preserved through reboots, the switch will need to be manually rebooted.

Reboot menu.

Click on Tools on the top menu bar, then on Reboot System.

Save and reboot.

Click to select the Do you want to save your changes? -> Yes radio button, and then click Reboot.

The switch will take a minute or so to reboot, be patient.

Forming the Stack

Template warning icon.png
Warning: Connecting 2+ stack cables before the stack is formed will cause a broadcast storm! Connect only one stack cable initially.


General Notes

Command Line Notes


  • You can specify a port range with: 1/0/1-1/0/4,2/0/1-2/0/4 (and variations of). This can be used anyplace you see PORTLIST in the built-in help.

Port Status

  • You can see (non-stacked) ports with show interfaces Ethernet status, or a specific range with show interfaces Ethernet PORTLIST status.

Check/Set MTU (aka Jumboframes)

The MTU on these switches is 9 KiB (9216 Bytes).

Factory Reset


This will reset the switch (or if in a stack, both/all switches in the stack) to the factory default configuration.

Switch#reset system
This command will clear the system's configuration to the factory
default settings, including the IP address and stacking settings.
Clear system configuration, save, reboot? (y/n) [n] y
Saving configurations and logs to NV-RAM...... Done.
Please wait, the switch is rebooting...Rebooting system!



Any questions, feedback, advice, complaints or meanderings are welcome.
Us: Alteeve's Niche! Support: Mailing List IRC: #clusterlabs on Freenode   © Alteeve's Niche! Inc. 1997-2019
legal stuff: All info is provided "As-Is". Do not use anything here unless you are willing and able to take responsibility for your own actions.
Personal tools