Configuring D-Link Switches

From Alteeve Wiki
Jump to navigation Jump to search

 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 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.
  2. 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.
  3. 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).
  4. 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.