

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 設定 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：//[https://console.aws.amazon.com/directconnect/v2/home](https://console.aws.amazon.com/directconnect/v2/home) 開啟 **Direct Connect**主控台。

1. 在導覽窗格中，選擇 **Virtual Interfaces** (虛擬介面)。

1.  選取虛擬界面，然後選擇 **Edit (編輯)**。

1. 在**巨型 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)