D-Link DGS-3130 Notes
AN!Wiki :: D-Link DGS-3130 Notes
|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.|
|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. Switch>
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>enable Switch#configure terminal Switch(config)#username admin password Initial1 Switch(config)#username admin privilege 15 Switch(config)#line console Switch(config-line)#login local Switch(config-line)#end Switch#
Set the IP
|Note: As of firmware v1.10.057, it does not appear to be possible to set/change the IP address via the web interface.|
|Note: Remember to set switch 1 as 10.20.1.1 and switch 2 as 10.20.1.2.|
The default VLAN is 1, which is what we'll switch to before setting the IP address 10.20.1.1.
Switch#configure terminal Switch(config)#interface vlan 1 Switch(config-if)#ip address 10.20.1.1 255.255.0.0 Switch(config-if)#end Switch#
You can now access the web interface for the switch for the remainder of the configuration.
|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.|
Update the Firmware
|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.
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;
- Use the firmware menu to upload the firmware to the switch.
- Find the firmware file in the File System and select it for use on Boot.
- Reboot the switch
Once downloaded and extracted, on the top panel, click on Tools -> Firmware Upgrade & Backup -> Firmware Upgrade from HTTP.
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).
|Note: Despite the button saying Upgrade, it doesn't, it just uploads the file.|
When you click on Upgrade, the file is uploaded.
On the left panel, under Management, click on File System. On the right, under the Drive column, click on c:.
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).
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.
Click on Tools on the top menu bar, then on Reboot System.
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
|Warning: Connecting 2+ stack cables before the stack is formed will cause a broadcast storm! Connect only one stack cable initially.|
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.
- 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).
This will reset the switch (or if in a stack, both/all switches in the stack) to the factory default configuration.
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.|