---
title: MC-LAG
slug: aidc/Zcc--mc-lag
createdAt: 2025-12-29T10:33:21.835Z
---

Multi Chassis Link Aggregation Group.

## <font color="#1d50a2">URLs Summary</font>

| **URL**                                                            | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------------------ | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/mclag-domains/&#x7B;domainid}                     | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/mclag-domains/&#x7B;domainid}/members/&#x7B;name} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/mclag-domains/&#x7B;domainid}/vlans/&#x7B;vlanid} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/rpc/show-mclag-consistency-check-result                   | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-mclag-state                                      | N       | Y        | N         | N       | N          |

## <font color="#1d50a2">Examples</font>

### <font color="#1d50a2">Show-mclag-consistency-check-result</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-mclag-consistency-check-result
```

### <font color="#1d50a2">Show-mclag-state</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-mclag-state
```

### <font color="#1d50a2">Create a mclag domain.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/mclag-domains
{
    "domainid": 2,
    "peer-ip": "35.0.0.2",
    "source-ip": "35.0.0.1"
}
```

### <font color="#1d50a2">Create a member for mclag domain</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/mclag-domains/1/members
{
    "name": "Lag111"
}
```

### <font color="#1d50a2">Create a VLAN for mclag domain.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/mclag-domains/1/vlans
{
    "vlanid": 12,
    "unique_ip": "true",
    "mode": "same-mac"
}
```

## <font color="#1d50a2">Properties Descriptions</font>

### <font color="#1d50a2">MC-LAG domains global</font>

**Tree Diagrams**

```plaintext
  +--rw mclag-domains
     +--rw mclag-domain* [domainid]
        +--rw domainid
        +--rw peer-ip?
        +--rw source-ip?
        +--rw peer-link?
        +--rw keepalive-interval?
        +--rw session-timeout?
        +--rw vrf?
        +--rw consistency-check?
        +--rw backup-channel?
        +--rw dad-source-ip?
        +--rw dad-peer-ip?
        +--rw detection-delay?
        +--rw member-recover-delay?
        +--rw orphan-recover-delay?
        +--rw dad-vrf?
        +--rw commit?
```

**Table of Properties**

| **Name**             | **Required** | **Type/Range**                              | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| -------------------- | ------------ | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| mclag-domains        | M            |                                             | Path-only node, has no configurable value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| domainid             | M            | 1..4095                                     | (sub-property of mclag-domains)<br />MCLAG domain ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| peer-ip              | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of mclag-domains)<br />Peer IP of the MC-LAG control link                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| source-ip            | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of mclag-domains)<br />Local IP of the MC-LAG control link                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| peer-link            | O            | Ethernet name<br />Lag1..9999               | (sub-property of mclag-domains)<br />The peer-link port name, which is used to connect to the remote MC-LAG                                                                                                                                                                                                                                                                                                                                                                                                                             |
| keepalive-interval   | O            | 1..60                                       | (sub-property of mclag-domains)<br />MC-LAG keepalive message sending interval in seconds. The Keepalive message interval value should be less than 1/3 of the session timeout time; the session timeout time should be a multiple of the Keepalive message interval Default 1 seconds<br />Default value: 1                                                                                                                                                                                                                            |
| session-timeout      | O            | 3..3600                                     | (sub-property of mclag-domains)<br />MC-LAG session timeout in seconds. Default 15 seconds<br />Default value: 15                                                                                                                                                                                                                                                                                                                                                                                                                       |
| vrf                  | O            | "default"<br />vrf name                     | (sub-property of mclag-domains)<br />VRF name, MC-LAG keepalive session belongs to the VRF that specifies the VRF of the routing port to which the local-address belongs                                                                                                                                                                                                                                                                                                                                                                |
| consistency-check    | O            | "default"<br />"graceful"<br />"idle"       | (sub-property of mclag-domains)<br />MC-LAG consistency check action, the default action is the idle mode. default mode: if the consistency check fails, the master and standby devices admin down the failed member ports at the same time. graceful mode: if the consistency check fails, only the Standby role device admin down the failed member ports, and the active device stays up. idle mode, the consistency check only displays the relevant results and does not take any corresponding action.<br />Default value: "idle" |
| backup-channel       | O            | 1..4094                                     | (sub-property of mclag-domains)<br />MC-LAG ICCP alternate pathway vlanid                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| dad-source-ip        | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of mclag-domains)<br />MC-LAG DAD link local IP                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| dad-peer-ip          | O            | A.B.C.D<br />XX\:XX\:XX\:XX\:XX\:XX\:XX\:XX | (sub-property of mclag-domains)<br />MC-LAG DAD link peer IP                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| detection-delay      | O            | 0..512                                      | (sub-property of mclag-domains)<br />MC-LAG DAD detection delay in seconds. Default 15 seconds<br />Default value: 15                                                                                                                                                                                                                                                                                                                                                                                                                   |
| member-recover-delay | O            | 0..1000                                     | (sub-property of mclag-domains)<br />MC-LAG standby side mlag port error-down state recovery delay time Default 60 seconds<br />Default value: 60                                                                                                                                                                                                                                                                                                                                                                                       |
| orphan-recover-delay | O            | 0..1000                                     | (sub-property of mclag-domains)<br />MC-LAG standby side non-mlag port error-down state recovery delay time Default 0 seconds<br />Default value: 0                                                                                                                                                                                                                                                                                                                                                                                     |
| dad-vrf              | O            | "default"<br />vrf name                     | (sub-property of mclag-domains)<br />VRF name, MC-LAG DAD keepalive session belongs to the VRF that specifies the VRF of the routing port to which the local-address belongs                                                                                                                                                                                                                                                                                                                                                            |

### <font color="#1d50a2">MC-LAG domain members</font>

**Tree Diagrams**

```plaintext
  +--rw mclag-domains
     +--rw mclag-domain* [domainid]
        +--rw domainid
        +--rw members
        |  +--rw member* [name]
        |     +--rw name
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range** | **Description**                                                                 |
| ------------- | ------------ | -------------- | ------------------------------------------------------------------------------- |
| mclag-domains | M            |                | Path-only node, has no configurable value.                                      |
| domainid      | M            | 1..4095        | (sub-property of mclag-domains)<br />MCLAG domain ID                            |
| members       | M            |                | (sub-property of mclag-domains)<br />Path-only node, has no configurable value. |
| name          | M            | Lag1..9999     | (sub-property of members)                                                       |

### <font color="#1d50a2">MC-LAG domain vlans</font>

**Tree Diagrams**

```plaintext
  +--rw mclag-domains
     +--rw mclag-domain* [domainid]
        +--rw domainid
        +--rw vlans
           +--rw vlan* [vlanid]
              +--rw vlanid
              +--rw mode?
              +--rw unique-ip?
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range**             | **Description**                                                                                                                                                                                                                                                      |
| ------------- | ------------ | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| mclag-domains | M            |                            | Path-only node, has no configurable value.                                                                                                                                                                                                                           |
| domainid      | M            | 1..4095                    | (sub-property of mclag-domains)<br />MCLAG domain ID                                                                                                                                                                                                                 |
| vlans         | M            |                            | (sub-property of mclag-domains)<br />Path-only node, has no configurable value.                                                                                                                                                                                      |
| vlanid        | M            | 1..4094                    | (sub-property of vlans)                                                                                                                                                                                                                                              |
| mode          | O            | "diff-mac"<br />"same-mac" | (sub-property of vlans)<br />Unique VLAN mode, the default mode is diff\_mac mode. diff\_mac: The VLAN ID of the local and remote devices must be different. same\_mac: The VLAN ID of the local and remote devices must be the same.<br />Default value: "diff-mac" |
| unique-ip     | O            | "true"<br />"false"        | (sub-property of vlans)<br />Whether to enable the unique IP function. Default: "false"<br />Default value: "false"                                                                                                                                                  |

### <font color="#1d50a2">Show-mclag-state</font>

**Tree Diagrams**

```plaintext
    +---x show-mclag-state
    |  +--ro output
    |     +--ro data?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range** | **Description**                                                   |
| ---------------- | ------------ | -------------- | ----------------------------------------------------------------- |
| show-mclag-state | M            |                | Path-only node, has no configurable value.<br />Show MCLAG state. |
| data             | RO           | \<anydata>     | (sub-property of output)                                          |

### <font color="#1d50a2">Show-mclag-consistency-check-result</font>

**Tree Diagrams**

```plaintext
    +---x show-mclag-consistency-check-result
       +--ro output
          +--ro data?
```

**Table of Properties**

| **Name**                            | **Required** | **Type/Range** | **Description**                                                                      |
| ----------------------------------- | ------------ | -------------- | ------------------------------------------------------------------------------------ |
| show-mclag-consistency-check-result | M            |                | Path-only node, has no configurable value.<br />Show MCLAG consistency check result. |
| data                                | RO           | \<anydata>     | (sub-property of output)                                                             |

