您可以查看專案中所有 VLAN 連結的清單,以及有關每一個 VLAN 連結的詳細資料。例如,您可以查看連結的名稱、相關聯的 Cloud Router 名稱,以及連結是否適用於 Cross-Cloud Interconnect 或其他 Cloud Interconnect 變體。您也可以查看附件的資料平面版本。
查看 VLAN 連結及其詳細資料
控制台
前往 Google Cloud 控制台的 Cloud Interconnect「VLAN attachments」(VLAN 連結) 分頁。
Cross-Cloud Interconnect 的 VLAN 連結會列為「專屬 (Cross-Cloud)」類型的連結。
選取 VLAN 連結以查看其詳細資料。
gcloud
如要列出專案中的所有 VLAN 連結,請使用
gcloud compute interconnects attachments list指令:gcloud compute interconnects attachments list
畫面會顯示類似以下的輸出內容。 Cross-Cloud Interconnect 連線的 VLAN 連結會列為
DEDICATED類型的連結:NAME: my-vlan-attachment REGION: us-east4 TYPE: DEDICATED INTERCONNECT: my-connection ROUTER: my-router NAME: my-vlan-attachment-2 REGION: us-east4 TYPE: DEDICATED INTERCONNECT: my-connection ROUTER: my-router ...
如要查看附件的詳細資訊,請使用
gcloud compute interconnects attachments describe指令:gcloud compute interconnects attachments describe ATTACHMENT_NAME \ --region= REGION更改下列內容:
ATTACHMENT_NAME:VLAN 連結的名稱REGION:附件所在的區域
輸出結果應該會類似下列內容:
adminEnabled: true bandwidth: BPS_1G cloudRouterIpAddress: 169.254.245.153/29 creationTimestamp: '2023-03-17T23:32:27.087-07:00' customerRouterIpAddress: 169.254.245.154/29 dataplaneVersion: 2 encryption: NONE id: '4461230117430551572' interconnect: https://www.googleapis.com/compute/v1/projects...my-connection kind: compute#interconnectAttachment mtu: 1500 name: my-vlan-attachment operationalStatus: OS_ACTIVE privateInterconnectInfo: tag8021q: 246 region: https://www.googleapis.com/compute/v1/projects...us-east4 router: https://www.googleapis.com/compute/v1/projects...my-router selfLink: https://www.googleapis.com/compute/v1/projects...my-vlan-attachment stackType: IPV4_ONLY state: ACTIVE type: DEDICATED vlanTag8021q: 246
查看附件的資料平面版本
建立 VLAN 連結後,您可以檢查該連結的資料平面版本。
如要檢查 VLAN 連結的資料平面版本,請使用 Google Cloud CLI 或 Compute Engine API。附件的資料平面版本不會顯示在 Google Cloud 控制台中。
gcloud
如要檢查附件的資料平面版本,請執行下列指令:
gcloud compute interconnects attachment describe ATTACHMENT_NAME \
--region= NAME
更改下列內容:
ATTACHMENT_NAME:附件名稱REGION:附件所在的區域
在輸出中,找出 dataplaneVersion 欄位。
如果輸出內容中未顯示 dataplaneVersion 欄位,表示 VLAN 連結使用第 2 版。
下列範例輸出內容顯示使用 Dataplane v2 的 VLAN 連結。
adminEnabled: true bandwidth: BPS_10G cloudRouterIpAddress: 169.254.132.105/29 creationTimestamp: '2022-03-04T10:08:11.526-08:00' customerRouterIpAddress: 169.254.132.106/29 dataplaneVersion: 2 id: '8542849272424426340' interconnect: https://www.googleapis.com/compute/v1/projects/customer-project/global/interconnects/my-interconnect kind: compute#interconnectAttachment mtu: 1440 name: my-attachment operationalStatus: OS_ACTIVE privateInterconnectInfo: tag8021q: 1100 region: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-west1 router: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-west1/routers/ipv6-cf-test-1 selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-west1/interconnectAttachments/my-attachment state: ACTIVE type: DEDICATED vlanTag8021q: 1100
API
使用 interconnectAttachments.get 方法取得 dataplaneVersion 欄位的值。
GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/interconnectAttachments/ATTACHMENT_NAME
更改下列內容:
PROJECT_ID:包含 VLAN 連結的專案REGION:VLAN 連結所在的區域ATTACHMENT_NAME:VLAN 連結的名稱
在輸出中,找出值為 2 的 dataplaneVersion 欄位。
如果輸出內容中未顯示 dataplaneVersion 欄位,表示 VLAN 連結使用第 2 版。
後續步驟
如要進一步瞭解 Cross-Cloud Interconnect,請參閱 Cross-Cloud Interconnect 總覽。
如要瞭解使用 Cross-Cloud Interconnect 時可能遇到的常見問題,請參閱「疑難排解」。