Configuring D-Link Switches: Difference between revisions

From Alteeve Wiki
Jump to navigation Jump to search
 
Line 110: Line 110:


# Enable flow-control;  
# Enable flow-control;  
## <span class="code">System Configuration</span> -> <span class="code">Port Configuration</span> -> <span class="code">Port Settings</span>.
## <span class="code">System</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.
## Set '<span class="code">Flow Control</span>' to '<span class="code">Enabled</span>' for all ports used by the Anvil! 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.
## 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>).
 
== Configure VLANs ==
 
For context on Anvil! networking, please be sure to check the following article first;
* [[Anvil! Networking]]
 
This tutorial assumes you are using two VLANs, one for the [[BCN]]1 and one for the [[IFN]]1. If you're running your [[Storage Network]] and/or [[Migration Network]] through the switch, add VLANs for them as well.
 
The two VLANs are;
* VID1, BCN1, using ports 1~12 on both switches.
* VID100, IFN1, using ports 13~24 on both switches.
 
With this said, lets configure
 
# Setup [[VLAN]]s for the [[IFN]]1 (leave the [[BCN]] on the default [[VID]] <span class="code">1</span>).
## L2 Features -> VLAN -> 802.1Q VLAN Settings
## L2 Features -> VLAN -> 802.1Q VLAN Settings
## For each VLAN;  
## For each VLAN;  
### Click '<span class="code">Add/Edit VLAN</span>' tab.
### 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]]).
### Enter a unique [[VID]] (<span class="code">100</span> for [[IFN]] 1).
### Set a unique VLAN name.  
### 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>'.
### 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>'.
### Leave '<span class="code">Advertisement</span>' as '<span class="code">Disabled</span>'.
### Click '<span class="code">Apply</span>' and repeat for the other VLAN.
### Click '<span class="code">Apply</span>' and repeat for the other VLAN.
= Setup Port Trunking =
# Setup a static trunk for the two uplink ports;
# 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>.
## <span class="code">L2 Features</span> -> <span class="code">Link Aggregation</span> -> <span class="code">Port Trunking Settings</span>.

Latest revision as of 02:30, 30 March 2024

 AN!Wiki :: How To :: Configuring D-Link Switches


Validated Switches

The following switches (and firmwares) have been validates to work with the Anvil!:

  • DGS-3130-series

Other models will be similar, but this is the tested model.

Serial Connection

Note: Depending on your terminal emulator, the <Backspace> key may not work. If it doesn't, try pressing ctrl + h to delete the character to the left of your cursor.

You can use screen to connect to the switch. The example below is what you would use on most servers with an on-board serial port. If you have two, then port two would be /dev/ttyS1. If you are using a USB to serial adaptor, then you will use /dev/ttyUSB0 (or if it is a multi-port adapter, /dev/ttyUSB1, etc). If none of these work, you will need to consult your operating system documentation and/or serial port adapter to determine the proper /dev/ttyX device to use.

screen /dev/ttyUSBO 115200

The screen will be blank until you press <enter>.

                 DGS-3130-30TS Gigabit Ethernet Switch

                          Command Line Interface
                            Firmware: 2.00.011
           Copyright(C) 2018 D-Link Corporation. All rights reserved.


Switch>

To log in;

Switch>enable
Switch#

There is no default user name and password.

Exiting screen

To end your screen session, press ctrl + a together, release and then press k.

You will be asked if you want to kill the session, press y to confirm.

Really kill this window [y/n]
[screen is terminating]

Configure an IP address

By default, the switch uses the IP address 10.90.90.90/8. If this is not accessible, you can change the IP address using the console.

Note: Super User level password can be an alphanumeric string, but cannot begin with a number.
Switch>enable

Switch#configure terminal 

Switch(config)#interface vlan 1

Switch(config-if)#ip address 10.201.1.3 255.255.0.0

Switch(config-if)#exit

Switch(config)#exit

Once this is set, connect to the Web interface to save the changes and/or make additional changes.

The default login username is admin and the default password is also admin.

Configuring For Anvil! Use

  1. Ensure you've updated the <firmware>

Enable Stacking

Note: Once the setup is complete, the IP address of the stack with the lowest stack ID will be used to log into the management interface.

Cabling for stacking, using SFP+ cables, is;

  • Switch 1, port 29 -> Switch 2, port 30
  • Switch 1, port 30 -> Switch 2, port 29

On both switches, set:

  1. Make the stacking master static;
    1. Management -> Stacking -> Physical Stacking.
    2. Change 'Stacking Mode' to 'Enabled'.

The save the settings (Save -> Save Configuration -> Apply.

The changes won't take effect until you reboot, so do that now. Note that if you didn't already, you will be prompted to save changes when you reboot.

  1. Tools -> Reboot System -> Reboot

Enable Flow Control

  1. Enable flow-control;
    1. System -> Port Configuration -> Port Settings.
    2. Set 'Flow Control' to 'Enabled' for all ports used by the Anvil! 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.

Configure VLANs

For context on Anvil! networking, please be sure to check the following article first;

This tutorial assumes you are using two VLANs, one for the BCN1 and one for the IFN1. If you're running your Storage Network and/or Migration Network through the switch, add VLANs for them as well.

The two VLANs are;

  • VID1, BCN1, using ports 1~12 on both switches.
  • VID100, IFN1, using ports 13~24 on both switches.

With this said, lets configure

  1. Setup VLANs for the IFN1 (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 IFN 1).
      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.

Setup Port Trunking

  1. 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).
  2. 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.