

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 设置 Direct Connect 私有虚拟接口的 MTU
<a name="interface-set-mtu"></a>

如果您的虚拟接口同时具有 IPv4 和 IPv6 BGP 对等会话，则可以删除其中一个 BGP 对等会话（但不能同时删除两个）。有关私有虚拟接口 MTUs 的更多信息，请参阅了解[MTUs 私有虚拟接口或传输虚拟接口](WorkingWithVirtualInterfaces.md#set-jumbo-frames-vif.title)。

您可以使用 Direct Connect 控制台、命令行或 API 来设置私有虚拟接口的 MTU。

**设置私有虚拟接口的 MTU**

1. 在 [https://console.aws.amazon.com/directconnect/v2/](https://console.aws.amazon.com/directconnect/v2/home) home 中打开**Direct Connect**主机。

1. 在导航窗格中，选择 **Virtual Interfaces**。

1.  选择虚拟接口，然后选择 **Edit (编辑)**。

1. 在 **Jumbo MTU (MTU 大小 8500))** 下，选择 **已启用**。

1. 在 **Acknowledge (确认)** 下，选择 **I understand the selected connection(s) will go down for a brief period (我知道，所选连接将在短时间内断开)**。更新完成之前，虚拟接口的状态为 `pending`。

**使用命令行或 API 设置私有虚拟接口的 MTU**
+ [update-virtual-interface-attributes](https://docs.aws.amazon.com/cli/latest/reference/directconnect/update-virtual-interface-attributes.html) (AWS CLI)
+ [UpdateVirtualInterfaceAttributes](https://docs.aws.amazon.com/directconnect/latest/APIReference/API_UpdateVirtualInterfaceAttributes.html)(Direct Connect API)