D-Link Notes

From AN!Wiki
Jump to: navigation, search

 AN!Wiki :: D-Link Notes

Template note icon.png
Note: If you're using a DGS-3130-x, please go to: D-Link DGS-3130 Notes.

Notes on setting up D-Link switches for high availability.


DGS-3120 Series

Connect Via Serial

Template note icon.png
Note: By default, the user name is admin and there is not password (just hit <enter>).

This assumes that your serial port is /dev/ttyUSB0.

screen /dev/ttyUSB0 115200

Reset To Factory Defaults

reset system
Command: reset system
Are you sure you want to proceed with system reset?(y/t/n)
 y-(reset all include stacking configuration, save, reboot )
 t-(reset all exclude stacking configuration, save, reboot)
 n-(cancel command) y
Please wait, the switch is rebooting...

Switch reboots...

  Boot Procedure                                          V2.00.003
  Power On Self Test ........................................  100 %
  MAC Address   : 84-C9-B2-B2-17-00
  H/W Version   : A1
  Please Wait, Loading V2.50.015 Runtime Image ..............  100 %
  UART init .................................................  100 %
  Starting runtime image
  Device Discovery ..........................................      -
Press any key to login...
                    DGS-3120-24TC Gigabit Ethernet Switch
                            Command Line Interface
                           Firmware: Build 2.50.015
           Copyright(C) 2012 D-Link Corporation. All rights reserved.

Setup Networking

config ipif System ipaddress
Command: config ipif System ipaddress


save all
Command: save all
Saving configurations and logs to NV-RAM...... Done.

From here, we'll switch to the web interface.

Web Configuration

Update The Firmware

Template warning icon.png
Warning: Updating the firmware is always a risky operation. Be sure you have the switch on a charged UPS before proceeding!
Template note icon.png
Note: Make sure both switches are running the same firmware before forming the stack.

You will need to go to D-Link's support page to download the latest firmware. Be sure to enter the proper hardware revision! Not all firmwares work on all hardware revisions. Once downloaded, extract it from the zip file.

  1. Click on Tools -> Download Firmware.
  2. Change the radio button to select Download Firmware From HTTP.
  3. Click on the Browse and find the firmware file you downloaded. In this example, it is DGS-3120 Ax FW R3.10.012.had.
  4. Click on Download.

The update process will start. It will take a while to complete.

DO NOT INTERRUPT THE UPDATE. Doing so could leave the switch unusable.

When it is done, reset the switch.

  1. Tools > Reboot System
  2. Do you want to save the settings ? > Select the radio button for Yes and click Reboot.
  3. Click Yes to confirm.

When it boots back up, log in and verify that the new BIOS has been loaded.

On the login page, look for Firmware Version - Build 3.10.012.

Form The Stack

Template note icon.png
Note: Proceed from switch 1's web interface. Once the stack is formed, the IP address of switch 2 will stop working.
Template note icon.png
Note: Once the stack is formed, you will not be able to see the MAC address of switch 2 anymore. If you haven't recorded the MAC address yes and wish to do so, be sure to record it before proceeding. The sticker on the switch showing the MAC address can't be seen easily once the switch is in the rack.

Be sure to cable the switches as per the manual's cabling guide. It should be crossed over; So switch 1, S1 should be plugged into switch 2, S2. If you have two stack cables, then cross that over as well; Switch 1, S2 to switch 2, S1.

  1. Expand System Configuration -> Stacking and click on Stacking Mode Settings.
    1. Beside Force Master Role, click to select the Enabled radio button and then click on Apply directly to the right.
    2. Make sure the New Box ID is set to '1' and then click on Apply directly to the right.
  2. Click on Save > Save Configuration / Log, change the Type selection box to 'All' and click on Apply.
  3. Now reboot the switch for the stack to form.
    1. Tools > Reboot System
    2. Do you want to save the settings ? > Select the radio button for Yes and click Reboot.
    3. Click Yes to confirm.

This could take some time to complete. Please be patient.

Template note icon.png
Note: If the second switch becomes the master switch, you will need to connect using the second IP address. To correct this, set the Force Master Role back to Disabled, save and reboot. Change the stack IDs, if required, save and reboot. Once switch 1 has stack ID 1, set the stack priority for unit 1 to '1', unit 2 to '2', save and reboot. At this point, switch 1 should be master. Set the Force Master Role back to Enabled, save and reboot.

Enable Flow Control

  1. System Configuration -> Port Configuration -> Port Settings.
  2. Set Flow Control to 'Enabled' for all ports on both switches.
  3. Save the changes.

Confirm with dmesg |grep -i flow and look for e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx. If

Setup VLANs

Setup VLANs for the SN and IFN (leave the BCN on the default VID 1).

  1. L2 Features -> VLAN -> 802.1Q VLAN Settings
  2. For each VLAN;
    1. Click 'Add/Edit VLAN' tab.
    2. Enter a unique VID (200 for SN, 300 for IFN).
    3. Set a unique VLAN name.
    4. Change the ports in the VLAN to the 'untagged' radio button and leave the rest as 'Not Member'.
    5. Leave 'Advertisement' as 'Disabled'.
    6. Click 'Apply' and repeat for the other VLAN.

Other Stuff

    1. Setup a static trunk for the two uplink ports;
    2. L2 Features -> Link Aggregation -> Port Trunking Settings.
    3. Use 'MAC Source' algorithm.
    4. Set a unique Group ID.
    5. Set the 'Type' of "Static".
    6. Set the master port (usually 1:24).
    7. Change 'State' to "Enabled".
    8. Check to enable the appropriate ports (usually 1:24 and 2:24).
  1. Save your changes!
    1. 'Save' -> 'Save Configuration / Log'.
    2. Change 'Type' to "All" and click 'Apply'.


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