---
title: VXLAN
slug: aidc/vxlan
createdAt: 2025-12-29T10:32:46.972Z
---

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

| **URL**                                                 | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/rpc/show-vxlan-remotemac                       | N       | Y        | N         | N       | N          |
| /rest/v1/rpc/show-vxlan-tunnel                          | N       | Y        | N         | N       | N          |
| /rest/v1/running/vxlan                                  | Y       | N        | Y         | N       | N          |
| /rest/v1/running/vxlan/local-vtep/&#x7B;id}             | Y       | Y        | Y         | N       | Y          |
| /rest/v1/running/vxlan/map/&#x7B;vni}                   | Y       | Y        | N         | N       | Y          |
| /rest/v1/running/vxlan/remote-vtep/&#x7B;vni}/&#x7B;ip} | Y       | Y        | Y         | N       | Y          |

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

### <font color="#1d50a2">Show vxlan remotemac</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-vxlan-remotemac
{
    "ip": "10.0.1.1"
}
```

### <font color="#1d50a2">Show vxlan tunnel</font>

```json
POST HTTPS://{switch IP}/rest/v1/rpc/show-vxlan-tunnel
```

### <font color="#1d50a2">Get vxlan configurations.</font>

```json
GET HTTPS://{switch IP}/rest/v1/running/vxlan
```

### <font color="#1d50a2">Create a VXLAN local vtep.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/vxlan/local-vtep/8
{
    "ip": "2.2.2.2"
}
```

### <font color="#1d50a2">Create a VXLAN remote vtep.</font>

```json
POST HTTPS://{switch IP}/rest/v1/running/vxlan/remote-vtep
{
    "vni": 500,
    "ip": "1.1.1.1"
}
```

### <font color="#1d50a2">Create a VXLAN map.</font>

```json
POST  HTTPS://{switch IP}/rest/v1/running/vxlan/map
{
    "vni": 999,
    "vtep-id": 6,
    "map-type": "l3",
    "vrf": "default"
}
```

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

### <font color="#1d50a2">VXLAN global</font>

**Tree Diagrams**

```plaintext
  +--rw vxlan
     +--rw udp-port?
     +--rw centralized-gateway?
```

**Table of Properties**

| **Name**            | **Required** | **Type/Range**      | **Description**                                                                                  |
| ------------------- | ------------ | ------------------- | ------------------------------------------------------------------------------------------------ |
| vxlan               | M            |                     | Path-only node, has no configurable value.<br />Configuration for the VXLAN                      |
| udp-port            | O            | 1..65535            | (sub-property of vxlan)<br />The port used to encapsulate VXLAN packets<br />Default value: 4789 |
| centralized-gateway | O            | "true"<br />"false" | (sub-property of vxlan)<br />Configure VXLAN mode centralized<br />Default value: "false"        |

### <font color="#1d50a2">VXLAN  local vteps</font>

**Tree Diagrams**

```plaintext
  +--rw vxlan
     +--rw local-vtep* [id]
     |  +--rw id
     |  +--rw ip
```

**Table of Properties**

| **Name**   | **Required** | **Type/Range** | **Description**                                                                                                                               |
| ---------- | ------------ | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| vxlan      | M            |                | Path-only node, has no configurable value.<br />Configuration for the VXLAN                                                                   |
| local-vtep | M            |                | (sub-property of vxlan)<br />Path-only node, has no configurable value.<br />List of Multi-vtep that is supported for VXLAN on some platforms |
| id         | M            | 0..9           | (sub-property of local-vtep)<br />ID of local VTEP                                                                                            |
| ip         | M            | A.B.C.D        | (sub-property of local-vtep)<br />Local IP of tunnel                                                                                          |

### <font color="#1d50a2">VXLAN remote vteps</font>

**Tree Diagrams**

```plaintext
  +--rw vxlan
     +--rw remote-vtep* [vni ip]
     |  +--rw vni
     |  +--rw ip
     |  +--rw router-mac?
     |  +--ro local-vtep-id?
```

**Table of Properties**

| **Name**      | **Required** | **Type/Range** | **Description**                                                                                             |
| ------------- | ------------ | -------------- | ----------------------------------------------------------------------------------------------------------- |
| vxlan         | M            |                | Path-only node, has no configurable value.<br />Configuration for the VXLAN                                 |
| remote-vtep   | M            |                | (sub-property of vxlan)<br />Path-only node, has no configurable value.<br />List of static L2 VXLAN tunnel |
| vni           | M            | 1..16777215    | (sub-property of remote-vtep)<br />VNI of l2 VXLAN tunnel                                                   |
| ip            | M            | A.B.C.D        | (sub-property of remote-vtep)<br />Remote VTEP IP                                                           |
| router-mac    | O            | A\:B:C\:D:E\:F | (sub-property of remote-vtep)<br />Router-mac of remote VTEP                                                |
| local-vtep-id | RO           | 0..9           | (sub-property of remote-vtep)<br />Leaf that help to config<br />Default value: 0                           |

### <font color="#1d50a2">VXLAN maps</font>

**Tree Diagrams**

```plaintext
  +--rw vxlan
     +--rw map* [vni]
        +--rw vni
        +--rw vtep-id?
        +--rw map-type
        +--rw vlan-id
        +--rw vrf
```

**Table of Properties**

| **Name** | **Required** | **Type/Range**          | **Description**                                                                                |
| -------- | ------------ | ----------------------- | ---------------------------------------------------------------------------------------------- |
| vxlan    | M            |                         | Path-only node, has no configurable value.<br />Configuration for the VXLAN                    |
| map      | M            |                         | (sub-property of vxlan)<br />Path-only node, has no configurable value.<br />List of VXLAN map |
| vni      | M            | 1..16777215             | (sub-property of map)<br />VNI of VXLAN map                                                    |
| vtep-id  | O            | 0..9                    | (sub-property of map)<br />ID of the VXLAN tunnel<br />Default value: 0                        |
| map-type | M            | "l2"<br />"l3"          | (sub-property of map)<br />VXLAN map type choice                                               |
| vlan-id  | CM           | 1..4094                 | (sub-property of map)<br />Only applicable when map-type = "l2".<br />VLAN id of l2 map        |
| vrf      | CM           | "default"<br />vrf name | (sub-property of map)<br />Only applicable when map-type ="l3".<br />VRF name of l3 map        |

### <font color="#1d50a2">Show-vxlan-tunnel</font>

**Tree Diagrams**

```plaintext
    +---x show-vxlan-tunnel
    |  +--ro output
    |     +--ro tunnel* [remote-ip vni]
    |        +--ro remote-ip
    |        +--ro vni
    |        +--ro vlan-or-vrf?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**                        | **Description**                                                                                                 |
| ----------------- | ------------ | ------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| show-vxlan-tunnel | M            |                                       | Path-only node, has no configurable value.<br />Show VXLAN tunnel                                               |
| tunnel            | RO           |                                       | (sub-property of output)<br />Path-only node, has no configurable value.<br />List of established VXLAN tunnels |
| remote-ip         | RO           | A.B.C.D                               | (sub-property of tunnel)<br />IP address of remote VTEP                                                         |
| vni               | RO           | 1..16777215                           | (sub-property of tunnel)<br />VNI of tunnel                                                                     |
| vlan-or-vrf       | RO           | 1..4094<br />"default"<br />vrf name" | (sub-property of tunnel)<br />VLAN or VRF mapped to the VNI                                                     |

### <font color="#1d50a2">Show-vxlan-remotemac</font>

**Tree Diagrams**

```plaintext
    +---x show-vxlan-remotemac
       +---w input
       |  +---w ip?
       +--ro output
          +--ro fdb* [vlan-id mac]
             +--ro vlan-id
             +--ro mac
             +--ro vni?
             +--ro remote-ip*
             +--ro type?
```

**Table of Properties**

| **Name**             | **Required** | **Type/Range**          | **Description**                                                                                                           |
| -------------------- | ------------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| show-vxlan-remotemac | M            |                         | Path-only node, has no configurable value.<br />Show VXLAN remotemac                                                      |
| ip                   | O            | A.B.C.D                 | (sub-property of input)<br />Display VXLAN remotemac of specific remote ip or remotemac of all                            |
| fdb                  | RO           |                         | (sub-property of output)<br />Path-only node, has no configurable value.<br />List of fdb entry learned from VXLAN tunnel |
| vlan-id              | RO           | 1..4094                 | (sub-property of fdb)<br />VLAN ID                                                                                        |
| mac                  | RO           | A\:B:C\:D:E\:F          | (sub-property of fdb)<br />MAC address                                                                                    |
| vni                  | RO           | 1..16777215             | (sub-property of fdb)<br />VNI of the VXLAN tunnel                                                                        |
| remote-ip            | RO           | A.B.C.D                 | (sub-property of fdb)<br />IP address of remote VTEP                                                                      |
| type                 | RO           | "static"<br />"dynamic" | (sub-property of fdb)<br />Type of fdb                                                                                    |

