How to configure MC-LAG settings on QNAP switches for high availability?


Last modified date: 2025-10-03

Applicable Products

Hardware

  • QSW-M7308R-4X
  • QSW-M3224-24T

Software

  • QSS Pro 4.1 and later

Details

Multichassis link aggregation (MC-LAG) allows two switches to operate as a single logical switch. It uses a peer link between the switches to coordinate traffic and link aggregation groups (LAGs) to combine multiple physical ports for redundancy and load sharing.

For NAS devices, MC-LAG enables connections to either switch while maintaining a single aggregated link. This provides redundancy (connections remain active if one switch fails), higher bandwidth (multiple NAS ports aggregated across switches), and load balancing across all member ports, ensuring resilient, high-performance storage access.


Procedure

A. Configure LAG groups

Important
Ensure that you configure the LAG before connecting cables to the switch to avoid creating a data loop.
  1. Log in to the switch system.
  2. Go to L2 Features > Link Aggregation.
  3. Identify a group.
  4. Click .
    The Edit Group window appears.
  5. Configure the group settings.
    SettingDescription
    ModeControls the link aggregation mode for the group.
    Select LACP to ensure automatic negotiation and failover for stable MC-LAG operation.
    Port ConfigurationSpecifies which ports are included in the group
    Note
    Ensure that you configure the same settings for all the member ports in a LAG.
  6. Click Save.
    Note
    Make sure the same LAGs are configured on both switches.

B. Configure MC-LAG settings

  1. Log in to the switch system.
  2. Click MC-LAG.
  3. Click Settings.
    The MC-LAG Settings window appears.
  4. Specify the VLAN ID.
    Use the same VLAN on both switches. This VLAN is reserved for the peer link.
  5. Specify the IP address for inter-chassis control protocol (ICCP) communication.
    Assign the peer link IP address within the same subnet as the other switch, using a VLAN other than VLAN 1.
  6. Specify the IP subnet mask.
    The subnet mask must match on both switches.
  7. Select one or more member ports.
    Assign at least two ports for redundancy.
  8. Select one or more link aggregation groups (MC-LAG group).
    Note
    Use the LAGs created earlier, and ensure the same LAG IDs are configured on both switches.
  9. Click Save.
    The switch saves the MC-LAG configuration.
  10. On the MC-LAG page, click Enable.
    The switch enables MC-LAG.
  11. Configure the MC-LAG settings on the peer switch.
  12. Reboot both switches.

C. Verify configuration

  • Check MC-LAG status in the settings page.
  • Verify the peer link and member ports are active.

Connection Guide

  1. Enable port trunking on the QNAP NAS.
    For details, see "Configuring port trunking settings" in the QTS User Guide or QuTS hero User Guide.
  2. Connect each NAS network port to switch ports that are members of the same LAG ID on both switches.
    If the NAS trunk group is assigned to LAG 1, NAS port 1 can connect to a LAG 1 member port on switch A, and NAS port 2 can connect to a LAG 1 member port on switch B.
    Note
    The NAS ports in the trunk can either connect to the same switch or be split across the two MC-LAG peer switches. In both cases, the ports must belong to the same LAG ID
  3. Verify the connection.
    • On the NAS, confirm that the port trunking group shows all member ports as active.
    • On the switches, check that the assigned LAG connection is active and monitoring traffic.

Example Topology

Two switches are configured in an MC-LAG cluster, allowing them to operate as a single logical switch. The switches coordinate traffic over a peer link and use link aggregation groups (LAGs) to combine multiple physical ports for redundancy and load sharing.

Multiple NAS devices can connect to the cluster using link aggregation. Each NAS can distribute its network ports across both switches. For example, one NAS port can connect to switch A and another port can connect to switch B, while still maintaining a single aggregated connection.


Each NAS is connected to two switches (QSW-M3224-A and QSW-M3224-B) using port trunking. The connections are grouped via dynamic link aggregation (LAG) as follows:

  • NAS-1 -> LAG1: Ports 1 and 2 on both switches
  • NAS-2 -> LAG2: Ports 5 and 6 on both switches
  • NAS-3 -> LAG3: Ports 7 and 8 on both switches
Note
"A" and "B" indicate the respective switches. Each LAG spans both switches to provide redundancy and load balancing.

From the network perspective, the MC-LAG cluster ensures that if one switch or a single port fails, the NAS continues to communicate through the remaining switch, providing uninterrupted access to storage. Traffic is automatically load balanced across all LAG member ports, maximizing throughput and avoiding bottlenecks.

For NAS users, this configuration simplifies network management, improves performance, and provides resilient, high-availability storage access without requiring complex failover setup.


Further Reading

Was this article helpful?

Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less

      Choose Your Country or Region

      open menu
      back to top