> 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/xu-ni-ji/vm-nics.md).

# 虚拟机网络接口（NIC）

## 向 VM 添加 NIC

1. 在 VM 仪表板中，选择 **NIC** 左侧菜单中的。
2. 选择 **新建** 左侧菜单中的。
3. 默认情况下，NIC 处于启用状态。如果现在应将其禁用，请取消选中“Enabled”复选框。
4. 输入一个 ***名称*** 用于 NIC（可选，但如果 VM 将有多个 NIC，则建议填写）。
5. 选择 ***接口*** 用于该设备：
   * **Virtio（默认选项）** 通常建议使用 Virtio 以获得最佳性能。大多数 Linux 发行版默认都包含 virtio 驱动程序； **最新的 virtio 驱动程序可在此下载：** <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso>
   * **Intel E1000** — 与大多数现代操作系统原生兼容性最高。模拟 1Gb NIC
   * **AMD PCnet** — 为旧版兼容性提供的接口。
   * **Realtek 8139** — 为旧版兼容性提供的接口。
6. 选择所需的 ***网络***.
   * 选项包括所有可用网络。
   * 可选择“--None--”来模拟未插网线的网卡。
7. 可选地，可以指定 ***MAC 地址*** 可以指定（如果需要特定的 MAC）；否则，系统将自动为该 NIC 生成唯一的 MAC 地址。
8. 输入一个 ***描述*** 用于 NIC（可选）
9. ***资产*** — 是一个自由填写字段，可使用任意字母数字字符组合来定义唯一标识符，以便将此 NIC 与同一 VM 中的其他 NIC 区分开来，供配方使用。
10. 单击 **提交。**
11. 根据需要重复此过程，向 VM 添加更多网络设备。

## 删除已连接到 VM 的 NIC

{% hint style="info" %}
必须热插拔 NIC 或关闭 VM，才能删除 NIC。
{% endhint %}

1. 在 VM 仪表板中，选择 **NIC** 从左侧菜单中。VM NIC 列表将显示在右侧。
2. **单击以选择 NIC** 以删除。
3. 选择 **删除** 左侧菜单中的。
4. 单击 **是** 以确认删除。

## 修改 VM NIC

1. 在 VM 仪表板中，选择 **NIC** 从左侧菜单中。VM NIC 列表将显示在右侧。
2. **单击以选择 NIC** 要修改的。
3. 选择 **编辑** 左侧菜单中的。
4. 所有字段都可以修改。不过，编辑某些字段时需要注意一些事项。见下文。
   * ***名称*** — 可按需要修改；名称不能与连接到同一 VM 的另一块 NIC 相同。
   * ***顺序 ID*** — 此字段控制来宾操作系统在启动时加载多个 NIC 的顺序。机器已使用给定 NIC 启动后再更改顺序 ID，可能还需要在来宾操作系统内进行配置更改。只有当 VM 连接了多个（已启用的）NIC 时，顺序 ID 才相关。
   * ***接口*** — 可以更改。务必确保在来宾操作系统中安装了正确的驱动程序，以便 NIC 正常工作。
   * ***网络*** — 更改此 NIC 所连接的网络很可能会导致分配新的 IP。此外，如果有与此 NIC 相关的特殊路由和规则，在更改到新网络后，可能需要重新创建或重新配置。
   * ***MAC 地址*** — 通常建议使用系统分配的（唯一）MAC 地址；在 NIC 已经投入使用后更改 MAC 地址，通常也需要在来宾操作系统内进行配置更改。
   * ***描述*** — 可按需要修改。
   * ***资产*** — 是一个自由填写字段，可使用任意字母数字字符组合来定义唯一标识符，以便将此 NIC 与同一 VM 中的其他 NIC 区分开来，供配方使用。
5. 单击 **提交** 以保存更改。

## 禁用 NIC

1. 在 VM 仪表板中，选择 **NICS** 左侧菜单中的。
2. 选择要修改的 NIC。
3. 选择 **编辑** 左侧菜单中的。
4. **取消选中“Enabled”复选框**.
5. 单击 **提交。**
6. 如果 VM 当前正在运行，则 NIC 要到重启后才会被禁用。

{% hint style="info" %}
您也可以修改 NIC 的 *网络* 字段为 ***--无--*** **以“拔掉”** 在 VM 运行时将其从网络中断开（不需要重置/重启。）
{% endhint %}

{% hint style="info" %}
**VMware 服务 VM NIC**

VMware 服务 VM 使用一种不同的 NIC 类型，其中包括一个 **IPv4 配置** 用于分配静态 IP 设置的面板。详情请参见 [配置 VMware 服务 VM NIC 的 IPv4 设置](/knowledge-base/zh/networking/vmware-service-vm-nic-ipv4-configuration.md).
{% endhint %}


---

# 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/xu-ni-ji/vm-nics.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.
