Use Link Aggregation to increase bandwidth and redundancy between VigorSwitches
- task_configuration, product_switch, tech_vlan, tech_lacp, tech_link_aggregation
Link Aggregation is a method that helps to handle two or more physical links between two network devices. Owing to the combined links, the bandwidth between the Link Aggregation ports will break the speed limit of single Ethernet ports. Effectively associating the links between another switch or NAS supports Link aggregation, providing redundancy and improving performance. For example, two links will give you 2Gbps, three will give you 3Gbps, and so on.
Setting up Link Aggregation between two VigorSwitches
NOTE: To prevent the traffic loops, please do not cable more than one link before finishing the Link Aggregation configuration.
- VigorSwitches support OSI layer 2 and layer 3 aggregation:
- "MAC Address" (OSI layer 2) which balances the traffic for different MAC addresses
- "IP & MAC Address" (OSI layers 2 & 3) balances traffic for different IP addresses or the MAC address.
-
Since firmware version 2.7.2, VigorSwitch 2280x and newer models support more options in Load Balance Algorithm: - "IP Address" which balances the traffic for different IP addresses
- "Source Physical Port" which balances the traffic for device connected in different physical port on VigorSwitch.
-
Navigate to Switch LAN >> Link Aggregation >> LAG Setting, we recommend selecting IP& MAC address for better compatibility and performance. Devices can share logical IP or MAC address and link the traffic, so the traffic which sends to the Internet, routers, and VPN will be aggregate together.
- Then navigate to Switch LAN >> Link Aggregation >> LAG Management, select a LAG port, and click the edit button.
- Select LAG port type, most of the devices support LACP. We recommend using LACP as Type. Because Static is binding the port without any protocols, if another side has the incorrect configuration, it may cause a network loop.
-
Add the port number into the Link Aggregation group.
-
Assigning the correct VLAN for the LAG port by editing the configuration on the page of Switch LAN >> VLAN Management >> Interface Settings. VigorSwitch will identify the VLAN tag for the traffic in the LAG port.

- After the configuration above, wire multiple links to the LAG ports. The status will be displayed in Switch LAN >> Link Aggregation >> LAG Management. In these bundle links, the network traffic will automatically get adjusted and balanced for each connected device.
Troubleshooting
- If you found the LEDs on the LAG ports flash rapidly, it means the traffic loops in your switch, remove the link and check the configuration of Link aggregation again.
- Some packet losses: Check the VLAN configuration of your LAG port, make sure your connected device is getting the correct IP.
- Details
STP introduction and how to set up STP on VigorSwitch
- task_configuration, product_switch, tech_stp, tech_mstp, tech_rstp, tech_loop_detection
DrayTek VigorSwitches support STP/RSTP/MSTP which allows switch redundancy as well as preventing loops at the same time. This article introduces how STP works and how to set up STP on a DrayTek VigorSwitch. A typical topology where STP can be used is shown here where we have 4 VigorSwitches and a redundant path between the switches for failover.
STP
Spanning Tree Protocol(STP) is a management protocol that works on Layer 2 of the OSI model. The main purpose of STP is to detect and prevent the switch from the Broadcast Strom caused by using the Redundant Path mechanism. However, the network convergence process of STP is a slow process. RSTP speeds up the network convergence process. But RSTP has a flaw same as STP, that is, Load Balance can not be implemented among VLANs. And MSTP not just fasts the network Convergence, MSTP implements load balancing among VLANs. Note: The process of each port to change the status, we call it Convergence.
When STP is enabled, the redundant path in the network topology shown by the red line will be blocked to prevent loops. If one of the other links shown be the blue lines goes down, then the redundant link (red line) will come up to provide continuity in the switch network.
RSTP
Rapid Spanning Tree Protocol (RSTP) is an enhancement of STP which responds to Bridge Protocol Data Units (BPDU) from the direction of the root while STP cannot. It provides rapid convergence of the spanning tree.
MSTP
Multiple Spanning Tree Protocol (MSTP) is a further enhancement to RSTP which enables VLANs to be grouped into a spanning-tree instance, providing multiple forwarding paths for data traffic, and enabling load balancing.
BPDU
Bridge Protocol Data Unit (BPDU) contains the information to configure and maintain the spanning-tree topology, includes the port attribute, MAC address, priority, and path cost. Vigor Switches running STP, RSTP, MSTP exchange BPDUs to calculate a loop-free topology. During the deployment of a spanning tree protocol, the edge ports do not participate in the calculation of the spanning-tree and able to transition from the Disable status to the Forward status immediately. This way, the edge ports could prevent the switches from re-calculate due to frequent online and offline, to improve network reliability.
STP settings on DrayTek VigorSwitch
a. Switch LAN >> STP >> Properties
BPDU Handing
- Filtering: Filter the BPDU packets when STP is disabled
- Flooding: Flood the BPDU pacekts when STP is disabled
PathCost Method
- Short: Specifies that the default port path costs are within the range: 1~65,535
- Long: Specifies that the default port path costs are within the range: 1~200,000,000
b. Switch >> STP >> Port Setting
- Path Cost: Path Cost is the cost of transmitting a frame to Root Switch through that port. Select "O" means the value will be specified by the switch.
- Priority: Specify a priority value for the port. The smaller the value, the higher the priority to becoming the Root Port.
- Edge Port: If the connects to an end device such as PC, printerm you may enable Edge Port to speed up the STP caculation.
- BPDU Filter: Enable for set the port stops to send/receive BPDU packets.
- BPDU Guard: Enable for shutdown the port when receives any BPDU packets, for protect your switch.
c. Swithc LAN >> STP >> Bridge Settings
- Priority: Known as Bridge ID. The smaller the value, the higher the priority to be the Root Switch.
- Forward Delay, Max Age, Tx Hold Count, Hello Time: These settings are irrelevant to configure for the topology. Please check the explanation on User Guide.
d. Switch LAN >> STP >> Port Advanced Settings >> Port Role We could check the Port Role for troubleshooting on STP.
- Root: The port that connects to the Root Switch, or the port that is cloest to the Root Switch.
- Designated: If the port isn't selected as Root Port, it become Designated Port. And each switch only have one Desinated Port, used for transfer general date.
- Alternate: If the port isn't selected as Root Port/Designated Port, it becomes Alternate Port, which is a backup port for Designated Port.
Election Rule of STP
Root Switch: The lower the value(Bridge ID), the higher the priority
Root Port: The port has lowest of Root Cost, becomes the Root Port. Root Cost means the path cost that the port reaches to the Root Switch. Example: SwitchA GE1 -> GE1 Root Switch => Root Cost:1 SwitchB GE1 -> GE2 SwitchA GE1 -> GE1 Root Switch => Root Cost:2. For SwitchB, GE1 is the Root Port, because red line is not up.
How to set up STP on VigorSwitch
We will use the topology shown in the diagram below to show the steps to set up STP in on VigorSwitches.
In this switching network the red link will be blocked to prevent a loop. If the BC link goes down, the CD link will come up to allow Switch to continue having internet access. In conclusion, Switch A should be the Root Switch.
Phase1: Set up STP Root Switch
a. Go to Switch LAN >> STP >> Properties, and enable STP on all VigorSwitches.
b. Go to Switch LAN >> STP >> Bridge Settings
- Set up the lowest value of Priority on Switch A such as 4096. (The lower the value, the higher the priority)
- Set up the highest value of Priority on Switch C such as 12288
- Set up default value of Priority on Switch B, Switch D such as 8192
After about 1 minutes STP caculation, STP is working now. We could check the Port Role at Switch LAN >> STP >> Port Advanced Setting
- On SwitchA(Root), you can see the ports that connect to other switches is Root Port and the Port State is Forwarding.
- On other switches, the port connects to the Root Swich that show Root as Port Role
Set up STP path
After completing phase1 configuration, STP will now be working on the network, but we haven't configured the path to meet the topology as shown in our diagram. The following steps will show you how to set up the STP path
a. Go to Switch LAN >> STP >> Port Setting on SwitchC
- Select the port that connects to Switch D
- Set up the path cost that must higher than other ports such as 100
- Same steps should apply to the port on Switch D which connects to Switch C
b. After configuring Path Cost, go to Switch >> STP >> Port Advanced Setting, we can see the Port Role is Alternate and the Port State os Discarding on GE4
c. After the steps above, the STP meets the topology now.
- Details
Using the VigorSwitch FX2120 with 1Gb SFP Links
- VigorSwitch FX2120, Setup, SFP, Device Finder, External Devices, 1Gb
The DrayTek VigorSwitch FX2120 is a 10 Gigabit on all ports, SFP+ switch. It is designed primarily to be connected to a 10Gb capable switch or router, such as the Vigor 3910 or VigorSwitch G2280x.
If no 10Gb SFP+ cable device is available and the VigorSwitch has firmware of 3.7.2 or earlier, the VigorSwitch FX2120 will not auto-detect the port rate of a lower speed SFP module or DAC. This means that a configuration change must be made on the VigorSwitch FX2120, for network connectivity to operate with a 1GB SFP.
There are two methods to resolve this:
| Method | Description |
|---|---|
1 |
Temporarily connect the VigorSwitch FX2120 to a 10Gb capable SFP+ device using the supplied SFP+ DAC cable. Access the VigorSwitch FX2120's web interface and reconfigure the Port Speed under the [Configuration] > [Port Setup] menu. Once the port setting has been changed, the VigorSwitch FX2120 can be connected to a 1Gb SFP on the reconfigured port. |
2 |
Connect to the VigorSwitch FX2120's Console port with a suitable RS-232 serial port. Then through the console interface, reconfigure the desired SFP port to 1Gb operating speed. Connect a 1Gb SFP to the reconfigured port to access the Web Interface of the switch. |
Method 1 - Reconfigure via Web Interface
Connect up the VigorSwitch FX2120's supplied SFP+ DAC cable to another device's SFP+ port, on a DrayTek router such as the Vigor 3910, or 10Gb capable switches like the VigorSwitch P2280x (x indicates 10Gb capable). With the 10Gb link established between the two 10Gb capable devices, connect a PC up to any of the 1Gb ports on the other device. That will allow the VigorSwitch FX2120 to receive an IP address and be managed from the network.
To quickly locate the VigorSwitch FX2120 on the network, it's recommended to use the [External Devices] menu on a DrayTek router, which will list all DrayTek devices on the same physical network. To use the feature, go to the External Devices menu, ensure that the "External Device Auto Discovery" option is ticked, then click OK if it wasn't already enabled. Once the External Devices functionality is active, the VigorSwitch FX2120 should then be listed. Click the "On Line" link to access the switch:

Where a DrayTek Vigor router isn't available, the DrayTek Device Finder can be used to locate the VigorSwitch FX2120 on the network:

Both of these options will open the VigorSwitch's IP address in a browser, accessing via HTTPS. This will usually give a certificate error because the certificate is self-signed, allow an exception to access the management interface.
To log in to the switch, use the default username of "admin" and the default password of "admin":

Once logged in to the VigorSwitch FX2120, expand the side menu bar if it isn't already expanded, by clicking the ≡ icon in the top left. Expand the [Configuration] menu and go to [Port Setup]:

From the Port Setup menu, click the edit icon for the port that needs to be used at 1Gb speed.
This will expand the Port Setting menu. Click on "Show Advanced Mode" to see the Port Speed settings.
Click on the Port Speed drop down, which may be on "Auto" or "10G" depending on the firmware the switch was supplied with. Select "1000M" Port Speed from the drop down list. Then click OK to save and apply the change.

With the port speed now changed for that port, the VigorSwitch FX2120 can be disconnected from the 10Gb capable devices and plugged into the 1Gb SFP on the reconfigured port. If a 1Gb link is connected successfully, the LED to the left of the VigorSwitch FX2120's SFP+ port will light up in green to indicate 1Gb speed.
Method 2 - Reconfigure via Console Port
Where a 10Gb device isn't available to connect to the VigorSwitch FX2120 for initial setup, it's possible instead to use the Console port on the VigorSwitch FX2120. This provides access to the switch's Command Line Interface, where the port speed settings can be reconfigured for 1Gb compatibility.
Hardware Requirements:
- RS-232 DB-9 to RJ-45 adapter/cable - Not supplied with the FX2120, included with Vigor 3910 & other 10Gb capable Vigor Switches
- Serial (RS-232) Com port on a computer
or - USB to Serial (RS-232) adapter (not supplied)
Software Requirements:
- Terminal software such as Putty
If the computer does not have an integrated Serial (RS-232) Com port, connect a USB-to-Serial adapter and ensure its drivers are installed. To find the Com port that it’s been assigned on the computer, in Windows open the start menu and type “device manager” to open the Windows Device Manager control panel:

In the Device Manager, scroll down to the “Ports (COM & LPT)” section and expand it like so:

In this example, the USB-to-Serial adapter is on Com port 6. Note the Com port number and close the Device Manager.
Connect the Serial port up to the RS-232 to RJ-45 cable, which is then connected into the “Console” port of the VigorSwitch FX2120.
Open Putty and set the Connection type to Serial.
Specify the Serial line as the COM port number shown in Windows Device Manager, in this instance the computer is using COM6.
Set the Speed to 115200, this is the communications baud rate used by the FX2120.
Click the “Open” button to start the serial connection:

Upon connection, the switch should display the “Username:” prompt, however if nothing is displayed, press the Enter key and the prompt should then appear. Enter the switch’s standard username of “admin” and the password of “admin”. When connected successfully, the switch will display this prompt:

From there, enter the following commands to change the SFP port speed. The switch uses ports 1-12, with 12 used in this example:

In the above example, the “show interfaces 10GigabitEthernet 12” command checks the current port speed setting and whether it’s connected or not.
- The “interface 10GigabitEthernet 12” command enters the sub-menu for port 12’s interface settings.
- The “speed 1000” command changes the speed to 1000Mbps rate.
- The “exit” commands are used to exit the (config) and (config-if) sub-menus.
- Type “save” to save the new settings on the switch if you’d like that to be the default setting when the switch is next powered up.
- The “show ip” command displays the FX2120’s current IP address.
In this example, the switch has received an IP address via DHCP and is now on “192.168.1.11”. If the switch is unable to receive an IP address via DHCP it will default to “192.168.1.224”.
Once the port rate has been changed, connect the switch to a 1Gb SFP with the supplied DAC-CX10 cable or similar. If the link is able to establish, the LED to the left of the SFP port will now glow green. If the link light is now lit green, the “show ip” command through the Console interface can be helpful for locating the switch on the network.
The default IP address of the VigorSwitch FX2120, which will be used where an IP address is not supplied via DHCP, is 192.168.1.224 with a subnet mask of 255.255.255.0. Configure the IP address of the computer to be within the same subnet. For a full demonstration of how to configure an IP address manually, see this guide: https://www.draytek.co.uk/support/guides/kb-windows-fixedip
Logging in to the VigorSwitch FX2120

Once the VigorSwitch is located on the network, open the VigorSwitch FX2120’s web interface in a web browser. Log in with the default username of “admin” and a default password of “admin”, which is case sensitive.
The switch will then display the Dashboard and can now be configured for use:

- Details
