---
title: MAC
slug: aidc/UfUE-mac
createdAt: 2025-12-29T10:28:23.254Z
---

Forwarding Data Base(FDB).

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

| **URL**                                                          | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ---------------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/fdb                                             | Y       | N        | Y         | N       | N          |
| /rest/v1/running/fdb/fdb-entry/&#x7B;vlan-id}/&#x7B;mac-address} | Y       | Y        | Y         | N       | Y          |
| /rest/v1/rpc/show-mac-address                                    | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-mac-limit                                      | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/clear-mac-address                                   | N       | Y        | N         | N       | N          |

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

### <font color="#1d50a2">Show mac address</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-mac-address
{
    "interface-name": "Ethernet1"
}
```

**response:**

```json
{
    "aging-time": 1800,
    "mac-address-info": [
        {
            "mac-address": "60:eb:5a:4c:30:db",
            "vlan-id": 10,
            "type": "dynamic",
            "port": "Ethernet1",
            "index": 1
        }
    ]
}
```

### <font color="#1d50a2">Show mac limit</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-mac-limit
```

**response:**

```json
{
    "port-mac-limit": [
        {
            "port": "Ethernet1",
            "mac-limit": 30
        }
    ],
    "vlanid-mac-limit": [
        {
            "vlanid": 10,
            "mac-limit": 100
        }
    ]
}
```

### <font color="#1d50a2">Clear mac address</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/clear-mac-address
{
    "vlan-id": "1005"
}
```

### <font color="#1d50a2">Modify static fdb entry.</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/fdb
{
    "fdb-entry": [
    {
        "mac-address": "cc:cc:cc:cc:cc:cc",
        "vlan-id": "1002",
        "type": "static",
        "port": "Lag2"
     }]
}
```

### <font color="#1d50a2">Create a fdb entry for a VLAN.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/fdb/fdb-entry
{
    "vlan-id": "1005",
    "mac-address": "00:01:02:03:04:05",
    "peer": "1.1.1.1",
    "vni": "1",
    "type": "static"
}
```

### <font color="#1d50a2">Delete a fdb entry from vlan.</font>

```json
DELETE HTTPS://{switch IP}/rest/v1/running/fdb/fdb-entry/1000/12:34:56:78:9a:bc
```

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

### <font color="#1d50a2">FDB entry</font>

**Tree Diagrams**

```plaintext
  +--rw fdb
     +--rw fdb-entry* [vlan-id mac-address]
     |  +--rw mac-address
     |  +--rw vlan-id
     |  +--ro type?
     |  +--rw (outer-if-type)
     |     +--:(port)
     |     |  +--rw port?
     |     +--:(blackhole)
     |     |  +--rw blackhole?
     |     +--:(vxlan-tunnel)
     |        +--rw vni?
     |        +--rw peer?
```

**Table of Properties**

| **Name**    | **Required** | **Type/Range**                | **Description**                                                                                                                   |
| ----------- | ------------ | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| fdb         | M            |                               | Path-only node, has no configurable value.                                                                                        |
| fdb-entry   | M            |                               | (sub-property of fdb)<br />Path-only node, has no configurable value.                                                             |
| mac-address | M            | A\:B:C\:D:E\:F                | (sub-property of fdb-entry)<br />MAC address for the fdb entry                                                                    |
| vlan-id     | M            | 1..4094                       | (sub-property of fdb-entry)<br />VLAN ID for the fdb entry                                                                        |
| type        | RO           | "static"<br />"dynamic"       | (sub-property of fdb-entry)<br />The type of fdb<br />Default value: "static"                                                     |
| port        | O            | Ethernet name<br />Lag1..9999 | (sub-property of fdb-entry)<br />Mutually exclusive with:<br />- blackhole<br />- vni<br />- peer<br />The name of the port       |
| blackhole   | O            | "true"<br />"false"           | (sub-property of fdb-entry)<br />Mutually exclusive with:<br />- port<br />- vni<br />- peer<br />Configure blackhole mac address |
| vni         | O            | 1..16777215                   | (sub-property of fdb-entry)<br />Mutually exclusive with:<br />- port<br />- blackhole<br />VXLAN Network Identifier              |
| peer        | O            | A.B.C.D                       | (sub-property of fdb-entry)<br />Mutually exclusive with:<br />- port<br />- blackhole<br />Peer VTEP IP                          |
| aging-time  | O            | 30..7200<br />"never"         | (sub-property of fdb)<br />Mac aging time, default is 1800 seconds<br />Default value: 1800                                       |

### <font color="#1d50a2">FDB aging</font>

**Tree Diagrams**

```plaintext
  +--rw fdb
     +--rw aging-time?
```

**Table of Properties**

| **Name**   | **Required** | **Type/Range**        | **Description**                                                                             |
| ---------- | ------------ | --------------------- | ------------------------------------------------------------------------------------------- |
| fdb        | M            |                       | Path-only node, has no configurable value.                                                  |
| aging-time | O            | 30..7200<br />"never" | (sub-property of fdb)<br />Mac aging time, default is 1800 seconds<br />Default value: 1800 |

### <font color="#1d50a2">Show mac address</font>

**Tree Diagrams**

```plaintext
    +---x show-mac-address
    |  +---w input
    |  |  +---w interface-name?
    |  +--ro output
    |     +--ro mac-address-info* []
    |     |  +--ro mac-address?
    |     |  +--ro vlan-id?
    |     |  +--ro type?
    |     |  +--ro port?
    |     |  +--ro index?
    |     +--ro aging-time?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range**                                 | **Description**                                                                                                               |
| ---------------- | ------------ | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| show-mac-address | M            |                                                | Path-only node, has no configurable value.<br />                                                                              |
| interface-type   | O            | "ethernet"<br />"link-aggregation"<br />"all"  | (sub-property of input)<br />The type of interface to show MAC address for, or "all" for all types.<br />Default value: "all" |
| interface-name   | O            | Ethernet name<br />Lag1..9999                  | (sub-property of input)<br />                                                                                                 |
| mac-address-info | RO           |                                                | (sub-property of output)<br />Path-only node, has no configurable value.<br />A table that show information of mac address    |
| mac-address      | RO           | A\:B:C\:D:E\:F                                 | (sub-property of mac-address-info)<br />MAC address for the fdb entry                                                         |
| vlan-id          | RO           | 1..4094                                        | (sub-property of mac-address-info)<br />VLAN ID for the fdb entry                                                             |
| type             | RO           | "static"<br />"dynamic"                        | (sub-property of mac-address-info)<br />The type of fdb                                                                       |
| port             | RO           | Ethernet name<br />Lag1..9999<br />"blackhole" | (sub-property of mac-address-info)<br />The name of the port                                                                  |
| index            | RO           | 0..4294967295                                  | (sub-property of mac-address-info)                                                                                            |
| aging-time       | RO           | 30..7200<br />"never"                          | (sub-property of output)<br />Mac aging time, default is 1800 seconds<br />Default value: 1800                                |

### <font color="#1d50a2">Clear mac address</font>

**Tree Diagrams**

```plaintext
    +---x clear-mac-address
    |  +---w input
    |     +---w interface-name?
    |     +---w vlan-id?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**                | **Description**                                                                                              |
| ----------------- | ------------ | ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
| clear-mac-address | M            |                               | Path-only node, has no configurable value.<br />Clear MAC address table entries based on specified criteria. |
| interface-name    | O            | Ethernet name<br />Lag1..9999 | (sub-property of input)<br />Name of the Ethernet or link-aggregation interface.                             |
| vlan-id           | O            | 1..4094                       | (sub-property of input)                                                                                      |

### <font color="#1d50a2">Show mac limit</font>

**Tree Diagrams**

```plaintext
    +---x show-mac-limit
       +--ro output
          +--ro port-mac-limit* []
          |  +--ro port?
          |  +--ro mac-limit?
          +--ro vlanid-mac-limit* []
             +--ro vlanid?
             +--ro mac-limit?
```

**Table of Properties**

| **Name**         | **Required** | **Type/Range** | **Description**                                                                                                          |
| ---------------- | ------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------ |
| show-mac-limit   | M            |                | Path-only node, has no configurable value.                                                                               |
| port-mac-limit   | RO           |                | (sub-property of output)<br />Path-only node, has no configurable value.<br />A table that show information of mac limit |
| port             | RO           | Ethernet name  | (sub-property of port-mac-limit)<br />The name of the port                                                               |
| mac-limit        | RO           | 1..131072      | (sub-property of port-mac-limit)                                                                                         |
| vlanid-mac-limit | RO           |                | (sub-property of output)<br />Path-only node, has no configurable value.<br />A table that show information of mac limit |
| vlanid           | RO           | 1..4094        | (sub-property of vlanid-mac-limit)<br />The name of the vlan                                                             |
| mac-limit        | RO           | 1..131072      | (sub-property of vlanid-mac-limit)                                                                                       |

