הפעלת חיבורים

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

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

הגדרות של המונחים שמופיעים בדף הזה מפורטות במאמר מונחים מרכזיים ב-Cloud Interconnect.

כדי לעזור לכם לפתור בעיות נפוצות שאתם עשויים להיתקל בהן במהלך השימוש ב-Partner Interconnect, ראו פתרון בעיות.

כדי להפעיל את צירוף ה-VLAN, פועלים לפי השלבים הבאים.

המסוף

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

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

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

  3. אם הסטטוס של הקובץ המצורף הוא Waiting for service provider, צריך לחכות עד שספק השירות ישלים את הגדרת ה-VLAN.

  4. בודקים את פרטי הקישוריות כדי לוודא שספק השירות הצפוי הגדיר את צירוף ה-VLAN.

    אם צד שלישי לא צפוי מבצע צימוד ל-VLAN attachment, צריך למחוק את ה-VLAN attachment ואז ליצור חדש, שיפיק מפתח צימוד חדש. משתמשים במפתח הצימוד החדש כדי לבקש חיבור נוסף מספק השירות.

  5. לוחצים על הפעלה.

gcloud

  1. כדי לראות את הפרטים של הצירוף ל-VLAN, צריך לתאר אותו. הסטטוס של הצירוף צריך להיות PENDING_CUSTOMER כדי שאפשר יהיה להפעיל אותו:

    gcloud compute interconnects attachments describe ATTACHMENT_NAME \
        --region=REGION
    

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

    • ATTACHMENT_NAME: השם של הצירוף ל-VLAN

    • REGION: האזור שבו נמצא הצירוף ל-VLAN

    הפלט של צירופי 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: ATTACHMENT_NAME
    pairingKey: 7e51371e-72a3-40b5-b844-2e3efefaee59/REGION/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/REGION
    router: https://www.googleapis.com/compute/v1/projects/customer-project/regions/REGION/routers/my-router
    selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/REGION/interconnectAttachments/my-attachment
    stackType: IPV4_ONLY
    state: PENDING_CUSTOMER
    type: PARTNER
    vlanTag8021q: 1000
    

    הפלט של חיבורי VLAN ל-IPv4 ול-IPv6 (מערך כפול) אמור להיראות כך:

    adminEnabled: false
    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: ATTACHMENT_NAME
    partnerMetadata:
      interconnectName: New York (2)
      partnerName: Partner Inc
      portalUrl: https://partner-portal.com
    region: https://www.googleapis.com/compute/alpha/projects/partner-project/regions/REGION
    selfLink: https://www.googleapis.com/compute/alpha/projects/partner-project/regions/REGION/interconnectAttachments/customer-attachment
    stackType: IPV4_IPV6
    state: PENDING_CUSTOMER
    type: PARTNER
    vlanTag8021q: 1000
    

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

  2. בודקים את השדה partnerMetadata כדי לוודא שספק השירות שמוצג הוא הספק שציפיתם לו.

    אם צד שלישי לא צפוי מבצע צימוד ל-VLAN attachment, צריך למחוק את ה-VLAN attachment ואז ליצור חדש, שיפיק מפתח צימוד חדש. משתמשים במפתח הצימוד החדש כדי לבקש חיבור נוסף מספק השירות.

  3. מפעילים את הקובץ המצורף באמצעות הדגל --adminEnabled:

    gcloud compute interconnects attachments partner update ATTACHMENT_NAME \
        --region=REGION \
        --admin-enabled
    

אחרי ההפעלה, צירוף ה-VLAN שלך יכול להתחיל להעביר תנועה. בחיבורים ברמה 3, לא צריך לבצע הגדרות נוספות. ספק השירות מספק את מספר המערכת האוטונומית (ASN) שלו כשמגדירים את צירוף ה-VLAN, ואז Google מוסיפה את ה-ASN באופן אוטומטי לסשן של Border Gateway Protocol ‏ (BGP) ב-Cloud Router.

אם הפעלתם חיבורי VLAN מוצפנים, תוכלו ליצור שערי HA VPN ומנהרות כדי להשלים את הפריסה של HA VPN over Cloud Interconnect.

בחיבורים בשכבה 2, צריך להוסיף את מספר ה-ASN של הנתב המקומי ל-Cloud Router.

כדי להגדיר את Cloud Router, מבצעים את השלבים הבאים.

המסוף

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

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

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

  3. לוחצים על Configure BGP (הגדרת BGP).

  4. בשדה Peer ASN, מוסיפים את מספר ה-ASN של הנתב המקומי.

  5. לוחצים על שמירה והמשך.

gcloud

  1. לכל אחד מהמכשירים השכנים של BGP שמשויכים לצירופי ה-VLAN, מתארים את Cloud Router שמשויך לצירוף ה-VLAN, ואז מוצאים את השם של המכשיר השכן של BGP שנוצר באופן אוטומטי ומשויך לצירוף ה-VLAN.

    מריצים את הפקודה הבאה:

    gcloud compute routers describe ROUTER_NAME \
       --region=REGION
    

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

    • ROUTER_NAME: השם של Cloud Router
    • REGION: האזור שבו נמצא Cloud Router

    הפלט של צירופי VLAN של IPv4 אמור להיראות כך:

    bgp:
     advertiseMode: DEFAULT
     asn: 16550
    bgpPeers:
    - interfaceName: auto-ia-if-my-attachment-c2c53a710bd6c2e
     ipAddress: 169.254.67.201
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-bgp-my-attachment-c2c53a710bd6c2e
     peerIpAddress: 169.254.67.202
    creationTimestamp: '2018-01-25T07:14:43.068-08:00'
    description: 'test'
    id: '4370996577373014668'
    interfaces:
    - ipRange: 169.254.67.201/29
     linkedInterconnectAttachment: https://www.googleapis.com/compute/alpha/projects/customer-project/regions/REGION/interconnectAttachments/my-attachment-partner
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-if-my-attachment-c2c53a710bd6c2e
    kind: compute#router
    name: partner
    network: https://www.googleapis.com/compute/v1/projects/customer-project/global/networks/default
    region: https://www.googleapis.com/compute/v1/projects/customer-project/regions/REGION
    selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/REGION/routers/my-router
    

    הפלט של חיבורי VLAN ל-IPv4 ול-IPv6 (מערך כפול) אמור להיראות כך:

    bgp:
     advertiseMode: DEFAULT
     asn: 16550
    bgpPeers:
    - enableIpv4: true
     enableIpv6: false
     ipAddress: 169.254.67.201
     interfaceName: auto-ia-if-my-attachment-0098154607ecb20
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-bgp4-my-attachment-0098154607ecb20
     peerIpAddress: 169.254.67.202
    - enableIpv4: false
     enableIpv6: true
     ipAddress: 2600:2d00:0:1::1
     interfaceName: auto-ia-if6-my-attachment-0098154607ecb20
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-bgp6-my-attachment-0098154607ecb20
     peerIpAddress: 2600:2d00:0:1::2
    creationTimestamp: '2018-03-29T09:58:25.476-07:00'
    description: ''
    id: '466013140766729694'
    interfaces:
    - ipRange: 169.254.67.201/29
     linkedInterconnectAttachment: https://www.googleapis.com/compute/alpha/projects/customer-project/regions/REGION/interconnectAttachments/customer-attachment
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-if-customer-attach-0098154607ecb20
    - ipRange: 2600:2d00:0:1::1/125
     linkedInterconnectAttachment: https://www.googleapis.com/compute/alpha/projects/customer-project/regions/REGION/interconnectAttachments/customer-attachment
     managementType: MANAGED_BY_ATTACHMENT
     name: auto-ia-if6-customer-attach-0098154607ecb20
    kind: compute#router
    name: customer-router
    network: https://www.googleapis.com/compute/alpha/projects/customer-project/global/networks/default
    region: https://www.googleapis.com/compute/alpha/projects/customer-project/regions/REGION
    selfLink: https://www.googleapis.com/compute/alpha/projects/customer-project/regions/REGION/routers/customer-router
    
  2. מעדכנים כל עמית BGP עם מספר ה-ASN של הנתב המקומי.

    כדי להגדיר את ה-BGP peer של IPv4, מריצים את הפקודה הבאה:

    gcloud compute routers update-bgp-peer ROUTER_NAME \
       --peer-name=IPV4_PEER_NAME \
       --peer-asn=ON_PREM_ASN \
       --region=REGION
    

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

    • IPV4_PEER_NAME: הערך name של הרשומה bgpPeers עם enableIpv4: true מהפלט של הפקודה gcloud compute routers describe
    • ON_PREM_ASN: מספר ה-ASN של הנתב המקומי

    עבור רשת שכנה של BGP עם כתובת IPv6, מריצים את הפקודה הבאה:

    gcloud compute routers update-bgp-peer ROUTER_NAME \
       --peer-name=IPV6_PEER_NAME \
       --peer-asn=ON_PREM_ASN \
       --region=REGION
    

    מחליפים את IPV6_PEER_NAME ב-name של הערך bgpPeers עם enableIpv6: true מהפלט של הפקודה gcloud compute routers describe.