> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/wang-luo/dhcp-static-lease.md).

# 创建 DHCP 静态租约

带有该选项的网络 **动态 DHCP** 启用该选项后，网络将自动为客户端分配 IP 地址。对于虚拟机，如果希望始终分配同一个地址，可以创建一个与关联 MAC 地址绑定的静态 IP 地址。

**静态地址可通过以下两种方式之一分配：**

* **将动态条目更改为静态**\
  在虚拟机已经获得 DHCP 地址且当前仍持有租约后，从现在起将该地址指定为静态。
* **创建新的静态条目**\
  创建新的 IP 地址条目，指定虚拟机 NIC 的 MAC 地址和所需的 IP 地址。

## 将动态条目更改为静态

1. 在网络仪表板中，单击 **IP 地址** 左侧菜单中的。
2. 找到 DHCP 地址，它在 IP 地址列表中显示为“Dynamic”类型
3. 双击该条目并更改 **类型** 设置为 ***静态***.
4. 单击 **提交** 以保存更改。

## 创建新的静态条目

1. 获取 MAC 地址（可在来宾操作系统中或在 VM 仪表板-NICs 部分中找到。）
2. 在网络仪表板中，单击 **新建** 左侧菜单中的。
3. 在 **类型** 字段中，选择 ***静态***.
4. 输入所需的 **IP 地址**.

{% hint style="warning" %}
**请确保分配的 IP 地址位于该网络的地址范围内，并且未被此网络上的其他虚拟机使用。**
{% endhint %}

5. 输入 **MAC 地址**.
6. 输入 **主机名** 服务器的。
7. 可选地，可以指定 **描述** 可以输入以记录额外的管理信息。
8. 单击 **提交**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/wang-luo/dhcp-static-lease.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
