---
title: Ethernet Port
slug: aidc/ethernet-port
createdAt: 2025-12-29T10:27:24.098Z
---

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

| **URL**                                                 | **GET** | **POST** | **PATCH** | **PUT** | **DELETE** |
| ------------------------------------------------------- | ------- | -------- | --------- | ------- | ---------- |
| /rest/v1/running/interfaces/&#x7B;name}/ethernet-config | Y       | N        | Y         | N       | N          |

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

### <font color="#1d50a2">Modify the configuration of Ethernet1.</font>

```json
PATCH HTTPS://{switch IP}/rest/v1/running/interfaces/Ethernet1/ethernet-config
{
    "port-speed": "SPEED_25G",
    "auto-negotiate": "false"
}
```

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

### <font color="#1d50a2">Ethernet configuration</font>

**Tree Diagrams**

```plaintext
    +--rw interfaces
        +--rw interface* [name]
            +--rw name
            +--rw ethernet-config
            +--rw auto-negotiate?
            +--rw port-speed?
            +--rw fec?
            +--rw startup-delay?
            +--rw advertised-speeds*
            +--ro lanes*
            +--ro index?
            +--ro alias?
            +--rw mac-limit?
```

**Table of Properties**

| **Name**          | **Required** | **Type/Range**                                                                                                                                                             | **Description**                                                                                                                                                                                                                                                                                                                                                        |
| ----------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| interfaces        | M            |                                                                                                                                                                            | Path-only node, has no configurable value.<br />Interface parameters.                                                                                                                                                                                                                                                                                                  |
| name              | M            | Ethernet name                                                                                                                                                              | (sub-property of interfaces)<br />The name of the interface.                                                                                                                                                                                                                                                                                                           |
| ethernet-config   | M            |                                                                                                                                                                            | (sub-property of interfaces)<br />Path-only node, has no configurable value.                                                                                                                                                                                                                                                                                           |
| auto-negotiate    | O            | "true"<br />"false"                                                                                                                                                        | (sub-property of ethernet-config)<br />Set interface speed auto negotiation.<br />Default value: "false"                                                                                                                                                                                                                                                               |
| port-speed        | O            | "SPEED\_1G"<br />"SPEED\_10G"<br />"SPEED\_25G"<br />"SPEED\_40G"<br />"SPEED\_50G"<br />"SPEED\_100G"<br />"SPEED\_200G"<br />"SPEED\_400G"<br />"SPEED\_800G"            | (sub-property of ethernet-config)<br />When auto-negotiate is TRUE, this optionally sets the port-speed mode that will be advertised to the peer for negotiation.<br />If unspecified, it is expected that the interface will select the highest speed available based on negotiation.<br />When auto-negotiate is set to FALSE, sets the link speed to a fixed value. |
| fec               | O            | "rs"<br />"fc"<br />"none"                                                                                                                                                 | (sub-property of ethernet-config)<br />Set interface fec.<br />Default value: "rs"                                                                                                                                                                                                                                                                                     |
| startup-delay     | O            | 1..65535                                                                                                                                                                   | (sub-property of ethernet-config)<br />Set interface startup delay in seconds.<br />Default value: 150                                                                                                                                                                                                                                                                 |
| advertised-speeds | O            | "all"<br />"SPEED\_1G"<br />"SPEED\_10G"<br />"SPEED\_25G"<br />"SPEED\_40G"<br />"SPEED\_50G"<br />"SPEED\_100G"<br />"SPEED\_200G"<br />"SPEED\_400G"<br />"SPEED\_800G" | (sub-property of ethernet-config)<br />Set interface advertised speed list, value can be choosed from "all" or advertised-speed list\{10000,25000,40000,100000}                                                                                                                                                                                                        |
| lanes             | RO           | 0..65535                                                                                                                                                                   | (sub-property of ethernet-config)<br />lanes of Ethernet.eg: lanes of Ethernet1 is 1                                                                                                                                                                                                                                                                                   |
| index             | RO           | 0..65535                                                                                                                                                                   | (sub-property of ethernet-config)<br />index of Ethernet, eg: index of Ethernet1 is 1                                                                                                                                                                                                                                                                                  |
| alias             | RO           | string                                                                                                                                                                     | (sub-property of ethernet-config)<br />alias of Ethernet.<br />eg: alias of Ethernet1 is Y2                                                                                                                                                                                                                                                                            |
| mac-limit         | O            | 1..131072                                                                                                                                                                  | (sub-property of ethernet-config)<br />Set interface dynamic MAC quantity limit.                                                                                                                                                                                                                                                                                       |

