Melihat lampiran VLAN

Anda dapat melihat daftar semua lampiran VLAN di project Anda dan detail dari setiap lampiran tersebut. Misalnya, Anda dapat melihat nama lampiran, apakah lampiran tersebut untuk Dedicated Interconnect atau Partner Interconnect, dan Cloud Router terkait.

Konsol

  1. Di konsol Google Cloud, buka tab lampiran VLAN Cloud Interconnect.

    Buka lampiran VLAN

  2. Pilih lampiran VLAN untuk melihat detailnya.

gcloud

  1. Cantumkan semua lampiran VLAN yang ada di proyek:

    gcloud compute interconnects attachments list
    

    Outputnya mirip dengan hal berikut ini:

    NAME: my-attachment
    REGION: us-east1
    TYPE: PARTNER
    INTERCONNECT: some-partner-interconnect
    ROUTER: my-router
    
    NAME: my-second-attachment
    REGION: us-west1
    TYPE: DEDICATED
    INTERCONNECT: some-dedicated-interconnect
    ROUTER: my-second-router
    ...
    
  2. Jelaskan lampiran VLAN untuk mendapatkan informasi tambahan tentang VLAN:

    gcloud compute interconnects attachments describe NAME
    

    Ganti NAME dengan nama lampiran VLAN Anda.

    Outputnya mirip dengan berikut ini untuk lampiran VLAN IPv4:

    adminEnabled: false
    edgeAvailabilityDomain: AVAILABILITY_DOMAIN_1
    bandwidth: BPS_1G
    cloudRouterIpAddress: 169.254.67.201/29
    creationTimestamp: '2017-12-01T08:29:09.886-08:00'
    customerRouterIpAddress: 169.254.67.202/29
    id: '7976913826166357434'
    kind: compute#interconnectAttachment
    labelFingerprint: 42WmSpB8rSM=
    name: NAME
    pairingKey: 7e51371e-72a3-40b5-b844-2e3efefaee59/us-central1/2
    partnerMetadata:
      interconnectName: New York (2)
      partnerName: My Service Provider Inc
      portalUrl: https://service-provider-portal.com
    region: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1
    router: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1/routers/my-router
    selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1/interconnectAttachments/NAME
    stackType: IPV4_ONLY
    state: PENDING_CUSTOMER
    type: PARTNER
    vlanTag8021q: 1000
    

    Outputnya mirip dengan berikut ini untuk lampiran VLAN IPv4 dan IPv6 (stack ganda):

    adminEnabled: true
    edgeAvailabilityDomain: AVAILABILITY_DOMAIN_1
    bandwidth: BPS_1G
    cloudRouterIpAddress: 169.254.67.201/29
    cloudRouterIpv6Address: 2600:2d00:0:1::1/125
    creationTimestamp: '2017-12-01T08:31:11.580-08:00'
    customerRouterIpAddress: 169.254.67.202/29
    customerRouterIpv6Address: 2600:2d00:0:1::2/125
    description: Interconnect for Customer 1
    id: '7193021941765913888'
    interconnect: https://www.googleapis.com/compute/alpha/projects/partner-project/global/interconnects/lga-2
    kind: compute#interconnectAttachment
    labelFingerprint: 42WmSpB8rSM=
    name: partner-attachment
    partnerMetadata:
      interconnectName: New York (2)
      partnerName: Partner Inc
      portalUrl: https://partner-portal.com
    region: https://www.googleapis.com/compute/alpha/projects/partner-project/regions/us-central1
    selfLink: https://www.googleapis.com/compute/alpha/projects/partner-project/regions/us-central1/interconnectAttachments/customer-attachment
    stackType: IPV4_IPV6
    state: ACTIVE
    type: PARTNER
    vlanTag8021q: 1000
    

Memeriksa lampiran versi Dataplane

Setelah membuat lampiran VLAN, Anda dapat memeriksa versi Dataplane dari lampiran tersebut.

Anda hanya dapat memeriksa versi Dataplane lampiran VLAN dengan Google Cloud CLI dan Compute Engine AP. Versi Dataplane lampiran tidak muncul di konsol Google Cloud.

Anda mungkin perlu memverifikasi bahwa lampiran menggunakan Dataplane v2 sebelum mengaktifkan fitur tertentu seperti Deteksi Penerusan Dua Arah (BFD).

gcloud

Untuk memeriksa lampiran versi Dataplane, jalankan perintah berikut:

gcloud compute interconnects attachments describe ATTACHMENT_NAME

Ganti ATTACHMENT_NAME dengan nama lampiran yang akan Anda periksa.

Di output, cari kolom dataplaneVersion yang bernilai 2.

Jika kolom dataplaneVersion tidak muncul di output, lampiran VLAN masih menggunakan versi 1.

Contoh output berikut menunjukkan lampiran VLAN yang menggunakan Dataplane v2.

    adminEnabled: false
    edgeAvailabilityDomain: AVAILABILITY_DOMAIN_1
    bandwidth: BPS_1G
    cloudRouterIpAddress: 169.254.67.201/29
    creationTimestamp: '2017-12-01T08:29:09.886-08:00'
    customerRouterIpAddress: 169.254.67.202/29
    dataplaneVersion: 2
    id: '7976913826166357434'
    kind: compute#interconnectAttachment
    labelFingerprint: 42WmSpB8rSM=
    name: my-attachment
    pairingKey: 7e51371e-72a3-40b5-b844-2e3efefaee59/us-central1/2
    partnerMetadata:
      interconnectName: New York (2)
      partnerName: My Service Provider Inc
      portalUrl: https://service-provider-portal.com
    region: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1
    router: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1/routers/my-router
    selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1/interconnectAttachments/ATTACHMENT_NAME
    state: PENDING_CUSTOMER
    type: PARTNER
    vlanTag8021q: 1000
    

API

Gunakan metode interconnectAttachments.get untuk mendapatkan nilai dari kolom dataplaneVersion.

GET https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/interconnectAttachments/ATTACHMENT_NAME

Ganti kode berikut:

  • PROJECT_ID: project yang berisi lampiran VLAN
  • REGION: region tempat lampiran VLAN berada
  • ATTACHMENT_NAME: nama lampiran VLAN.

Cari kolom dataplaneVersion yang bernilai 2 di output.

Jika kolom dataplaneVersion tidak muncul di output, lampiran VLAN masih menggunakan versi 1.

Langkah selanjutnya