Difference between revisions of "D-Link DGS-3130 Notes"
(→Saving The Configuration and Rebooting The Switch) |
(→Forming the Stack) |
||
Line 138: | Line 138: | ||
= Forming the Stack = | = Forming the Stack = | ||
+ | |||
+ | {{warning|1=Connecting 2+ stack cables before the stack is formed will cause a broadcast storm! Connect only one stack cable initially.}} | ||
[[image:dgs-3130-setup-stack-01.png|thumb|center|1200px|]] | [[image:dgs-3130-setup-stack-01.png|thumb|center|1200px|]] |
Revision as of 05:15, 12 April 2020
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.
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. |
Contents |
Console Access
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: 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.
Web Interface
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. |
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. |