Configuring D-Link Switches: Difference between revisions
Line 82: | Line 82: | ||
The default login username is <span class="code">admin</span> and the default password is also <span class="code">admin</span>. | The default login username is <span class="code">admin</span> and the default password is also <span class="code">admin</span>. | ||
= Configuring For Anvil! Use = | |||
# Ensure you've updated the <firmware> | |||
== Enable Stacking == | |||
{{note|1=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; | |||
## <span class="code">Management</span> -> <span class="code">Stacking</span> -> <span class="code">Physical Stacking</span>. | |||
## Change '<span class="code">Stacking Mode</span>' to '<span class="code">Enabled</span>'. | |||
The save the settings (<span class="code">Save</span> -> <span class="code">Save Configuration</span> -> <span class="code">Apply</span>. | |||
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. | |||
# <span class="code">Tools</span> -> <span class="code">Reboot System</span> -> <span class="code">Reboot</span> | |||
== Enable Flow Control == | |||
# 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! | |||
<syntaxhighlight lang="text"> | |||
</syntaxhighlight> | |||
Revision as of 02:19, 30 March 2024
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 Configuration -> Port Configuration -> Port Settings.
- Set 'Flow Control' to 'Enabled' for all ports 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.
- Setup VLANs for the SN and IFN (leave the BCN on the default VID 1).
- L2 Features -> VLAN -> 802.1Q VLAN Settings
- For each VLAN;
- 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. |