查看 VLAN 連結

您可以查看專案中所有 VLAN 連結的清單,以及有關每一個 VLAN 連結的詳細資料。例如,您可以查看連結的名稱、相關聯的 Cloud Router 名稱,以及連結是跨雲端互連網路或其他 Cloud Interconnect 變化版本的附件。您也可以查看附件的 Dataplane 版本。

查看 VLAN 連結及其詳細資料

主控台

  1. 在 Google Cloud 主控台中,前往「Cloud Interconnect」分頁的「VLAN 連結」分頁。

    前往 VLAN 連結

    跨雲端互連網路的 VLAN 連結會列為「Dedicated (Cross-Cloud)」類型的連結。

  2. 選取 VLAN 連結以查看其詳細資料。

gcloud

  1. 如要列出專案中的所有 VLAN 連結,請使用 gcloud compute interconnects attachments list 指令

    gcloud compute interconnects attachments list
    

    畫面會顯示類似以下的輸出內容。跨雲端互連網路連線的 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
    ...
    
  2. 如要查看附件的更多資訊,請使用 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 附加元件的 Dataplane 版本,請使用 Google Cloud CLI 或 Compute Engine API。附件的 Dataplane 版本不會顯示在 Google Cloud 控制台中。

您可能需要先確認附件使用 Dataplane v2,才能啟用特定功能,例如雙向轉送偵測 (BFD)

gcloud

如要檢查附件的 Dataplane 版本,請執行下列指令:

gcloud compute interconnects attachment describe ATTACHMENT_NAME \
    --region= NAME

更改下列內容:

  • ATTACHMENT_NAME:附件的名稱
  • REGION:附件所在的區域

在輸出結果中,找出值為 2dataplaneVersion 欄位。

如果輸出內容中沒有顯示 dataplaneVersion 欄位,表示 VLAN 連結使用的是 1 版。

以下範例輸出內容顯示使用 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 連結使用的是 1 版。

後續步驟