---
title: dhcp-relay
slug: enterprise-v6p1/dhcp-relay
createdAt: 2025-12-18T07:03:41.755Z
---

AsterNOS YANG Model for dhcp relay.

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

```none
module: asternos-dhcp-relay
  +--rw dhcp-relay
     +--rw dhcp-relay-agent* [name ip-type]
     |  +--rw name                   string
     |  +--rw ip-type                enumeration
     |  +--rw downlink-interfaces*   cmn:vlan-name
     |  +--rw uplink-interfaces*     union
     |  +--rw loopback-interface?    cmn:loopback-interface-name
     |  +--rw option82-disabled?     boolean
     |  +--rw server-ips*            inet:ip-address-no-zone
     |  +--rw source-ip?             inet:ipv4-address-no-zone
     +--rw interfaces* [name]
        +--rw name                  cmn:vlan-name
        +--rw option82-remote-id?   string
        +--rw dhcp-agent-ip?        inet:ipv4-address-no-zone
```

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

## <font color="#1d50a2">Resource List</font>

| **Path**                                         | **Access** |
| ------------------------------------------------ | ---------- |
| /dhcp-relay                                      | Read-Write |
| /dhcp-relay/dhcp-relay-agent                     | Read-Write |
| /dhcp-relay/dhcp-relay-agent/name                | Read-Write |
| /dhcp-relay/dhcp-relay-agent/ip-type             | Read-Write |
| /dhcp-relay/dhcp-relay-agent/downlink-interfaces | Read-Write |
| /dhcp-relay/dhcp-relay-agent/uplink-interfaces   | Read-Write |
| /dhcp-relay/dhcp-relay-agent/loopback-interface  | Read-Write |
| /dhcp-relay/dhcp-relay-agent/option82-disabled   | Read-Write |
| /dhcp-relay/dhcp-relay-agent/server-ips          | Read-Write |
| /dhcp-relay/dhcp-relay-agent/source-ip           | Read-Write |
| /dhcp-relay/interfaces                           | Read-Write |
| /dhcp-relay/interfaces/name                      | Read-Write |
| /dhcp-relay/interfaces/option82-remote-id        | Read-Write |
| /dhcp-relay/interfaces/dhcp-agent-ip             | Read-Write |

## <font color="#1d50a2">Detailed Nodes</font>

### <font color="#1d50a2">/dhcp-relay</font>

**Path**

/dhcp-relay

**Node Type**

container

**Description**

DHCP relay.

**Access**

Read-Write

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent</font>

**Path**

/dhcp-relay/dhcp-relay-agent

**Node Type**

list

**Description**

The list of dhcp relay agent.

**Access**

Read-Write

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/name</font>

**Path**

/dhcp-relay/dhcp-relay-agent/name

**Node Type**

leaf

**Description**

DHCP relay name.

**Access**

Read-Write

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/ip-type</font>

**Path**

/dhcp-relay/dhcp-relay-agent/ip-type

**Node Type**

leaf

**Description**

DHCP relay IP family type.

**Access**

Read-Write

**Data Type**

\<YANG type enumeration>

**Constraints**

Enumeration with options:

- v4
- v6

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/downlink-interfaces</font>

**Path**

/dhcp-relay/dhcp-relay-agent/downlink-interfaces

**Node Type**

leaf-list

**Description**

Downlink vlan interface

**Access**

Read-Write

**Data Type**

\<YANG type vlan-name>

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/uplink-interfaces</font>

**Path**

/dhcp-relay/dhcp-relay-agent/uplink-interfaces

**Node Type**

leaf-list

**Description**

Uplink interface

**Access**

Read-Write

**Data Type**

\<YANG type union>

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/loopback-interface</font>

**Path**

/dhcp-relay/dhcp-relay-agent/loopback-interface

**Node Type**

leaf

**Description**

Set loopback interface as DHCP relay gateway.

**Access**

Read-Write

**Data Type**

\<YANG type loopback-interface-name>

**Constraints**

When condition: ../ip-type = 'v4'

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/option82-disabled</font>

**Path**

/dhcp-relay/dhcp-relay-agent/option82-disabled

**Node Type**

leaf

**Description**

Set DHCP Option82 enabled or disabled.

**Access**

Read-Write

**Data Type**

\<YANG type boolean>

**Constraints**

Multiple constraints:

- Valid in \[true, false]
- When condition: ../ip-type = 'v4'

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/server-ips</font>

**Path**

/dhcp-relay/dhcp-relay-agent/server-ips

**Node Type**

leaf-list

**Description**

The IP address of DHCP server.

**Access**

Read-Write

**Data Type**

\<YANG type ip-address-no-zone>

**Constraints**

Multiple constraints:

- An IPv6 address without a zone index. This type, derived from the type ipv6-address, may be used in situations where the zone is known from the context and no zone index is needed.
- An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

### <font color="#1d50a2">/dhcp-relay/dhcp-relay-agent/source-ip</font>

**Path**

/dhcp-relay/dhcp-relay-agent/source-ip

**Node Type**

leaf

**Description**

The IP address of DHCP relay agent.

**Access**

Read-Write

**Data Type**

\<YANG type ipv4-address-no-zone>

**Constraints**

Multiple constraints:

- When condition: ../ip-type = 'v4'
- An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.

### <font color="#1d50a2">/dhcp-relay/interfaces</font>

**Path**

/dhcp-relay/interfaces

**Node Type**

list

**Description**

List of Vlan interfaces configuration to the DHCP relay agent

**Access**

Read-Write

### <font color="#1d50a2">/dhcp-relay/interfaces/name</font>

**Path**

/dhcp-relay/interfaces/name

**Node Type**

leaf

**Description**

The VLAN interface name

**Access**

Read-Write

**Data Type**

\<YANG type vlan-name>

### <font color="#1d50a2">/dhcp-relay/interfaces/option82-remote-id</font>

**Path**

/dhcp-relay/interfaces/option82-remote-id

**Node Type**

leaf

**Description**

The remote-id value of DHCP Option82 for DHCP relay agent.

**Access**

Read-Write

**Data Type**

\<YANG type string>

### <font color="#1d50a2">/dhcp-relay/interfaces/dhcp-agent-ip</font>

**Path**

/dhcp-relay/interfaces/dhcp-agent-ip

**Node Type**

leaf

**Description**

The IP address of DHCP relay agent.

**Access**

Read-Write

**Data Type**

\<YANG type ipv4-address-no-zone>

**Constraints**

An IPv4 address without a zone index. This type, derived from the type ipv4-address, may be used in situations where the zone is known from the context and no zone index is needed.
