D-Link Notes: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
(Created page with "{{header}} Notes on setting up D-Link switches. = DGS-3120 Series = # Ensure you've updated the firmware to R2.00.010 or higher # System Configuration -> Stacking -> Stacking ...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{header}}
{{header}}


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


= DGS-3120 Series =
= DGS-3120 Series =


# Ensure you've updated the firmware to R2.00.010 or higher
== Update Firmware ==
# System Configuration -> Stacking -> Stacking Mode Settings. Change 'Force Master Role' to 'Enabled'.
 
{{warning|1=Make sure the switches are powered by a UPS before doing firmware updates!}}
 
{{note|1=It is strongly recommended to update firmware on switches while outside of the stack. Get all switches to the same version before forming a stack.}}
 
Setup a TFTP server and made the firmware update available there. In this example, the [[TFTP server]] will be <span class="code">10.201.255.254</span>.
 
From the admin console:
 
<syntaxhighlight lang="text">
DGS-3120-24TC:admin# download firmware_fromTFTP 10.201.255.254 src_file FW_300022.had dest_file FW_300022.had
</syntaxhighlight>
 
This will take a while to download.
 
<syntaxhighlight lang="text">
Command: download firmware_fromTFTP 10.201.255.254 src_file FW_300022.had dest_file FW_300022.had
 
Connecting to server................... Done.
Download firmware...................... Done.  Do not power off!
Please wait, programming flash......... Done.
 
 
DGS-3120-24TC:admin#
</syntaxhighlight>
 
Now tell it to boot <span class="code">FW_300022.had</span> on the next boot.
 
<syntaxhighlight lang="text">
config firmware image unit 1 FW_300022.had boot_up
</syntaxhighlight>
 
{{note|1=When stacked, you only need to specify 'unit 1'.}}
 
<syntaxhighlight lang="text">
Command: config firmware image unit 1 FW_300022.had boot_up
 
Success.                                                         
</syntaxhighlight>
 
Now reboot.
 
<syntaxhighlight lang="text">
DGS-3120-24TC:admin#reboot
</syntaxhighlight>
 
<syntaxhighlight lang="text">
Are you sure you want to proceed with the system reboot?(y/n)
</syntaxhighlight>
 
When back up, it's done.
 
== Configure ==
 
# Ensure you've updated the [http://www.dlink.ca/products/?pid=DGS-3120-24TC firmware] to <span class="code">[ftp://ftp.dlink.com/Switch/dgs3120series/Firmware/dgs3120series_FW_200010.zip R2.00.010]</span> or higher.
# Make the stacking master static;
## <span class="code">System Configuration</span> -> <span class="code">Stacking</span> -> <span class="code">Stacking Mode Settings</span>.
## Change '<span class="code">Force Master Role</span>' to '<span class="code">Enabled</span>'.
# Enable flow-control;
## <span class="code">System Configuration</span> -> <span class="code">Port Configuration</span> -> <span class="code">Port Settings</span>.
## Set '<span class="code">Flow Control</span>' to '<span class="code">Enabled</span>' for all ports on both switches.
## Confirm with <span class="code">dmesg |grep -i flow</span> and look for <span class="code">e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx</span>. If any interfaces show <span class="code">Flow Control: None</span>, it's not setup right.
# Setup [[VLAN]]s for the [[SN]] and [[IFN]] (leave the [[BCN]] on the default [[VID]] <span class="code">1</span>).
## L2 Features -> VLAN -> 802.1Q VLAN Settings
## For each VLAN;
### Click '<span class="code">Add/Edit VLAN</span>' tab.
### Enter a unique [[VID]] (<span class="code">100</span> for [[SN]], <span class="code">101</span> for [[IFN]]).
### Set a unique VLAN name.
### Change the ports in the VLAN to the '<span class="code">untagged</span>' radio button and leave the rest as '<span class="code">Not Member</span>'.
### Leave '<span class="code">Advertisement</span>' as '<span class="code">Disabled</span>'.
### Click '<span class="code">Apply</span>' and repeat for the other VLAN.
# Setup a static trunk for the two uplink ports;
## <span class="code">L2 Features</span> -> <span class="code">Link Aggregation</span> -> <span class="code">Port Trunking Settings</span>.
## Use '<span class="code">MAC Source</span>' algorithm.
## Set a unique <span class="code">Group ID</span>.
## Set the '<span class="code">Type</span>' of "<span class="code">Static</span>".
## Set the master port (usually <span class="code">1:24</span>).
## Change '<span class="code">State</span>' to "<span class="code">Enabled</span>".
## Check to enable the appropriate ports (usually <span class="code">1:24</span> and <span class="code">2:24</span>).
# Save your changes!
## '<span class="code">Save</span>' -> '<span class="code">Save Configuration / Log</span>'.
## Change '<span class="code">Type</span>' to "<span class="code">All</span>" and click '<span class="code">Apply</span>'.
 
* Thanks to [http://dk.linkedin.com/in/fabbione Fabio Massimo Di Nitto] for helping to sort out this recipe!


{{footer}}
{{footer}}

Latest revision as of 20:51, 1 December 2023

 AN!Wiki :: D-Link Notes

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

DGS-3120 Series

Update Firmware

Warning: Make sure the switches are powered by a UPS before doing firmware updates!
Note: It is strongly recommended to update firmware on switches while outside of the stack. Get all switches to the same version before forming a stack.

Setup a TFTP server and made the firmware update available there. In this example, the TFTP server will be 10.201.255.254.

From the admin console:

DGS-3120-24TC:admin# download firmware_fromTFTP 10.201.255.254 src_file FW_300022.had dest_file FW_300022.had

This will take a while to download.

Command: download firmware_fromTFTP 10.201.255.254 src_file FW_300022.had dest_file FW_300022.had

 Connecting to server................... Done. 
 Download firmware...................... Done.  Do not power off! 
 Please wait, programming flash......... Done.


DGS-3120-24TC:admin#

Now tell it to boot FW_300022.had on the next boot.

config firmware image unit 1 FW_300022.had boot_up
Note: When stacked, you only need to specify 'unit 1'.
Command: config firmware image unit 1 FW_300022.had boot_up

Success.

Now reboot.

DGS-3120-24TC:admin#reboot
Are you sure you want to proceed with the system reboot?(y/n)

When back up, it's done.

Configure

  1. Ensure you've updated the firmware to R2.00.010 or higher.
  2. Make the stacking master static;
    1. System Configuration -> Stacking -> Stacking Mode Settings.
    2. Change 'Force Master Role' to 'Enabled'.
  3. Enable flow-control;
    1. System Configuration -> Port Configuration -> Port Settings.
    2. Set 'Flow Control' to 'Enabled' for all ports on both switches.
    3. Confirm with dmesg |grep -i flow and look for e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx. If any interfaces show Flow Control: None, it's not setup right.
  4. 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 (100 for SN, 101 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.
  5. Setup a static trunk for the two uplink ports;
    1. L2 Features -> Link Aggregation -> Port Trunking Settings.
    2. Use 'MAC Source' algorithm.
    3. Set a unique Group ID.
    4. Set the 'Type' of "Static".
    5. Set the master port (usually 1:24).
    6. Change 'State' to "Enabled".
    7. Check to enable the appropriate ports (usually 1:24 and 2:24).
  6. 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.
Alteeve's Niche! Enterprise Support:
Alteeve Support
Community Support
© Alteeve's Niche! Inc. 1997-2024   Anvil! "Intelligent Availability®" Platform
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.