הצגת צירופים ל-VLAN

אתם יכולים לראות רשימה של כל חיבורי ה-VLAN בפרויקט ופרטים על כל אחד מהם. לדוגמה, אפשר לראות את השם של קובץ מצורף, את השם של Cloud Router שמשויך אליו, ואם מדובר בקובץ מצורף ל-Cross-Cloud Interconnect או לגרסה אחרת של Cloud Interconnect. אפשר גם לבדוק את גרסת מישור הנתונים של הקובץ המצורף.

הצגת צירופים ל-VLAN והפרטים שלהם

המסוף

  1. במסוף Google Cloud , עוברים לכרטיסייה VLAN attachments של Cloud Interconnect.

    מעבר לצירופים ל-VLAN

    צירופים ל-VLAN עבור Cross-Cloud Interconnect מופיעים כצירופים מסוג Dedicated (Cross-Cloud).

  2. בוחרים צירוף ל-VLAN כדי לראות את הפרטים שלו.

gcloud

  1. כדי להציג את כל הצירופים ל-VLAN בפרויקט, משתמשים בפקודה gcloud compute interconnects attachments list:

    gcloud compute interconnects attachments list
    

    הפלט שיוצג אמור להיות דומה לזה שמופיע כאן. צירופים ל-VLAN לחיבורי Cross-Cloud Interconnect מופיעים כצירופים מסוג 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

בדיקת הגרסה של Dataplane של קובץ מצורף

אחרי שיוצרים צירוף ל-VLAN, אפשר לבדוק את גרסת מישור הנתונים של הצירוף.

כדי לבדוק את גרסת מישור הנתונים של צירוף ל-VLAN, משתמשים ב-Google Cloud CLI או ב-Compute Engine API. גרסת ה-Dataplane של קובץ מצורף לא מופיעה במסוף Google Cloud .

gcloud

כדי לבדוק את גרסת Dataplane של הקובץ המצורף, מריצים את הפקודה הבאה:

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

מחליפים את מה שכתוב בשדות הבאים:

  • ATTACHMENT_NAME: שם הקובץ המצורף
  • REGION: האזור שבו נמצא הקובץ המצורף

בפלט, מחפשים את השדה dataplaneVersion.

אם השדה dataplaneVersion לא מופיע בפלט, החיבור ל-VLAN משתמש בגרסה 2.

בדוגמת הפלט הבאה מוצמד צירוף ל-VLAN שמשתמש ב-Dataplane v2.

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

משתמשים ב-method‏ 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

בפלט, מחפשים את השדה dataplaneVersion עם הערך 2.

אם השדה dataplaneVersion לא מופיע בפלט, צירוף ה-VLAN משתמש בגרסה 2.

המאמרים הבאים