Configuring D-Link Switches
Alteeve 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
- 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:
- Make the stacking master static;
- Management -> Stacking -> Physical Stacking.
- 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.
- Tools -> Reboot System -> Reboot
Enable Flow Control
- Enable flow-control;
- System -> Port Configuration -> Port Settings.
- Set 'Flow Control' to 'Enabled' for all ports used by the Anvil! on both switches.
- 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
- Setup VLANs for the IFN1 (leave the BCN on the default VID 1).
- L2 Features -> VLAN -> 802.1Q VLAN Settings
- For each VLAN;
Setup Port Trunking
- Setup a static trunk for the two uplink ports;
- L2 Features -> Link Aggregation -> Port Trunking Settings.
- Use 'MAC Source' algorithm.
- Set a unique Group ID.
- Set the 'Type' of "Static".
- Set the master port (usually 1:24).
- Change 'State' to "Enabled".
- Check to enable the appropriate ports (usually 1:24 and 2:24).
- Save your changes!
- 'Save' -> 'Save Configuration / Log'.
- Change 'Type' to "All" and click 'Apply'.
- Thanks to Fabio Massimo Di Nitto for helping to sort out this recipe!
Any questions, feedback, advice, complaints or meanderings are welcome. | |||
Alteeve's Niche! | Alteeve Enterprise Support | Community Support | |
© 2025 Alteeve. Intelligent Availability® is a registered trademark of Alteeve's Niche! Inc. 1997-2025 | |||
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. |