下列設定使用 Dedicated Interconnect 達到 99.99% 的可用性。Google 建議將這項設定用於正式環境層級的應用程式,例如對停機時間容忍度低的重要任務作業。
如要瞭解本頁使用的 Cloud Interconnect 術語,請參閱「重要詞彙」。
如要瞭解如何建立備援 Dedicated Interconnect 連線,確保在容錯移轉時有足夠的容量,請參閱「最佳做法」。
需求條件
您可以使用單一區域或兩個以上區域,達到 99.99% 的可用性。
多區域規定
如要使用兩個以上的區域達到 99.99% 的可用性,必須符合下列規定。
您必須至少設定四個 Dedicated Interconnect 連線,並採用下列位置:
使用兩個都會區:至少兩個互連網路連線必須位於一個都會區,且至少兩個互連網路連線必須位於另一個都會區。
使用各都會區的兩個邊緣可用性網域:在各都會區中,至少有一個互連網路連線必須位於可用區 1,且至少有一個互連網路連線必須位於可用區 2。您選擇的邊緣可用性網域可以位於都會區的同一個設施 (例如
iad-zone1-5467和iad-zone2-5467),或都會區的不同設施 (例如iad-zone1-5467和iad-zone2-1)。
請務必使用每個都會區的兩個邊緣可用性網域,因為Google Cloud 會協調每個都會區內邊緣可用性網域之間的 Cloud Interconnect 維護作業。 Google Cloud不會協調不同都會區之間的 Cloud Interconnect 維護事件。因此,互連網路維護事件可能會同時在兩個以上的都會區發生,但在每個都會區內,一次只會影響一個邊緣可用性網域。
在您建立依賴 Cloud Interconnect 連線的 VLAN 連結時,每個虛擬私有雲網路都必須符合下列要求。
VLAN 連結:您必須設定至少四個 VLAN 連結,並將這些連結分配到兩個區域,同時符合下列兩項條件:
- 至少兩個 VLAN 連結必須位於虛擬私有雲網路的一個區域,且至少兩個 VLAN 連結必須位於虛擬私有雲網路的不同區域。
- 在網路的每個區域中,至少須有兩個 VLAN 連結,且每個連結都必須依附於不重複的互連網路連線。整體而言,每個區域中的 VLAN 連結都必須依賴位於都會區兩個邊緣可用性網域中的互連網路連線。
Cloud Router:您必須至少使用兩個 Cloud Router,在設定 VLAN 連結的每個區域各使用一個。使用兩個以上的 Cloud Router 不會提高可靠性或變更服務水準協議,因為 Cloud Router 會根據每個 VLAN 連結所依賴的互連網路連線邊緣可用性網域,自動在兩個 BGP 軟體工作之間分配 VLAN 連結的 BGP 工作階段。
動態轉送模式:虛擬私有雲網路必須使用全域動態轉送模式。全域動態轉送可確保 Cloud Router 得知的路由,在虛擬私有雲網路的所有區域中,都會設為動態路由。
單一區域規定
如要使用單一區域達到 99.99% 的可用性,必須符合下列條件。
您必須設定至少四個 Dedicated Interconnect 連線,並在單一都會區內的一對設施和邊緣可用性網域組合之間策略性分配:
找出設施和邊緣可用性網域組合:使用位置表格,找出單一都會區中的一組設施和邊緣可用性網域組合。
同時使用設施和邊緣可用性網域組合:在都會區內,至少有兩個互連網路連線必須位於一個設施和邊緣可用性網域組合中,且至少有兩個互連網路連線必須位於該組合的其他組合中:例如,
iad-zone1-1中有兩個互連網路連線,iad-zone2-5467中有兩個互連網路連線。使用 Dedicated Interconnect 連線群組訂購:如要訂購使用一對機房和邊緣可用性網域組合的互連網路連線,您必須使用預期拓撲功能為
PRODUCTION_CRITICAL的互連網路連線群組。如要進一步瞭解連線群組,請參閱「修改連線群組」。
在您建立依賴 Cloud Interconnect 連線的 VLAN 連結時,每個虛擬私有雲網路都必須符合下列要求。
VLAN 連結:您必須設定至少四個 VLAN 連結,且全部位於同一個區域。該區域必須是佈建互連網路連線的都會區低延遲區域。每個 VLAN 連結都必須依附於專屬的互連網路連線。整體而言,VLAN 連結必須使用所有已設定的互連網路連線。
Cloud Router:在設定 VLAN 連結的區域中,您必須至少使用一個 Cloud Router。使用多個 Cloud Router 不會提高可靠性或變更服務水準協議,因為 Cloud Router 會根據每個 VLAN 連結所依賴的互連網路連線邊緣可用性網域,自動在兩個 BGP 軟體工作之間分配 VLAN 連結的 BGP 工作階段。
動態轉送模式:虛擬私有雲網路可以使用區域或全域動態轉送模式。
地端部署路由器和路由 advertising 規定
無論使用多少區域,地端部署路由器和路由 advertising 需求都相同。
請參閱地端部署路由器的說明文件,瞭解如何設定路由器,以符合 99.99% 的服務水準協議。您可能需要將專屬實體路由器連至各個互連網路連線。
地端部署路由器必須透過各個 VLAN 連結的 BGP 工作階段,advertise 相同的前置字串。您可以使用不同的 BGP 指標 (例如 MED) 來達成連線能力目標。如要進一步瞭解 Cloud Router BGP 工作、動態路由控制層和虛擬私有雲網路控制層如何根據收到的前置字元建立動態路由,請參閱 Cloud Router 說明文件中的「已知路由」。
範例拓撲
以下各節示範 Cloud Interconnect 拓撲範例。
多區域拓撲
下列拓撲範例符合 99.99% 可用性,在下列設施和邊緣可用性網域組合中,有四個 Cloud Interconnect 連線,一組位於 LGA 都會區,另一組位於 IAD 都會區:
LGA配對:「lga-zone1-16」和「lga-zone2-1422」IAD配對:「iad-zone1-1」和「iad-zone2-2」
在採用全域動態轉送模式的虛擬私有雲網路中,設定四個 VLAN 連結:兩個位於 us-central1 區域,兩個位於 us-east1 區域。在每個區域中:
- 每個 VLAN 連結都取決於專屬的互連網路連線。
- 整體而言,這兩個 VLAN 連結都依賴位於同一都會區兩個邊緣可用性網域中的互連網路連線。
單一區域拓撲
下列拓撲範例在單一都會區 IAD 中有四個 Cloud Interconnect 連線,符合 99.99% 可用性。下列每個設施和邊緣可用性網域組合中,都有兩個互連網路連線:
iad-zone1-1iad-zone2-5467
這組設施和邊緣可用性網域組合,適用於單一區域 99.99% 可用性。
在 us-east4 區域的虛擬私有雲網路中設定四個 VLAN 連結,因為 us-east4 區域是與 IAD 都會區對應的低延遲區域。虛擬私有雲網路可以使用區域或全域動態轉送模式。
在 us-east4 區域中,每個 VLAN 連結都依附於不重複的互連網路連線,而所有四個 VLAN 連結則共同依附於設施和邊緣可用性網域組合中的互連網路連線。
設定偏好路徑
Dedicated Interconnect VLAN 連結會依賴 Cloud Router,從遠端對等互連路由器 (例如地端部署網路中的路由器) 學習前置字元。虛擬私有雲網路的動態轉送模式和最佳路徑選取模式,會決定要考量哪些下一個躍點,以及如何處理 BGP 屬性,以產生動態路徑。虛擬私有雲網路中的動態路由,定義了從虛擬私有雲網路到已連結網路 (例如地端部署網路) 的路徑。詳情請參閱 Cloud Router 說明文件中的「已學習的路由」。
如要建立從連線網路到虛擬私有雲網路的路徑,請設定 Cloud Router BGP advertise。您可以個別設定每個 BGP 工作階段的 advertisement,或定義 Cloud Router 的預設 advertisement。這些 advertise 項目可以包含子網路範圍、自訂前置字元,或兩者的組合。詳情請參閱 Cloud Router 說明文件中的「advertise 的路由」。
建立多區域 99.99% 拓撲
以下各節將逐步說明建立這個拓撲的步驟。如要建立專屬拓撲,請將範例輸入值替換成您自己的值。例如,將 vpc1 網路名稱替換為您的虛擬私有雲網路名稱。
變更虛擬私人雲端網路的動態轉送模式
針對 vpc1 網路,將其動態轉送模式變更為全域。
控制台
前往 Google Cloud 控制台的「VPC Networks」(虛擬私有雲網路) 頁面。
選取
vpc1網路,然後按一下 「Edit」(編輯)。在「動態轉送模式」下方,選取「全域」。
按一下「儲存」。
gcloud
gcloud compute networks update vpc1 \ --bgp-routing-mode global
訂購 Dedicated Interconnect 連線
使用 Google Cloud 控制台或 Google Cloud CLI 訂購重複連線。
控制台
前往 Google Cloud 控制台的 Cloud Interconnect「Physical connections」(實體連線) 分頁。
按一下「設定實體連線」。
在「Intended SLA」(預期服務水準協議) 欄位中,選取部署作業所需的服務水準協議選項,然後按一下「Next」(下一步)。
在通訊埠功能部分,選取連線的容量和都會區:
- 容量:使用預設容量 (10 Gb/s)。
- 都會區:選取
New York。
指定連線詳細資料:
- Name:輸入
int-lga1。 - 說明:輸入
Example connection in LGA ZONE1。 - 主機代管機房:選擇
Digital Realty | Telx New York (111 8th Ave),這是lga-zone1-16位置的 PeeringDB 名稱。
- Name:輸入
點選「下一步」。
指定備援連線的詳細資料:
- Name:輸入
int-lga2。 - 說明:輸入
Example connection in LGA ZONE2。 - 「Colocation facility」(主機代管機房):選擇
zColo New York - 60 Hudson St,這是lga-zone2-1422位置的 PeeringDB 名稱。
- Name:輸入
點選「下一步」。
指定聯絡資訊:
- 公司名稱:輸入
The Customer。在 LOA-CFA 中,這個名稱代表有權要求 Cloud Interconnect 連線的一方。 - 技術聯絡人:輸入
customer@customer.com。您不必輸入自己的地址,因為您會收到所有通知。
- 公司名稱:輸入
點選「下一步」。
檢查您的訂單內容。請確認聯絡人的詳細資料和聯絡資訊正確無誤。如果一切正確無誤,請按一下「Place order」(下單)。如果沒有,請返回並編輯連結詳細資料。
在訂單確認頁面上,查看後續步驟,然後按一下「Done」(完成)。
在
Equinix Ashburn (DC1-DC11)位置 (iad-zone1-1和iad-zone2-1位置的 PeeringDB 名稱) 訂購另外兩個連線 (int-iad1和int-iad2)。由於 Ashburn 設施有兩個可用區, Google Cloud 控制台會自動為備援連線選取相同設施,但不同的可用區。
gcloud
訂購四個 Dedicated Interconnect 連線,名稱分別為
int-lga1、int-lga2、int-iad1和int-iad2:gcloud compute interconnects create int-lga1 \ --customer-name "The Customer" \ --description "Example connection in LGA ZONE1" \ --interconnect-type DEDICATED \ --link-type ETHERNET_10G_LR \ --location lga-zone1-16 \ --requested-link-count 1 \ --noc-contact-email customer@customer.com
gcloud compute interconnects create int-lga2 \ --customer-name "The Customer" \ --description "Example connection in LGA ZONE2" \ --interconnect-type DEDICATED \ --link-type ETHERNET_10G_LR \ --location lga-zone2-1422 \ --requested-link-count 1 \ --noc-contact-email customer@customer.com
gcloud compute interconnects create int-iad1 \ --customer-name "The Customer" \ --description "Example connection in IAD ZONE1" \ --interconnect-type DEDICATED \ --link-type ETHERNET_10G_LR \ --location iad-zone1-1 \ --requested-link-count 1 \ --noc-contact-email customer@customer.com
gcloud compute interconnects create int-iad2 \ --customer-name "The Customer" \ --description "Example connection in IAD ZONE2" \ --interconnect-type DEDICATED \ --link-type ETHERNET_10G_LR \ --location iad-zone2-1 \ --requested-link-count 1 \ --noc-contact-email customer@customer.com
訂購 Dedicated Interconnect 連線後,Google 會傳送確認電子郵件給您,並為您分配通訊埠。分配完成後,Google 會為您的連線產生 LOA-CFA,並透過電子郵件傳送給您。所有自動傳送的電子郵件都會寄給 NOC 聯絡人和訂購連線的人員。
連線必須經過佈建和測試,才能使用。如要進一步瞭解佈建程序,請參閱「佈建總覽」。
建立 Cloud Router
建立兩個 Cloud Router,每個區域各一個。
控制台
前往 Google Cloud 控制台的「Create a Cloud Router」(建立 Cloud Router) 頁面。
指定 Cloud Router 詳細資料:
- 「Name」(名稱):輸入
rtr-cent1做為第一個 Cloud Router 的名稱。 - 「Network」(網路):選取
vpc1,也就是地端部署網路延伸至的網路名稱。 - 「Region」(區域):選取
us-central1,也就是設定 Cloud Router 的區域,如拓撲範例所示。 - 「Google ASN」:輸入
64513,這是範例 Cloud Router 的 ASN。
- 「Name」(名稱):輸入
在「Routes」(路徑) 下方,選取「Advertise all subnets visible to the Cloud Router (default)」(公告向 Cloud Router 公開的所有子網路 (預設)),然後按一下「Create」(建立)。
在
us-east1區域中,再建立一個屬性相同的 Cloud Router,並命名為rtr-east1。
gcloud
在
us-central1區域的vpc1網路中建立 Cloud Router,並使用 ASN64513:gcloud compute routers create rtr-cent1 \ --asn 64513 \ --network vpc1 \ --region us-central1
在
us-east1區域的vpc1網路中建立 Cloud Router,並使用 ASN64513:gcloud compute routers create rtr-east1 \ --asn 64513 \ --network vpc1 \ --region us-east1
建立 VLAN 連結
連線可供使用 (處於 ACTIVE 狀態) 後,請建立 VLAN 連結,將連線與 Cloud Router 連結。建立四個連結,每個 Cloud Interconnect 連線各一個,並按照下列清單所述使用路由器:
rtr-cent1已連結至int-lga1和int-lga2rtr-east1已連結至int-iad1和int-iad2
控制台
前往 Google Cloud 控制台的「VLAN attachments」(VLAN 連結) 分頁。
按一下 [Add VLAN attachment] (新增 VLAN 連結)。
選取「在這個專案中」。
選取「
int-lga1」連線,然後按一下「繼續」。選取「Add VLAN attachment」(新增 VLAN 連結):
- Name:輸入
attachment-lga1-central1。 - 「Router」(路由器):選取
rtr-cent1Cloud Router。
- Name:輸入
點選「建立」。連結的建立作業需要一些時間才能完成。
如要為連結新增
rtr-cent1的 BGP 工作階段,請按一下「Configure」(設定)。VLAN 連結已填入 Google 和對等互連 BGP IP 位址。記錄每個連結的 IP 位址、ASN 和 VLAN 標記。這些是設定內部部署路由器的必要資訊。
如要新增 BGP 工作階段,請按一下「儲存設定」。在內部部署路由器上設定 BGP 之前,BGP 工作階段會一直保持停用狀態。
為其他連線建立另外三個連結:
int-lga2(rtr-cent1)int-iad1(rtr-east1)int-iad2(rtr-east1)
記錄每個連結的資訊。
gcloud
建立四個連結:
gcloud compute interconnects attachments dedicated create attachment-lga1-central1 \ --interconnect int-lga1 \ --router rtr-cent1 \ --region us-central1
gcloud compute interconnects attachments dedicated create attachment-lga2-central1 \ --interconnect int-lga2 \ --router rtr-cent1 \ --region us-central1
gcloud compute interconnects attachments dedicated create attachment-iad1-east1 \ --interconnect int-iad1 \ --router rtr-east1 \ --region us-east1
gcloud compute interconnects attachments dedicated create attachment-iad2-east1 \ --interconnect int-iad2 \ --router rtr-east1 \ --region us-east1
說明
attachment-lga1-central1連結,擷取其分配的資源,例如 VLAN ID 和 BGP 對接位址;使用這些值設定 Cloud Router 和地端部署路由器:gcloud compute interconnects attachments describe attachment-lga1-central1 \ --region us-central1
上述指令會輸出下列資訊:
cloudRouterIpAddress: 169.254.58.49/29 creationTimestamp: '2017-08-15T08:34:11.137-07:00' customerRouterIpAddress: 169.254.58.50/29 id: '5630382895290821276' interconnect: https://www.googleapis.com/compute/v1/projects/customer-project/global/interconnects/int-lga1 kind: compute#interconnectAttachment name: attachment-lga1-central1 operationalStatus: ACTIVE privateInterconnectInfo: tag8021q: 1000 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/router1 selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-central1/interconnectAttachments/attachment-lga1-central1
記錄下列值:
- tag8021q:指定 VLAN ID,即
1000。VLAN ID 會識別通過這個連結的流量。使用這個值可在內部部署路由器上設定具有標記的 VLAN 子介面。 - cloudRouterIpAddress:Cloud Router IP 位址,即
169.254.58.49/29。將這個位址指派給 Cloud Router 介面,並將這個位址指定為內部部署路由器上的相鄰 BGP。 - customerRouterIpAddress:客戶路由器 IP 位址,即
169.254.58.50/29。在 Cloud Router 上,將這個位址指定為介面上的 BGP 對接點位址,該介面已指派 Cloud Router IP 位址。將這個位址指派給地端部署路由器上的 VLAN 子介面。
- tag8021q:指定 VLAN ID,即
在
rtr-cent1Cloud Router,新增attachment-lga1-central1連結的介面:gcloud compute routers add-interface rtr-cent1 \ --interface-name rtr-cent1-1 \ --interconnect-attachment attachment-lga1-central1 \ --ip-address 169.254.58.49 \ --mask-length 29 \ --region us-central1
將 BGP 對等互連新增至介面;在本範例中,地端部署 ASN 為
12345:gcloud compute routers add-bgp-peer rtr-cent1 \ --interface rtr-cent1-1 \ --peer-name central1 \ --peer-ip-address 169.254.58.50 \ --peer-asn 12345 \ --advertised-route-priority 100 \ --region us-central1
說明其他連結,然後在適當的 Cloud Router 上,以類似方式設定新的 BGP 工作階段。
設定地端部署路由器
如要設定地端部署路由器,請使用 VLAN 連結中的資訊。以下範例是 Juniper 路由器設定中的節錄內容。您可以使用此範例做為設定自有路由器的起點。詳情請參閱「設定地端部署路由器」。
interface ae20 {
flexible-vlan-tagging;
native-vlan-id 1;
aggregated-ether-options {
lacp {
active;
}
}
unit 1000 {
vlan-id 1000;
family inet {
address 169.254.58.50/29;
}
}
}
protocols bgp {
group google {
type external;
multihop {
ttl 4;
}
hold-time 60;
peer-as 64513;
local-as 12345;
local-address 169.254.58.50;
neighbor 169.254.58.49 {
...
}
}
}
建立單一區域 99.99% 拓撲
以下各節將逐步說明建立這個拓撲的步驟。如要建立專屬拓撲,請將範例輸入值替換成您自己的值。例如,將 vpc1 網路名稱替換為您的虛擬私有雲網路名稱。
請注意,只有特定支援的都會區符合單一區域 99.99% 服務水準協議的資格。
訂購 Dedicated Interconnect 連線
使用 Google Cloud 控制台或 Google Cloud CLI 訂購重複連線。這個範例使用互連網路連線群組,可將連線分組,以便接收意見回饋,瞭解資源是否符合預期的可靠性。詳情請參閱「Cloud Interconnect 群組」。
控制台
首先,建立 Cloud Interconnect 群組來存放連線:
- 按一下 [建立群組]。
- 指定群組詳細資料:
- Name:輸入
example-interconnect-group。 - 說明:輸入
Example group in Ashburn。 - 正式環境服務水準協議:選取「重要正式環境工作負載 (韌性最高)」。
- Name:輸入
- 點選「建立」。
接著,將 Dedicated Interconnect 連線新增至群組:
- 選取群組。
- 按一下「設定實體連線」。
- 在「Production SLA」(正式環境服務水準協議) 欄位中,執行下列操作:
- 選取「重要正式環境工作負載 (韌性最高)」。
- 在「Select topology type」(選取拓撲類型) 欄位中,選取「Single region」(單一區域)。
- 在「Select Interconnect group」(選取互連網路群組) 欄位中,按一下「Select an existing group」(選取現有群組),然後選擇
example-interconnect-group。
- 在「Capacity」(容量) 欄位中,使用預設容量 (10 Gb/s)。
- 在「Metropolitan area」(都會區) 欄位中,選取「
Ashburn」。 - 在「New interconnect」(新增互連網路) 欄位中,指定連線詳細資料:
- Name:輸入
interconnect-1-a。 - 說明:輸入
Example connection in IAD。 - 位置:選擇
Equinix Ashburn (DC1-DC11),這是iad-1位置的 PeeringDB 名稱。
- Name:輸入
- 按一下「Add interconnect」(新增互連網路)。
- 指定備援連線的詳細資料:
- Name:輸入
interconnect-1-b。 - 說明:輸入
Example redundant connection in IAD。 - 位置:選擇
Equinix Ashburn (DC1-DC11),這是iad-1位置的 PeeringDB 名稱。
- Name:輸入
- 重複上述兩個步驟,在對應
iad-5467的位置新增另外兩個連線 (interconnect-2-a和interconnect-2-b)。由於該設施有兩個可用區,Google Cloud 控制台會自動為備援連線選取相同設施,但不同可用區。 - 點選「下一步」。
- 指定聯絡資訊:
- 公司名稱:輸入
example.com。在 LOA-CFA 中,這個名稱代表有權要求 Cloud Interconnect 連線的一方。 - 技術聯絡人:輸入
user@example.com。您不必輸入自己的地址,因為您會收到所有通知。
- 公司名稱:輸入
- 點選「下一步」。
- 檢查您的訂單內容。請確認聯絡人的詳細資料和聯絡資訊正確無誤。如果一切正確無誤,請按一下「Place order」(下單)。如果沒有,請返回並編輯連結詳細資料。
- 在訂單確認頁面上,查看後續步驟,然後按一下「Done」(完成)。
gcloud
建立 Dedicated Interconnect 群組:
gcloud compute interconnects groups create example-interconnect-group \ --intended-topology-capability PRODUCTION_CRITICAL
將 Dedicated Interconnect 連線新增至群組:
gcloud compute interconnects groups create-members example-interconnect-group \ --interconnect='name=interconnect-1-a,facility=iad-1' \ --interconnect='name=interconnect-1-b,facility=iad-1' \ --interconnect='name=interconnect-2-a,facility=iad-5467' \ --interconnect='name=interconnect-2-b,facility=iad-5467' \ --customer-name=example.com \ --noc-contact-email=user@example.com \ --description="Single-Region 99.99% Topology" \ --intent-mismatch-behavior=REJECT \ --interconnect-type=DEDICATED \ --link-type=LINK_TYPE_ETHERNET_100G_LR
訂購 Dedicated Interconnect 連線後,Google 會傳送確認電子郵件給您,並為您分配通訊埠。分配完成後,Google 會為您的連線產生 LOA-CFA,並透過電子郵件傳送給您。所有自動傳送的電子郵件都會寄給 NOC 聯絡人和訂購連線的人員。
連線必須經過佈建和測試,才能使用。如要進一步瞭解佈建程序,請參閱「佈建總覽」。
建立 Cloud Router
建立 Cloud Router。
控制台
前往 Google Cloud 控制台的「Create a Cloud Router」(建立 Cloud Router) 頁面。
指定 Cloud Router 詳細資料:
- 「Name」(名稱):輸入
rtr-east4做為第一個 Cloud Router 的名稱。 - 「Network」(網路):選取
vpc1,也就是地端部署網路延伸至的網路名稱。 - 「Region」(區域):選取
us-east4,也就是設定 Cloud Router 的區域。 - 「Google ASN」:輸入
64513,這是範例 Cloud Router 的 ASN。
- 「Name」(名稱):輸入
在「Routes」(路徑) 下方,選取「Advertise all subnets visible to the Cloud Router (default)」(公告向 Cloud Router 公開的所有子網路 (預設)),然後按一下「Create」(建立)。
gcloud
在區域
us-east4的vpc1網路中建立 Cloud Router,並使用 ASN64513:gcloud compute routers create rtr-east4 \ --asn 64513 \ --network vpc1 \ --region us-east4
建立 VLAN 連結
連線可供使用 (處於 ACTIVE 狀態) 後,請建立 VLAN 連結,將連線與 Cloud Router 連結。建立四個連結 (每個 Cloud Interconnect 連線一個),並連結至 rtr-east4。
控制台
前往 Google Cloud 控制台的「VLAN attachments」(VLAN 連結) 分頁。
按一下 [Add VLAN attachment] (新增 VLAN 連結)。
選取「在這個專案中」。
選取「
int-iad1」連線,然後按一下「繼續」。選取「Add VLAN attachment」(新增 VLAN 連結):
- Name:輸入
attachment-iad1。 - 「Router」(路由器):選取
rtr-east4Cloud Router。
- Name:輸入
點選「建立」。連結的建立作業需要一些時間才能完成。
如要為連結新增
rtr-east4的 BGP 工作階段,請按一下「Configure」(設定)。VLAN 連結已填入 Google 和對等互連 BGP IP 位址。記錄每個連結的 IP 位址、ASN 和 VLAN 標記。這些是設定內部部署路由器的必要資訊。
如要新增 BGP 工作階段,請按一下「儲存設定」。在內部部署路由器上設定 BGP 之前,BGP 工作階段會一直保持停用狀態。
為其他連線建立另外三個連結:
int-iad2(rtr-east4)int-iad3(rtr-east4)int-iad4(rtr-east4)
記錄每個連結的資訊。
gcloud
建立四個連結:
gcloud compute interconnects attachments dedicated create attachment-iad1 \ --interconnect int-iad1 \ --router rtr-east4 \ --region us-east4
gcloud compute interconnects attachments dedicated create attachment-iad2 \ --interconnect int-iad2 \ --router rtr-east4 \ --region us-east4
gcloud compute interconnects attachments dedicated create attachment-iad3 \ --interconnect int-iad3 \ --router rtr-east4 \ --region us-east4
gcloud compute interconnects attachments dedicated create attachment-iad4 \ --interconnect int-iad4 \ --router rtr-east4 \ --region us-east4
說明
attachment-iad1連結,擷取其分配的資源,例如 VLAN ID 和 BGP 對接位址;使用這些值設定 Cloud Router 和地端部署路由器:gcloud compute interconnects attachments describe attachment-iad1 \ --region us-east4
上述指令會輸出下列資訊:
cloudRouterIpAddress: 169.254.58.49/29 creationTimestamp: '2017-08-15T08:34:11.137-07:00' customerRouterIpAddress: 169.254.58.50/29 id: '5630382895290821276' interconnect: https://www.googleapis.com/compute/v1/projects/customer-project/global/interconnects/int-iad1 kind: compute#interconnectAttachment name: attachment-iad1 operationalStatus: ACTIVE privateInterconnectInfo: tag8021q: 1000 region: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-east4 router: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-east4/routers/router1 selfLink: https://www.googleapis.com/compute/v1/projects/customer-project/regions/us-east4/interconnectAttachments/attachment-iad1
記錄下列值:
- tag8021q:指定 VLAN ID,即
1000。VLAN ID 會識別通過這個連結的流量。使用這個值可在內部部署路由器上設定具有標記的 VLAN 子介面。 - cloudRouterIpAddress:Cloud Router IP 位址,即
169.254.58.49/29。將這個位址指派給 Cloud Router 介面,並將這個位址指定為內部部署路由器上的相鄰 BGP。 - customerRouterIpAddress:客戶路由器 IP 位址,即
169.254.58.50/29。在 Cloud Router 上,將這個位址指定為介面上的 BGP 對接點位址,該介面已指派 Cloud Router IP 位址。將這個位址指派給地端部署路由器上的 VLAN 子介面。
- tag8021q:指定 VLAN ID,即
在
rtr-east4Cloud Router,新增attachment-iad1連結的介面:gcloud compute routers add-interface rtr-east4 \ --interface-name rtr-east4-1 \ --interconnect-attachment attachment-iad1 \ --ip-address 169.254.58.49 \ --mask-length 29 \ --region us-east4
將 BGP 對等互連新增至介面;在本範例中,地端部署 ASN 為
12345:gcloud compute routers add-bgp-peer rtr-east4 \ --interface rtr-east4-1 \ --peer-name central1 \ --peer-ip-address 169.254.58.50 \ --peer-asn 12345 \ --advertised-route-priority 100 \ --region us-east4
說明其他連結,然後在適當的 Cloud Router 上,以類似方式設定新的 BGP 工作階段。
設定地端部署路由器
如要設定地端部署路由器,請使用 VLAN 連結中的資訊。以下範例是 Juniper 路由器設定中的節錄內容。您可以使用此範例做為設定自有路由器的起點。詳情請參閱「設定地端部署路由器」。
interface ae20 {
flexible-vlan-tagging;
native-vlan-id 1;
aggregated-ether-options {
lacp {
active;
}
}
unit 1000 {
vlan-id 1000;
family inet {
address 169.254.58.50/29;
}
}
}
protocols bgp {
group google {
type external;
multihop {
ttl 4;
}
hold-time 60;
peer-as 64513;
local-as 12345;
local-address 169.254.58.50;
neighbor 169.254.58.49 {
...
}
}
}
後續步驟
如要進一步瞭解各個步驟,請參閱「Dedicated Interconnect 佈建總覽」。
如要瞭解非關鍵應用程式,請參閱「為 Dedicated Interconnect 建立 99.9% 的可用性」。
如要解決使用 Cloud Interconnect 時可能遇到的常見問題,請參閱「疑難排解」。